AutomationMart
Home/Browse/Telegram bot with menu-driven commands
n8n

Telegram bot with menu-driven commands

n8nn8n21 modulesv1.0
Telegram

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
Telegram bot with menu-driven commands workflow diagram

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.

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n β†’ click the menu β†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

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

Automatically send Telegram replies for new emails received via Custom Mail Hook. Streamline communication by connecting email notifications to Telegram responses.

Free

Financial Data Automation (Crypto)

it begins by using BrowseAct to collect data. This data is then parsed from its JSON format and processed by an iterator that loops through each item. The workflow saves the data to a database and enriches it with prices and timestamps via API calls. Finally, it uses QuickChart to create a visual chart and sends it as a photo using a Telegram Bot

Free

Filter and update Google Sheets rows while sending Telegram messages

Automatically filter Google Sheets rows, send Telegram messages, and update data. Streamline communication and data management with this powerful integration.

Free

ChatGPT-Powered Telegram Bot for Instant Replies

Elevate your Telegram channel with our ChatGPT-powered bot. Deliver instant, smart responses to user queries, enhancing engagement and customer satisfaction effortlessly.

Free

Send data to Telegram when updates occur

Automatically send data to Telegram whenever updates occur, using Telegram's WatchUpdates and HTTP's ActionSendData modules for real-time notifications.

Free

Allow users to send a sequence of messages to an AI agent in Telegram

Use Case When creating chatbots that interface through applications such as Telegram and WhatsApp, users can often sends multiple shorter messages in quick succession, in place of a single, longer message. This workflow accounts for this behaviour. What it Does This workflow allows users to send several messages in quick succession, treating them as one coherent conversation instead of separate messages requiring individual responses. How it Works 1. When messages arrive, they are stored in a S

Free

Notify HubSpot deal stage changes with OpenAI, Slack and Gmail

Quick overview This workflow triggers on HubSpot dealstage changes, pulls full deal, contact, and owner details, uses OpenAI to generate a concise Slack-ready update with next steps, notifies the right Slack channel or emails the owner for ClosedWon, logs the event to Google Sheets, and writes a note back to HubSpot. How it works 1. Triggers in HubSpot whenever a deal property changes and continues only when the changed property is the deal stage. 2. Retrieves the full deal record from HubSpot,

Free

Score person ICP (Ideal Customer Profile) with Airtop

Scoring LinkedIn Profiles Against Your ICP Use Case This automation scores individual LinkedIn profiles against your Ideal Customer Profile (ICP) based on interest in AI, technical depth, and seniority level. It's ideal for prioritizing leads and understanding how well a person fits your ICP criteria. What This Automation Does Given a LinkedIn profile and an Airtop profile, it: - Extracts relevant data from the person's profile - Determines levels of AI interest, seniority, and technical depth -

Free

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.

Log in to review
Free
No ratings yet

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.

β‚Ή2,499/ session
3 hrs Β· video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free