Skip to main content

Telegram bot inline keyboard with dynamic menus & rating system

Workflow preview

Workflow preview
100%
Telegram bot inline keyboard with dynamic menus & rating system 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 Menus & Rating System What It Does This n8n workflow creates an interactive Telegram bot with: Dynamic inline keyboards that respond to user clicks 5 star rating system...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.telegramtrigger, n8n-nodes-base.function, n8n-nodes-base.set, n8n-nodes-base.if, 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
Telegram bot inline keyboard with dynamic menus & rating system
Workflow name
Telegram bot inline keyboard with dynamic menus & rating system

πŸ€– Telegram Bot with Dynamic Menus & Rating System

What It Does

This n8n workflow creates an interactive Telegram bot with:

  • Dynamic inline keyboards that respond to user clicks
  • 5-star rating system for collecting feedback
  • Personalized responses using the user's actual name
  • Multi-level menu navigation (Main β†’ Settings β†’ Profile, etc.)
  • Real-time message updates when buttons are clicked

How It Works

  1. Receives messages via Telegram webhook trigger node
  2. Extracts user data (name, ID, message type)
  3. Builds dynamic menus based on user actions
  4. Sends/updates messages with inline keyboards
  5. Handles button clicks without page refresh

πŸš€ Setup Instructions

  1. Get Your Bot Credentials
  2. Configure Workflow
  • Open "Set Bot Token" node
  • Replace token with yours
  • Save and activate workflow (Active)
  1. Test Your Bot
  • Message your bot on Telegram
  • Click the buttons to navigate menus
  • Try the rating system on Feature 1

🎨 Customization Guide

Add New Menu Items

In the "Prepare Response" Function node, add new cases: case 'your_feature': responseText = 'Your feature description'; keyboard = [ [{ text: '🎯 Button 1', callback_data: 'action1' }], [{ text: 'πŸ”™ Back', callback_data: 'main' }] ]; break;

Modify Rating Options

Change star buttons to numbers or emojis: // Current: ⭐⭐⭐ // Alternative: 1️⃣ 2️⃣ 3️⃣ or πŸ‘Ž πŸ‘

Change Bot Responses

  • Edit responseText for message content
  • Modify keyboard arrays for button layout
  • Add HTML formatting: bold, italic

πŸ’‘ ++Key Features Demonstrated++

  • HTTP Request workaround for dynamic keyboards (n8n Telegram node limitation)
  • Callback query handling to prevent loading animations
  • Message editing vs sending new messages
  • User data extraction from Telegram API
  • Switch-case menu routing for scalable navigation

⚠️ ++Important Notes++

  • Limitation: n8n's native Telegram node doesn't support dynamic inline keyboards, this is why need to use HTTP nodes.
  • Solution demonstrated: Use HTTP Request node with Telegram Bot API directly

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 - Sticky Note1

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

Block 2 - Sticky Note

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

Block 3 - Sticky Note 6

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

Block 4 - Sticky Note 7

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

Block 5 - Sticky Note 8

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

Block 6 - Sticky Note Main1

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

Block 7 - TG Trigger node

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

Block 8 - Prepare Magic Response

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

Block 9 - Set Bot Token API KEY

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

Block 10 - Is CALLBACK?

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

Block 11 - Send to Telegram API

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

Block 12 - Answer Callback

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

3. Summary Table

Workflow Telegram bot inline keyboard with dynamic menus & rating system
Complexity intermediate
Nodes 12
Categories Support Chatbot, Multimodal AI
Author Ruslan Elishev
Published 20 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7664/7664.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 Telegram bot inline keyboard with dynamic menus & rating system do?

Telegram Bot with Dynamic Menus & Rating System What It Does This n8n workflow creates an interactive Telegram bot with: Dynamic inline keyboards that respond to user clicks 5 star rating system...

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, Multimodal AI use case.