Agentic Telegram AI bot with with LangChain nodes and new tools
Needs changesNeeds changes. This template uses 2 thing(s) that n8n 3.0 removes: HTTP Request Tool (legacy), AI Agent v1 (old agent modes). 2 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 7 nodes and runs on Telegram events. Along the way it connects OpenAI Chat Model, Telegram and HTTP Request. It also calls api.openai.com over HTTP.
How it runs
Trigger: On Telegram events.
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 2 tools (Send back an image, Generate image in Dalle); memory: Window Buffer Memory
- Send final reply (Telegram): uses Telegram
Services it uses
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:
- HTTP Request Tool (legacy) in Generate image in Dalle: replace with HTTP Request node connected to the AI Agent's Tool input.
- AI Agent v1 (old agent modes) in AI Agent (v1.7): 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.0 | Replace with |
|---|---|
| HTTP Request Tool (legacy) Generate image in Dalle | HTTP Request node connected to the AI Agent's Tool input |
| AI Agent v1 (old agent modes) AI Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (7)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram - Telegram Tool
n8n-nodes-base.telegramTool - HTTP Request Tool
@n8n/n8n-nodes-langchain.toolHttpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent
From the author
Create a Telegram bot that combines advanced AI functionalities with LangChain nodes and new tools. Nodes as tools and the HTTP request tool are a new n8n feature that extend custom workflow tool and simplify your setup. We used the workflow tool in the…