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 to replace before upgrading

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)

AI AgentSimple MemoryGoogle Gemini Chat ModelGoogle GeminiTelegram

What it does

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 Gemini 2.5 Flash for intelligent reply generation - Image Analysis: Automatically analyzes uploaded images and responds with descriptions - Conversation Memory: Maintains context across 20 messages per conversation - Formatted Output: Delivers well-structured, Telegram-friendly responses How It Works 1. User sends a message (text or image) to the Telegram bot 2. Workflow routes the input based on message type 3. Images are downloaded and analyzed using Gemini Vision AI 4. AI agent processes the input with conversation context 5. Formatted response is sent back to the user instantly Requirements - Telegram Bot Token (from @BotFather) - Google Gemini API Key - n8n instance with webhook capability Perfect for building interactive AI assistants, customer support bots, or educational tools on Telegram.

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.