Build a text & image responding Telegram bot with Google Gemini 2.5 Flash
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 10 nodes and runs on Telegram events (message). Along the way it connects Google Gemini Chat Model, Google Gemini and Telegram.
How it runs
Trigger: On Telegram events (message).
- Route Types (Switch): routes items into 2 branches
- Map text prompt (Edit Fields (Set)): sets 1 field: text
- Get a file (Telegram): work with file
- Knowledge Base Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; memory: Simple Memory
- Analyze image (Google Gemini): analyze (image)
- Send a text message (Telegram): uses Telegram
- Map image prompt (Edit Fields (Set)): sets 1 field: text
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Knowledge Base Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Knowledge Base Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Gemini
@n8n/n8n-nodes-langchain.googleGemini - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram
From the author
Telegram AI Bot Workflow An intelligent Telegram bot powered by Google Gemini AI that provides smart responses to both text messages and images. Features - Multi-Modal Input: Handles both text messages and image uploads - AI-Powered Responses: Uses Google…