Skip to main content

Create a dynamic Telegram bot menu system with multi-level navigation

Workflow preview

Workflow preview
100%
Create a dynamic Telegram bot menu system with multi-level navigation preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 int...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.telegramtrigger, n8n-nodes-base.function, n8n-nodes-base.merge, n8n-nodes-base.if, n8n-nodes-base.switch, n8n-nodes-base.set, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ruslan Elishev.

Original n8n.io source

1.1 Workflow description

Title
Create a dynamic Telegram bot menu system with multi-level navigation
Workflow name
Create a dynamic Telegram bot menu system with multi-level navigation

πŸ€– 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 navigation, and smart button routing - all without writing complex code from scratch.

The bot features a clean separation between your menu structure and business logic. This means you can change your menus anytime without breaking the underlying functionality. Think of it like WordPress menus but for Telegram bots - you define the navigation, and the workflow handles everything else.

Your bot will respond with personalized messages, remember user context, handle button clicks smoothly (no annoying loading spinners!), and route different actions to specialized handlers. Whether users are rating your service, checking their subscription status, or navigating through settings, everything just works.

πŸš€ Getting Started in 3 Minutes

Step 1: Get Your Bot Token

Head over to Telegram and chat with @BotFather. Create a new bot (or use an existing one) and grab that token. In the workflow, find the purple "Set Bot Token" node and replace [!!! YOUR_BOT_TOKEN_HERE !!!] with your actual token.

Step 2: Activate the Magic

Save the workflow, click on "Production" tab, and you'll see a webhook URL. Toggle the workflow to Active. That's it - your bot is live!

Step 3: See It In Action

Message your bot on Telegram. Type /start and watch your beautiful menu appear. Click around, explore the buttons - everything is already set up and working.

🎨 Making It Yours

Want to Add Your Own Menus?

Open the workflow and look for the sticky note titled "πŸ“– COMPLETE GUIDE: ADDING MENUS & ACTIONS". I've written step-by-step instructions right there in the workflow. You'll find exact examples showing how to add a contact menu, subscription status checker, or whatever you need.

The beauty is in the simplicity - menus are just text and buttons. No complicated logic mixed in. Check the "πŸ“š REAL EXAMPLES" sticky note for copy-paste templates you can modify.

Need Custom Actions?

When a button needs to actually DO something (save data, call an API, send an email), that's where handlers come in. The workflow includes 7 pre-built handlers for common tasks like ratings, language switching, and analytics. Want to add your own? The "πŸ’‘ ADDING HANDLERS" sticky note walks you through it.

πŸ’‘ Why This Workflow Is Different

Most Telegram bot tutorials have you mixing menu code with business logic, making changes a nightmare. This workflow separates everything cleanly. Your menus live in one place, your logic in another. It's like having a control panel for your bot.

The workflow also solves a common n8n limitation - the native Telegram node doesn't support dynamic inline keyboards. Instead of giving up, this workflow uses HTTP requests directly to the Telegram API, giving you full control over every feature.

πŸ”§ Pro Tips from the Trenches

After building dozens of Telegram bots, here's what I've learned:

  • Always include a "Back" button - users panic without an escape route
  • Use emojis in your buttons - they make everything friendlier
  • Test each menu path after changes - one typo can break navigation
  • Keep action handlers focused - one handler, one job

Hit a snag? Check the "πŸ› TROUBLESHOOTING & TIPS" sticky note in the workflow. I've documented all the common "gotchas" and their fixes.

πŸ“¦ What's Included

This workflow comes with everything you need:

  • Centralized menu configuration system
  • Smart routing that automatically detects which button was pressed
  • 7 ready-to-use action handlers (modify or replace as needed)
  • Parallel processing for lightning-fast responses
  • Built-in error handling with fallback menus
  • Comprehensive documentation right in the workflow via sticky notes

πŸš€ Taking It Further

Once you're comfortable with the basics, this architecture scales beautifully. Connect a database to remember user preferences. Integrate with your CRM to pull customer data. Add payment processing for a shopping bot. The modular design means you can enhance one part without touching the others.

The workflow sticky notes contain advanced examples for multi-language support, user authentication, and API integrations. Everything is explained in plain English with code examples you can actually use.

🀝 One Last Thing

This workflow started as a simple dynamic menu with rating workflow and evolved into something much more powerful through community feedback. If you build something cool with it, I'd love to hear about it. And if you get stuck, remember - all the answers are in those sticky notes. I spent way too much time making them ridiculously detailed so you wouldn't have to struggle like I did.

Happy bot building! 🎯


Version: 1.0 - Centralized Menu System with Branching Author: Ruslan Elishev

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - πŸ“š REAL EXAMPLES

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Telegram Trigger4

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1

Block 3 - Load Menu Config2

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 4 - Extract Command4

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 5 - Merge Config & Command2

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 2.1

Block 6 - Process Command2

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 7 - Needs Action?2

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 8 - Action Router2

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 9 - Rating Handler2

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 10 - Language Handler2

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 11 - Analytics Handler2

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 12 - Statistics Handler3

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 13 - Feedback Handler3

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 14 - Settings Handler3

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 15 - Default Handler2

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 16 - Build Response2

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 17 - Prepare Telegram2

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 18 - Set Bot Token4

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 19 - Is Callback?4

Type / Role
n8n-nodes-base.if - if
Config choices
Version 1

Block 20 - Send to Telegram4

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 21 - Answer Callback4

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 22 - πŸ”€ Router Logic2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - πŸš€ QUICK START GUIDE1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - πŸ“š WORKFLOW ARCHITECTURE1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 28 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Create a dynamic Telegram bot menu system with multi-level navigation
Complexity advanced
Nodes 28
Categories Support Chatbot, AI Chatbot
Author Ruslan Elishev
Published 22 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8844/8844.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Create a dynamic Telegram bot menu system with multi-level navigation do?

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 int...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.