🤖💬 Conversational AI Chatbot with Google Gemini for Text & Image | Telegram
Needs changesWhat 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).
- sessionData (Edit Fields (Set)): sets or maps fields
- conversationStore (Chat Memory Manager): uses Chat Memory Manager, with memory: memoryRetriever
- latestContext (Code): runs custom JavaScript code
- inputProcessor (Basic LLM Chain): sends a prompt to an LLM, with model: GeminiModel; output parser: structuredOutput
- intentHandler (Switch): routes items into 3 branches
- generatePrompt (Edit Fields (Set)): sets 1 field: prompt
- chatPrompt (Edit Fields (Set)): sets 1 field: prompt
- otherPrompt (Edit Fields (Set)): sets 1 field: prompt
- buildPrompt (Edit Fields (Set)): sets 1 field: prompt
- 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
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.0 | Replace 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)
- Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Convert to File
n8n-nodes-base.convertToFile - Telegram
n8n-nodes-base.telegram - Chat Memory Manager
@n8n/n8n-nodes-langchain.memoryManager - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Telegram Trigger
n8n-nodes-base.telegramTrigger
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…