Templates / Create an AI-powered Telegram customer support bot with lead management

Create an AI-powered Telegram customer support bot with lead management

Ready for 3.0

by osama goda ✓ · 885 views · created 2025-11-23 · Support Chatbot, AI Chatbot

Ready 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 15 nodes and runs on Telegram events. Along the way it connects OpenRouter Chat Model, Telegram and Data table.

How it runs

Trigger: On Telegram events.

  1. Log - User Message (Data table): uses Data table
  2. DB - Get Lead by User ID (Data table): uses Data table
  3. Check – Lead Record (If): checks a condition and branches into true / false
  4. Build Assistant Context (Code): runs custom JavaScript code
  5. DB - Create Lead (Data table): uses Data table
  6. AI - Smart Support Assistant (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; 4 tools (DB - Get FAQ, DB - Update Lead, DB - Get Services, DB - Get Settings); memory: Simple Memory
  7. Log - Bot Message (Data table): uses Data table
  8. Telegram: uses Telegram

Services it uses

OpenRouter Chat ModelTelegramData table

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (9)

From the author

🧠 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…

Excerpt from osama goda's description on n8n.io.

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.