Create a dynamic Telegram bot menu system with multi-level navigation
Needs changesWhat this workflow does
This workflow has 20 nodes and runs on Telegram events (message, callback query). Along the way it connects Telegram.
How it runs
Trigger: On Telegram events (message, callback query).
- Load Menu Config (Function): runs custom JavaScript (legacy Function node)
- Extract Command (Function): runs custom JavaScript (legacy Function node)
- Merge: merges the data from its input branches
- Process Command (Function): runs custom JavaScript (legacy Function node)
- Needs Action? (If): checks a condition and branches into true / false
- Action Router (Switch): routes items into branches
- Build Response (Function): runs custom JavaScript (legacy Function node)
- Rating Handler (Function): runs custom JavaScript (legacy Function node)
- Language Handler (Function): runs custom JavaScript (legacy Function node)
- Analytics Handler (Function): runs custom JavaScript (legacy Function node)
…plus 9 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- Function (legacy) in Load Menu Config2, Extract Command4, Process Command2…: replace with Code node, mode 'Run Once for All Items'.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| Function (legacy) Load Menu Config2, Extract Command4, Process Command2, Rating Handler2, Language Handler2, Analytics Handler2, Statistics Handler3, Feedback Handler3, Settings Handler3, Default Handler2, Build Response2, Prepare Telegram2 | Code node, mode 'Run Once for All Items' |
Nodes used (7)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Function
n8n-nodes-base.function - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest
From the author
🤖 Telegram Bot with Dynamic Multi-Level Menu System What This Workflow Does Ever wanted to build a Telegram bot with professional-looking menus that actually work? This n8n workflow creates an interactive bot with dynamic inline keyboards, multi-level…