π¬ Create an AI-powered Telegram customer support bot with lead management
β‘ 751 views Β· π¬ Support Chatbots
Description
π§ 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 chat_id)
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 (full_name, 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.
chat_logs 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
π Nodes Used
Telegram, Telegram Trigger, AI Agent, Simple Memory, OpenRouter Chat Model, Data table
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File