Templates / Build a Telegram chatbot with Gemini

Build a Telegram chatbot with Gemini

Ready for 3.0

by DevCode Journey ✓ · 3,633 views · created 2025-09-15 · Support Chatbot, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  2. 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)
  3. Send a text message (Telegram): uses Telegram
  4. Wait: pauses before continuing
  5. 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

Google GeminiTelegramGoogle DocsHTTP RequestOpenAIMistral AI

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)

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…

Excerpt from DevCode Journey's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.