Skip to main content

Safely update n8n with version checks and Telegram notifications

Workflow preview

Workflow preview
100%
Safely update n8n with version checks and Telegram notifications preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who’s it for This workflow is for system administrators or self hosted n8n users who want to automatically check and update their n8n instance to the latest version — with Telegram notifications fo...

Best for

  • DevOps automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.merge, n8n-nodes-base.if, n8n-nodes-base.function, n8n-nodes-base.telegram, n8n-nodes-base.scheduletrigger, n8n-nodes-base.n8n

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by David Hernández Luján.

Original n8n.io source

1.1 Workflow description

Title
Safely update n8n with version checks and Telegram notifications
Workflow name
Safely update n8n with version checks and Telegram notifications

Who’s it for

This workflow is for system administrators or self-hosted n8n users who want to automatically check and update their n8n instance to the latest version — with Telegram notifications for every step.


How it works

  1. The workflow runs daily at 9 AM or every time n8n starts.
  2. It retrieves your current version using the Execute Command node.
  3. It checks the latest release from the official n8n GitHub API.
  4. It compares both versions and decides whether an update is needed.
  5. If an update is available:
    • Sends a Telegram alert.
    • Verifies that there are no running executions.
    • Runs the update command safely.
    • Sends a confirmation message when done.
  6. If your instance is already up to date, it sends a “latest version” message instead.

Requirements

  • Self-hosted n8n instance with access to run terminal commands.
  • A valid Telegram Bot API credential (configured in n8n Credentials; not hardcoded).
  • SSH credentials To run commands on the server where n8n is installed
  • n8n API credentials To query running executions

How to set up

  1. Import this workflow into your n8n instance.
  2. Connect your Telegram Bot credential to the Telegram nodes.
  3. Adjust the chat ID and message thread ID if needed.
  4. (Optional) Change the schedule time in the Schedule Trigger node.
  5. Save and activate the workflow.

How to customize

  • Change the update command if you’re running n8n via Docker:
    docker pull n8nio/n8n:latest
    

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get Latest Version2

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 1

Block 2 - Code1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 3 - Merge1

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 4 - If1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 5 - Function Check Running1

Type / Role
n8n-nodes-base.function - function
Config choices
Version 1

Block 6 - Send a text message

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 7 - Send a text message5

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 8 - Send a text message6

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1

Block 9 - Schedule Trigger1

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1

Block 10 - If3

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 11 - Get many executions1

Type / Role
n8n-nodes-base.n8n - n8n
Config choices
Version 1

Block 12 - n8n Trigger1

Type / Role
n8n-nodes-base.n8nTrigger - n8nTrigger
Config choices
Version 1

Block 13 - Wait1

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1

Block 14 - Execute a command2

Type / Role
n8n-nodes-base.ssh - ssh
Config choices
Version 1

Block 15 - Execute a command3

Type / Role
n8n-nodes-base.ssh - ssh
Config choices
Version 1

3. Summary Table

Workflow Safely update n8n with version checks and Telegram notifications
Complexity advanced
Nodes 15
Categories DevOps
Author David Hernández Luján
Published 16 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9792/9792.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Safely update n8n with version checks and Telegram notifications do?

Who’s it for This workflow is for system administrators or self hosted n8n users who want to automatically check and update their n8n instance to the latest version — with Telegram notifications fo...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps use case.