Templates / Telegram bot starter template setup & AI agent chatbot

Telegram bot starter template setup & AI agent chatbot

Needs changes

by Victor Gold ✓ · 40,859 views · created 2024-09-04 · 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 to replace before upgrading

Removed in 3.0Replace 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)

TelegramGoogle SheetsCall n8n WorkflowAI AgentSimple MemoryOpenAI Chat Model

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!

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.