Telegram bot with menu-driven commands
This template provides a structured way to build Telegram bots that respond to specific commands and handle user input. It allows users to interact with your bot by selecting options from a Telegram bot menu, without needing to type out full instructions or rely on conversational AI. This approach offers precise control and predictable behavior for command-driven interactions. Key Features: π€ Structured Command Handling: Unlike approaches that rely on conversational AI (like the "AI Agent" node
At a glance
Telegram bot with menu-driven commands is a ready-made n8n workflow you import as a workflow JSON file β no build required. It connects Telegram. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Telegram
- Modules
- 21
- Price
- Free
- Version
- v1.0

About this workflow
This template provides a structured way to build Telegram bots that respond to specific commands and handle user input. It allows users to interact with your bot by selecting options from a Telegram bot menu, without needing to type out full instructions or rely on conversational AI. This approach offers precise control and predictable behavior for command-driven interactions. Key Features: π€ Structured Command Handling: Unlike approaches that rely on conversational AI (like the "AI Agent" node), this template provides a deterministic way to handle specific commands triggered by users selecting options from a Telegram bot menu. Users do not need to write out full instructions. β Command-Based Interaction (Extensible): Ready to process three commands (/command1, /command2, /command3), and easily extensible to support additional commands. π¦ Clear Command Routing: Employs Switch nodes to efficiently route execution based on both the initial command and the current conversation state. π¬ Content Requesting: Prompts the user to provide content after a command is received. This is handled by dedicated Telegram nodes. π οΈ Easy Customization: Includes placeholder (No Operation, do nothing) nodes where you can easily insert your own custom processing logic for each command. Why This Template is Unique: n8n currently lacks a native, built-in mechanism for handling individual Telegram commands in a structured, non-conversational way. Many users resort to "AI Agent" nodes, which are designed for open-ended conversations. This template fills that gap by providing a framework for: β Predefined Commands: Users interact with your bot through a menu of predefined commands, eliminating the need for complex natural language processing. π§ Deterministic Behavior: The workflow's response is predictable and directly tied to the selected command, unlike AI-driven approaches where responses can be less consistent. π±οΈ Simplified Interaction: Users simply click a button in the Telegram menu, making the interaction intuitive and user-friendly. How to Use: 1. Initialization (One-Time): Execute the "Temp to Initiate Static Data" node once to create the necessary telegramStates object in the workflow's static data. This is crucial for state management. 2. Customize Processing Logic: Replace the NoOp nodes (Command1 processing, Command2 processing, Command3 processing) with your own nodes to handle the content received for each command. It is highly recommended to add input validation within your processing logic. 3. Telegram Credentials: Configure the Telegram Trigger and Telegram nodes with your bot's API token. Example Use Case: This template is ideal for creating bots that require a command followed by specific input, such as: π Data Collection: A command to initiate a form, followed by a request for the data. π οΈ Service Requests: A command to request a service, followed by a request for details. π Interactive Tutorials: A command to start a tutorial, followed by a request of completion.
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n β click the menu β Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Send automated replies on Telegram for new emails received via Custom Mail Hook
Financial Data Automation (Crypto)
Filter and update Google Sheets rows while sending Telegram messages
ChatGPT-Powered Telegram Bot for Instant Replies
Send data to Telegram when updates occur
Allow users to send a sequence of messages to an AI agent in Telegram
Notify HubSpot deal stage changes with OpenAI, Slack and Gmail
Score person ICP (Ideal Customer Profile) with Airtop
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint β instant download
- Setup guide PDF included
- 5 downloads Β· valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you