Build a Telegram chatbot with Gemini
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs on Telegram events. Along the way it connects Google Gemini, Telegram, Google Docs and HTTP Request and 2 more.
How it runs
Trigger: On Telegram events.
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Message a model (Google Gemini): uses Google Gemini, with 3 tools (HTTP Request, Get a document in Google Docs, Message a model in Google Gemini)
- Send a text message (Telegram): uses Telegram
- Wait: pauses before continuing
- Message a model (OpenAI): uses OpenAI, with 3 tools (HTTP Request, Extract text in Mistral AI, Get a document in Google Docs)
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Rarely used nodes in this template: n8n-nodes-base.mistralAiTool
Nodes used (10)
- Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Telegram
n8n-nodes-base.telegram - Google Docs Tool
n8n-nodes-base.googleDocsTool - Telegram Trigger
n8n-nodes-base.telegramTrigger - Wait
n8n-nodes-base.wait - Google Gemini Tool
@n8n/n8n-nodes-langchain.googleGeminiTool - Http Request Tool
n8n-nodes-base.httpRequestTool - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - OpenAI
@n8n/n8n-nodes-langchain.openAi - Mistral Ai Tool
n8n-nodes-base.mistralAiTool
From the author
Overview - This workflow connects a Telegram bot to OpenAi/Google Gemini (PaLM API) so the bot can reply to users with AI-generated answers. - Useful for FAQs, assistants, classroom helpers, or bots that fetch document content to answer questions. Who is this…