Telegram bot for support from your Google Docs SOPs (n8n)
At a glance
- Setup estimate
- 30–60 min (ESTIMATE)
- Tools
- Industries
- E-commerce, SaaS
Problem
Customers on Telegram need instant, accurate answers
Who it's for
Small online shops, SaaS products and service businesses whose customers already message them on Telegram, and who keep their FAQ, policies or SOPs in a single Google Doc. The trigger is simple: the same questions keep arriving on Telegram outside working hours, or faster than one person can answer, and the answers are already written down somewhere.
Skip it if answers depend on live data (order status, bookings, account balances): this bot only reads one document. It also has no hand-off to a person, so it isn't a fit for complaints or anything sensitive without the changes under "How to adapt it".
Tools and what each does
- n8n
- Runs the workflow: one trigger, one AI Agent with a model, memory and a document tool, and one reply node.
- Telegram bot (Telegram Trigger + Telegram node)
- The trigger receives each new message sent to your bot; the Telegram node sends the answer back to the same chat ID.
- AI Agent node
- Takes the customer's text as its prompt. Its system message tells it to cross-reference the Google Doc, not to make up facts, and to say plainly when the information isn't there, in a friendly, casual tone.
- OpenAI chat model (gpt-4o-mini in the template)
- The language model behind the agent.
- Google Docs tool
- A tool the agent can call that fetches one Google Doc (the 'get' operation) so the answer is based on its text.
- Simple Memory
- Keeps a short window of recent turns per Telegram chat ID, so a follow-up like 'and on weekends?' still makes sense.
Browse by tool: n8n, Telegram, OpenAI, Google Docs
Steps
- A customer sends a text message to your Telegram bot, and the Telegram Trigger (listening for message updates) starts a run.
- The message text is passed to the Customer Support AI Agent as its prompt.
- The agent loads the recent conversation for that chat from Simple Memory, keyed on the Telegram chat ID.
- The agent calls the Google Docs tool, which fetches the document you configured, and looks for the relevant section.
- The model writes a reply that follows the system message; if the document doesn't cover the question, it says the information isn't available.
- The Telegram node posts the agent's output back into the same chat (the template turns n8n's attribution line off).
Before you start
- An n8n instance reachable from the internet over HTTPS. n8n's docs note Telegram rejects webhooks without an HTTPS URL, which matters if you self-host behind a reverse proxy (set WEBHOOK_URL).
- A Telegram bot and its token, created through Telegram's BotFather, added as a Telegram credential in n8n.
- An OpenAI API key on an account with billing set up.
- A Google account connected to n8n with access to the Google Doc you want the bot to read.
- One Google Doc with your FAQ, policies or SOPs, written in plain sentences the bot can quote.
- Setup estimate: 30–60 min (ESTIMATE, not measured). The template description also links the author's video walkthrough.
What can go wrong
Needs a Telegram bot token and an OpenAI API key. Answers come from your Google Doc, and AI replies can still be wrong, so give customers a way to reach a person. The template description links a video walkthrough.
- ModelThe template pins gpt-4o-mini. OpenAI notified developers on Oct 14, 2026 that GPT-4o mini (gpt-4o-mini-2024-07-18) will be removed from the API on Jan 14, 2027, with gpt-6-luna as the recommended replacement. Change the model in the OpenAI Chat Model node before that date or the bot stops answering.
- Source qualityThe Google Docs node ships pointing at the template author's own document URL. If you don't replace it, the bot either answers from someone else's document or errors on access.
- Silent failureTelegram accepts one webhook per bot. Per n8n's docs, switching between the test URL and the published workflow overwrites it, so a live bot can quietly stop receiving messages while you test. Use a second bot for testing or unpublish while you test.
- ReliabilityThere is no escalation path. AI replies can still be wrong or misread the document, and a customer who needs a person only gets 'that information isn't available'.
- Data privacyEvery customer message, plus the full text of the document the tool fetches, is sent to OpenAI. Keep anything internal or personal out of that document.
- CostBecause the tool fetches the whole document, a long document means more tokens on every question. Per-message cost is UNKNOWN and depends on your model and document length.
- ReliabilitySimple Memory only keeps a short window of recent turns; older context in a long conversation is dropped.
How to adapt it
- Add a hand-off: tell the agent in its system message to give your email or phone number when it can't answer, and add a second Telegram node that forwards those conversations to a staff chat.
- Split a long document into topic docs (shipping, returns, pricing) and add one Google Docs tool per doc with a clear tool name, so the agent fetches less text per question.
- Edit the '#Tonality' section of the system message to match your brand voice, or to reply in your customers' language.
- Swap the trigger and reply nodes to move the same agent to another channel; the template author lists Slack, WhatsApp and email as options.
- Swap the chat model node for a current OpenAI model or another provider's chat model node; the agent, memory and tool wiring stay the same.
Sources we checked
- Source template: n8n.io workflow 4875 checked
- Template JSON via n8n templates API checked
- n8n docs: Telegram Trigger common issues checked
- OpenAI API deprecations checked
- Status
- Researched: Sourced and summarized, not yet run end-to-end by us
- Last checked
- Details checked
Setup estimates are rough guesses for someone comfortable with the tools who already has the accounts and API keys. Real time is unknown until tested.