Templates / Build a text & image responding Telegram bot with Google Gemini 2.5 Flash

Build a text & image responding Telegram bot with Google Gemini 2.5 Flash

Needs changes

by Ahmed Sherif ✓ · 2,041 views · created 2025-10-04 · Support Chatbot, AI Chatbot

Needs 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).

  1. Route Types (Switch): routes items into 2 branches
  2. Map text prompt (Edit Fields (Set)): sets 1 field: text
  3. Get a file (Telegram): work with file
  4. Knowledge Base Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; memory: Simple Memory
  5. Analyze image (Google Gemini): analyze (image)
  6. Send a text message (Telegram): uses Telegram
  7. Map image prompt (Edit Fields (Set)): sets 1 field: text

Services it uses

Google Gemini Chat ModelGoogle GeminiTelegram

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.0Replace 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)

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…

Excerpt from Ahmed Sherif'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.