Templates / 🤖💬 Conversational AI Chatbot with Google Gemini for Text & Image | Telegram

🤖💬 Conversational AI Chatbot with Google Gemini for Text & Image | Telegram

Needs changes

by Alan Bajaña Granizo · 22,373 views · created 2025-05-24 · 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 23 nodes and runs on Telegram events (message). Along the way it connects Google Gemini Chat Model and Telegram. It also calls generativelanguage.googleapis.com over HTTP.

How it runs

Trigger: On Telegram events (message).

  1. sessionData (Edit Fields (Set)): sets or maps fields
  2. conversationStore (Chat Memory Manager): uses Chat Memory Manager, with memory: memoryRetriever
  3. latestContext (Code): runs custom JavaScript code
  4. inputProcessor (Basic LLM Chain): sends a prompt to an LLM, with model: GeminiModel; output parser: structuredOutput
  5. intentHandler (Switch): routes items into 3 branches
  6. generatePrompt (Edit Fields (Set)): sets 1 field: prompt
  7. chatPrompt (Edit Fields (Set)): sets 1 field: prompt
  8. otherPrompt (Edit Fields (Set)): sets 1 field: prompt
  9. buildPrompt (Edit Fields (Set)): sets 1 field: prompt
  10. ChatCore (AI Agent): runs an AI agent, with model: GeminiModel; memory: conversationMemory

…plus 7 more steps. See the full node list below.

Services it uses

Google Gemini Chat ModelTelegram

HTTP calls to: generativelanguage.googleapis.com

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 ChatCore (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
ChatCore (v1.9)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (13)

From the author

🤖💬 Conversational AI Chatbot with Google Gemini for Text & Image | Telegram Overview 📋 Flexible and scalable chatbot template, designed mainly for Spanish conversations but capable of handling English and other languages. Integrates Google Gemini API for…

Excerpt from Alan Bajaña Granizo'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.