Build a Text & Image Responding Telegram Bot with Google Gemini 2.5 Flash

Go to Workflow
0 views
Built by Ahmed Sherif Ahmed Sherif
Created on June 09, 2026

Description

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

User sends a message (text or image) to the Telegram bot
Workflow routes the input based on message type
Images are downloaded and analyzed using Gemini Vision AI
AI agent processes the input with conversation context
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.

Nodes Used (5)

AI Agent
@n8n/n8n-nodes-langchain.agent
Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
Telegram
n8n-nodes-base.telegram