Create an AI-powered Telegram customer support bot with lead management
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (9)
- OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Telegram Trigger
n8n-nodes-base.telegramTrigger - Data table
n8n-nodes-base.dataTable - Data Table Tool
n8n-nodes-base.dataTableTool - AI Agent
@n8n/n8n-nodes-langchain.agent - Telegram
n8n-nodes-base.telegram - Code
n8n-nodes-base.code - If
n8n-nodes-base.if
What it does
🧠 AI Telegram Customer Support Assistant + Lead Manager This n8n workflow provides a fully automated AI-driven customer support assistant connected to Telegram, with built-in lead management, knowledge-base querying, and context-aware answers. ⭐ What this workflow does Receives user messages from Telegram Logs all incoming/outgoing messages into a Data Table Checks if a lead exists for the user (via chatid) Creates new leads automatically if needed Builds an AI-ready context (user info + lead info + latest message) Uses the AI Agent to answer questions using: FAQ database Services table (programs, prices, descriptions) Settings table (agency info) Lead update tool Sends a natural, friendly reply back to Telegram Updates leads in real time (name, phone, email, notes…) 📦 Required Data Tables (to be created by the user) leads Stores all user information (fullname, phone, email, etc.) services List of available programs/services with prices, duration, category. faq Frequently asked questions with answers and optional tags. settings Company/agency details used by the assistant. chatlogs Logs all messages exchanged with users (user + bot). 🔧 Required Credentials Telegram Bot API Key AI Model Credential (OpenAI, OpenRouter, Groq…) No other credentials required. 🚀 How to use it Import the workflow into your n8n instance Create the required Data Tables as defined inside the Sticky Notes Add your credentials (Telegram + AI Model) Customize the prompt to match your business Activate the workflow — you're ready to go! 💡 Suitable for: Travel agencies Customer support chatbots Lead qualification + automation AI knowledge-based assistants Telegram-first businesses