Activate/Deactivate n8n Workflows via Telegram Commands

Struggling to manage n8n workflows when away from your computer? This Telegram N8N workflow lets you activate or deactivate workflows remotely via simple commands, saving time and avoiding urgent mishaps.
n8n
telegramTrigger
switch
+2
Workflow Identifier: 2434
NODES in Use: stickyNote, filter, n8n, switch, telegramTrigger

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow lets you start or stop n8n workflows by sending commands from your Telegram app. It solves the problem of not being able to access n8n dashboards quickly during an issue. The workflow listens to your private Telegram messages and uses commands like /stop marketing or /start sales to change workflow states remotely.

You save time and avoid delays in fixing workflow errors. The workflow uses the Telegram bot and the n8n API to act on your commands. It works anywhere you have Telegram, without opening computers or dashboards.


Tools and services used

  • Telegram Bot API: Receives and filters messages based on your chat ID.
  • n8n API: Authenticates and performs workflow activation or deactivation.
  • Telegram Trigger node: Listens for incoming Telegram messages to the bot.
  • Filter node: Filters messages to allow only those from your personal chat ID.
  • Switch nodes: Detect command type (start or stop) and target workflow keywords.
  • n8n node: Sends API calls to activate or deactivate workflows by workflow ID.

How this workflow works (Input → Process → Output)

Input

The workflow receives messages sent to the Telegram bot. The user sends text commands like /stop marketing or /start sales from their private chat.

Processing Steps

  • The Telegram Trigger captures the message.
  • The Filter node checks if the message came from the allowed Telegram chat ID only.
  • The first Switch node identifies if the command is to start or stop a workflow.
  • Two other Switch nodes check the command details to find the exact workflow name (like “marketing”, “sales”, “usdc”, or “hsuite”).
  • Based on the command and workflow, the n8n node calls the n8n API to activate or deactivate the targeted workflow.

Output

The targeted n8n workflow changes its state—either starting or stopping—without manual login or dashboard access. The user controls workflows remotely just via Telegram messages.


Who should use this workflow

This workflow is for users who manage important n8n workflows and need quick, mobile control. It helps when dashboard access is slow or unavailable. Users managing digital campaigns, sales automation, or any time-sensitive workflows will benefit most.

It is also useful for anyone wanting to pause or resume workflows with simple Telegram commands from their phone, saving time during emergencies.


Beginner step-by-step: How to use this workflow in n8n

Step 1: Import the workflow

  1. Download the supplied workflow file using the Download button on this page.
  2. Open your n8n editor, then go to the top right menu and select Import from File.
  3. Choose the downloaded workflow file to load it into your workspace.

Step 2: Add credentials

  1. Add your Telegram bot API key under n8n credentials named Telegram API.
  2. Add your n8n API key credential created from your n8n instance settings.

Step 3: Update workflow settings

  1. Edit the Filter node to put your personal Telegram chat ID for security.
  2. In the Switch nodes, update or add workflow keywords to match your workflows.
  3. In the n8n node, replace workflow ID URLs with your real workflow IDs to control.

Step 4: Test the workflow

  1. Send test Telegram messages like /stop marketing from your personal chat to the bot.
  2. Watch in n8n if the correct workflow is stopped or started as expected.

Step 5: Activate for production

  1. Once testing succeeds, activate the workflow in n8n so it runs continuously and listens for commands.

If using self-host n8n, verify the instance supports API key authentication and is reachable online. More help at self-host n8n.


Customization ideas

  • Add more keywords and cases in the Switch nodes to support extra workflows like “finance” or “support.”
  • Change the Filter node to allow multiple Telegram chat IDs for more users.
  • Add synonyms in command detection like /enable or /disable alongside /start and /stop.
  • Add Telegram Send Message nodes after actions to send confirmation replies to the user.

Edge cases and troubleshooting

If workflows do not activate or deactivate correctly, check that workflow IDs in the n8n node match your actual workflows exactly. Also confirm API keys are added and correct.

If the Telegram Trigger does not start, verify the bot token is correct and the bot has been messaged from your Telegram account to initialize chat ID capture.


Summary of results

✓ Users send Telegram messages to start or stop workflows anytime.
✓ Workflows change state remotely without dashboard login.
✓ Faster response saves time and prevents errors during issues.
✓ Control from mobile keeps campaigns and systems running smoothly.


Frequently Asked Questions

The workflow uses a Filter node to accept messages only from a specific Telegram chat ID. It then uses Switch nodes to detect if the command starts with /start or /stop and matches workflow keywords.
Wrong workflow IDs cause activation or deactivation to fail. It is important to input exact workflow IDs in the n8n node to control the correct workflows.
By default, the workflow filters only one Telegram chat ID. It can be customized to accept multiple allowed chat IDs for more users.
Yes, but the self-hosted n8n must support API key authentication and be accessible online. More details can be found at self-host n8n resources.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free