Deploy an advanced Telegram bot using this n8n workflow template. Implement dynamic inline keyboards, multi-level navigation, and a 5-star feature rating system using custom n8n nodes and HTTP requests.
Download this n8n workflow template and start using it instantly.
Building highly interactive chat interfaces, such as those with multi-level inline keyboards and feedback forms, often pushes the limits of standard integration tools. This specialized n8n workflow solves this by utilizing custom code and direct Telegram API calls to overcome the limitations of the standard Telegram n8n node, enabling truly dynamic interactivity.
This n8n template provides a complete framework for handling both new messages and button click events (callback queries) within a single flow. It includes logic for personalized greetings, dynamic menu switching (e.g., Settings, Features, Stats), and a fully functional 1-5 star feature rating mechanism, all managed seamlessly within the core Function n8n node. This approach makes scaling your bot logic easy and efficient using n8n.
The entire flow of this advanced n8n workflow is initiated by the TG Trigger node, which serves as the primary n8n trigger, listening for both standard messages (like '/start') and user interactions via inline button clicks (callbackquery).
Prepare Magic Response Function n8n node.callbackdata (e.g., 'rate_5', 'feature1') to construct a customized text response and the corresponding JSON structure for the next inline keyboard.Set Bot Token API KEY n8n node ensures the necessary Telegram Bot token is appended to the data stream.Is CALLBACK? If n8n node checks the isCallback flag generated by the Function n8n node. If TRUE (a button was clicked), the flow proceeds down the branch designed to edit the existing message. If FALSE (a new message was sent), it proceeds to send a brand new message.Send to Telegram API HTTP Request n8n node executes the core communication. It dynamically switches between the sendMessage and editMessageText Telegram API methods based on the apiMethod property determined in the Function n8n node, sending the dynamically generated inline keyboard.Answer Callback HTTP Request n8n node runs immediately after the message is updated. This secondary n8n node sends a quick acknowledgment to Telegram to dismiss the 'loading' state on the user's client, providing a smooth user experience within this complex n8n workflow.To utilize this powerful n8n workflow template, follow these steps:
TG Trigger node, configure your Telegram API Credentials. You must link the webhook ID to your bot via BotFather.Set Bot Token API KEY n8n node. Replace the placeholder text with your actual Telegram bot token (obtained from @BotFather). TG Trigger node (Telegram Trigger): The starting n8n trigger point. Configured to listen for both message (new command/text) and callbackquery (button clicks) events.
Prepare Magic Response (Function node): This is the custom code that contains the entire dynamic menu structure, including multi-level navigation logic, name extraction, and the 1-5 star rating system. It sets the appropriate apiMethod (sendMessage or editMessageText) and constructs the full Telegram API request body with the inlinekeyboard structure.
Set Bot Token API KEY (Set node): Centralizes the Telegram API key (botToken) so it can be easily accessed by downstream HTTP Request n8n nodes for constructing the API URLs.
Is CALLBACK? (If node): A flow control n8n node that routes the execution based on whether the input event was a button press (isCallback = TRUE) or a new text message (isCallback = FALSE).
Send to Telegram API (HTTP Request node): This n8n node executes the main task of sending the dynamic message/keyboard. The URL is dynamically built using the botToken and the required apiMethod (sendMessage or editMessageText).
Answer Callback (HTTP Request node): A critical n8n node in the TRUE branch. It sends an API call using the callbackqueryid to acknowledge the button click, which stops the loading indicator in the user's Telegram client.
Automate appointment scheduling, cancellation, and lookup via Telegram using Google Calendar and Sheets. This powerful n8n workflow template handles parsing, validation, and database updates.

Create a powerful Telegram AI chatbot using this advanced n8n workflow. It supports text and voice inputs (using OpenAI Whisper), utilizes GPT-4o for intelligent responses, and maintains conversation history.

Deploy a powerful n8n workflow to run a Telegram AI chatbot using OpenAI. Supports conversational chat, /start greetings, and DALL-E image generation. Get this n8n template now.

Find the best local restaurants instantly via Telegram. This n8n workflow uses a Telegram n8n trigger and SerpAPI to search Google Maps data, sort results by rating, and format a beautiful response.

Build an advanced, stateful Telegram bot using this n8n workflow template. Learn how to manage conversation state across multiple users and commands using n8n nodes and static data.


Professional Product Director that cought vibe of Automaion and Solo Programming and Context Aware AI Vibe coding.







































