n8n template

Ask Your Documents Bot

Ask questions on Telegram and get answers from your own Google Drive documents, with the source files named.

Your team asks the same things again and again, and the answers are already written down in a handbook, a policy or a price list that nobody can find.

This workflow indexes a Google Drive folder of Google Docs, PDFs and text files every night and answers questions on Telegram only from those documents, naming the files it used. If the answer isn't in the documents, it says so instead of guessing.

The search index lives inside n8n, so there's no vector database or extra service to run.

How it works

  1. Every night (or when you click Test) it reads new and changed files from your Drive folder.
  2. The text is split into passages and indexed with keyword search (BM25).
  3. A question on Telegram finds the best-matching passages.
  4. The AI answers from those passages only and names the source files.

What's included

  • n8n workflow (indexing, search and Telegram bot in one)
  • Settings for answer style, passage size and how much the AI reads
  • Setup guide (PDF)
  • Test mode with three sample documents

You'll need

  • n8n 2.x, reachable from the internet over HTTPS
  • A Google Drive folder and a Google Drive OAuth2 credential
  • A Telegram bot (free, made in 2 minutes with @BotFather)
  • An AI API key or Ollama

Questions

Does it need a vector database?

No. It uses keyword search stored inside the workflow, which works well for handbooks, policies and FAQs up to a few megabytes of text.

Can it read scanned PDFs?

Only PDFs with real text. Run scans through OCR first.

Which AI model does it use?

You choose in the Config node: Claude (Anthropic), OpenAI, Google Gemini, or a local Ollama model. You use your own API key; nothing goes through us.

What if it doesn't work for me?

Email us within 14 days and we'll help you get it running. If we can't, we'll refund you in full.

Can I use it for clients?

Yes. One purchase covers one business: yours, or one client you build it for. You can change it as much as you like. You can't resell or share the files themselves.