Automate n8n Docker Updates with Telegram Notifications

Save hours managing n8n Docker updates by automating version checks and updates with Telegram alerts. This workflow ensures your n8n instance is always running the latest Docker image safely with minimal manual effort.
ssh
telegram
httpRequest
+6
Workflow Identifier: 2256
NODES in Use: manualTrigger, scheduleTrigger, set, ssh, httpRequest, merge, if, telegram, stickyNote
Automate n8n updates with Telegram

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

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow checks the n8n Docker container version on a server and compares it with the latest release on GitHub.
If there’s a newer version, it asks the user on Telegram if the update should start.
If approved, the workflow pulls the new image, updates the container, and sends success notifications.
It stops manual, error-prone updating and cuts downtime risks to zero.


Who Should Use This Workflow

This automation fits users running self-host n8n on a server using Docker.
Users who want updates without manual checking, avoiding mistakes, and Telegram alerts should use it.


Tools and Services Used

  • SSH Access: To send commands to the server remotely.
  • Docker & Docker Compose: To manage the n8n container.
  • GitHub API: To get latest n8n release info.
  • Telegram Bot API: Receives user messages and sends notifications.
  • n8n Platform: Runs the workflow automation.

Beginner Step-by-Step: How to Use This Workflow in n8n

Download and Import

  1. Download the prebuilt workflow using the Download button on this page.
  2. Open your n8n editor and use Import from File to load the workflow.

Configure Credentials and Variables

  1. Add your SSH credentials for the server where Docker runs.
  2. Create or add your Telegram Bot API Key and your Telegram chat ID.
  3. Edit the Set Default variable node:
    • Set working-directory to the folder path where docker-compose.yml is on your server.
    • Set n8n-container-name exactly as your Docker container is named.
    • Set telegram-id with your Telegram chat ID.

Test and Activate

  1. Run the workflow once manually to test the version check and Telegram notification.
  2. Check that messages appear correctly and SSH commands run without error.
  3. If all is good, activate the workflow to run regularly using the Schedule Trigger node.

Inputs, Processing, and Outputs

Inputs

  • The current n8n container version fetched by a remote SSH docker inspect command.
  • The latest n8n version from GitHub releases fetched via HTTP request.

Processing Steps

  1. Extracts version string from SSH output.
  2. Cleans GitHub tag to remove prefix for matching.
  3. Merges both versions into a data set.
  4. Compares local and remote versions.
  5. If equal, sends Telegram message “n8n is up to date.” and ends.
  6. If different, sends Telegram approval request message.
    • Waits for user reply interactively.
  7. On approval, runs SSH commands to pull latest Docker image, run docker compose pull, and then docker compose up -d.
  8. Sends Telegram message confirming successful update.

Outputs

  • Telegram notifications about status and approval requests.
  • Automated Docker container updated with the latest n8n version.

Edge Cases and Troubleshooting

  • Issue: SSH command for current version fails.
    Check: Container name is exact and user has sudo on server.
  • Issue: Telegram messages not arriving.
    Check: Bot API Key and chat ID are correct and bot is active.
  • Issue: Workflow gets stuck waiting for approval.
    Check: Telegram reply is sent and the bot can receive messages.


Customization Ideas

  • Change Schedule Trigger timing to daily or weekly checks.
  • Edit Telegram messages to use your language or tone.
  • Add extra SSH commands after update to clean old Docker images or restart other containers.


Summary

✓ Check current n8n Docker version by SSH.
✓ Get latest release version from GitHub.
✓ Compare versions and notify on Telegram.
✓ Ask user for update approval on Telegram.
✓ Pull latest image and update container automatically.
→ Save time and avoid downtime.
→ Automate safe n8n updates with manual control.


Automate n8n updates with Telegram

Visit through Desktop to Interact with the Workflow.

Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.
Author
Written By
Vikash Kumar
Building AI agents, n8n workflows and end-to-end automation for 30+ Brands across India, the US, Europe, Dubai & Australia. 7+ years of Experience saving founders real hours every week - no code required.

Frequently Asked Questions

It runs an SSH command using docker inspect to fetch the version label from the n8n container.
Verify that the Telegram Bot API Key and chat ID are correct and that the bot is active in the chat.
The current workflow requires user approval via Telegram before updating to avoid unwanted downtime.
Add the SSH and Telegram credentials, and update default variables like working-directory, container name, and Telegram chat ID.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.