Telegram bot starter template setup & AI agent chatbot
Needs changesNeeds 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.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Edit Fields (Set)
n8n-nodes-base.set - Telegram
n8n-nodes-base.telegram - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
What it does
Telegram Bot Starter template workflow + n8n AI Agent Chatbot provides a foundational setup for creating powerful Telegram bots with n8n. It handles incoming messages, photos, files, and voice notes, making it an excellent starting point for developers looking to create bots for customer engagement, support, or interactive services. Sign up to n8n now → and try it! Key Features: - Dynamic Message Handling: Respond to text messages, photos, files, and more. - Modular Design: Easily integrate additional workflows such as user registration, payment modules, or custom commands. - Error Handling: Ensure the bot gracefully manages errors and user inputs. Extensibility: This workflow is the base for building any Telegram bot. Additional modules, such as a user registration module, payment integration, and user profile management, are available for easy connection to expand the bot’s functionality. - ✍🏻Use the Telegram user registration workflow → - 💵Use the Telegram Payment, Invoicing and Refund Workflow for Stars → Who Can Use This Workflow? - Developers looking for a quick way to build and customize Telegram bots. - Businesses and service providers who need customer interaction automation. Setup Instructions: 1. Replace Telegram credentials with your own API credentials. 2. Customize responses for different message types (text, photo, file). 3. If integrating with external services (like Google Sheets), update the necessary credentials and links. UPDATES: 🔥 Get the most up-to-date and expanded version → June 25: - New! AI Agent + Setup Instructions - Simple setup instructions and examples are included inside the workflow as sticky notes. Sep 24: - Improved message handler: Updated logic to handle various types of messages using Switch (text, photo, file, voice, and callback). - Payment processing: Added new nodes for sending invoices and handling payments via Telegram Aug 24: - Changed processing of system events: “new user” and ‘user who blocked bot’ events Please reach out to Victor if you need further assistance with your n8n workflows and automations! Sign up to n8n →, you have to try it!