This workflow corresponds to n8n.io template #9792 — we link there as the canonical source.
This workflow follows the HTTP Request → n8n recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"meta": {
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "bd03a0fb-1889-43c0-87e9-2c1c8cf385e5",
"name": "Get Latest Version2",
"type": "n8n-nodes-base.httpRequest",
"position": [
416,
1072
],
"parameters": {
"url": "https://api.github.com/repos/n8n-io/n8n/releases/latest",
"options": {}
},
"typeVersion": 1
},
{
"id": "67211dd4-b40e-43f1-bc72-8049c1bdd848",
"name": "Code1",
"type": "n8n-nodes-base.code",
"position": [
864,
992
],
"parameters": {
"jsCode": "// La salida del Merge Node junta ambos nodos\nconst current = $items()[0].json.stdout.trim();\nconst latest = $items()[1].json.tag_name.trim();\n\n// Normalizamos\nconst c = current.replace(/^n8n@/, \"\").replace(/^v/, \"\");\nconst l = latest.replace(/^n8n@/, \"\").replace(/^v/, \"\");\n\nreturn [{\n json: {\n current: c,\n latest: l,\n updateAvailable: c !== l\n }\n}];"
},
"typeVersion": 2
},
{
"id": "e519cb69-b1b4-4468-8fb8-aeb2fccf1299",
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"position": [
640,
992
],
"parameters": {},
"typeVersion": 3
},
{
"id": "f87d5991-4af7-4e7a-8a29-ea0f684c636b",
"name": "If1",
"type": "n8n-nodes-base.if",
"position": [
1088,
992
],
"parameters": {
"options": {},
"conditions": {
"conditions": [
{
"operator": {
"type": "boolean",
"operation": "true"
},
"leftValue": "={{ $json.updateAvailable }}"
}
]
}
},
"typeVersion": 2
},
{
"id": "92fdc664-865b-4565-a0b7-818493c8dafd",
"name": "Function Check Running1",
"type": "n8n-nodes-base.function",
"position": [
1536,
1088
],
"parameters": {
"functionCode": "// Obtenemos todos los items entrantes\nconst allItems = $items();\nconst runningExecutions = allItems.filter(item => item.json.status === 'running');\nreturn [{ json: { canUpdate: runningExecutions.length === 0, runningCount: runningExecutions.length } }];"
},
"typeVersion": 1
},
{
"id": "2c30be63-22df-46a4-b070-857812eb47a4",
"name": "Send a text message",
"type": "n8n-nodes-base.telegram",
"position": [
2336,
944
],
"parameters": {
"text": "Se va a proceder a actualizar n8n",
"chatId": "123456789",
"additionalFields": {
"appendAttribution": false,
"message_thread_id": 2
}
},
"typeVersion": 1
},
{
"id": "5f29278e-276a-4be5-aba7-8c41c9033acc",
"name": "Send a text message5",
"type": "n8n-nodes-base.telegram",
"position": [
1312,
1360
],
"parameters": {
"text": "=Tu n8n esta en la ultima version. v{{ $json.latest }}",
"chatId": "123456789",
"additionalFields": {
"appendAttribution": false,
"message_thread_id": 2
}
},
"typeVersion": 1
},
{
"id": "86551569-28d4-49fa-b7ca-044a5f967f3a",
"name": "Send a text message6",
"type": "n8n-nodes-base.telegram",
"position": [
1312,
912
],
"parameters": {
"text": "=Tienes una actualizaci\u00f3n de n8n",
"chatId": "123456789",
"additionalFields": {
"appendAttribution": false,
"message_thread_id": 2
}
},
"typeVersion": 1
},
{
"id": "82f97eb4-2de3-4cd8-bb08-3ac87cb51a4d",
"name": "Schedule Trigger1",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
64,
912
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 9
}
]
}
},
"typeVersion": 1
},
{
"id": "286f3317-7e32-48b5-985d-a055c0f5e317",
"name": "If3",
"type": "n8n-nodes-base.if",
"position": [
1744,
1088
],
"parameters": {
"options": {},
"conditions": {
"conditions": [
{
"operator": {
"type": "boolean",
"operation": "true"
},
"leftValue": "={{ $json.canUpdate }}"
}
]
}
},
"typeVersion": 2
},
{
"id": "593857b7-c1e4-4bb2-a072-0305086003b7",
"name": "Get many executions1",
"type": "n8n-nodes-base.n8n",
"position": [
1312,
1088
],
"parameters": {
"filters": {},
"options": {},
"resource": "execution",
"requestOptions": {}
},
"typeVersion": 1
},
{
"id": "344e9678-d3b0-4e61-b9ca-aa52f4da8e39",
"name": "n8n Trigger1",
"type": "n8n-nodes-base.n8nTrigger",
"position": [
64,
1072
],
"parameters": {
"events": [
"init"
]
},
"typeVersion": 1
},
{
"id": "5a76766d-022e-43d8-a681-d6cbf2e299fb",
"name": "Wait1",
"type": "n8n-nodes-base.wait",
"position": [
2112,
1152
],
"parameters": {
"unit": "minutes"
},
"typeVersion": 1
},
{
"id": "10cb80fe-d1ac-4d24-8a57-6e5b575e0267",
"name": "Execute a command2",
"type": "n8n-nodes-base.ssh",
"position": [
416,
912
],
"parameters": {
"command": "n8n -v"
},
"typeVersion": 1
},
{
"id": "cc4a3b9f-3b88-4f7c-bb97-8a367726d154",
"name": "Execute a command3",
"type": "n8n-nodes-base.ssh",
"position": [
2336,
1136
],
"parameters": {
"command": "sudo npm update -g n8n && sudo systemctl restart n8n"
},
"typeVersion": 1
}
],
"connections": {
"If1": {
"main": [
[
{
"node": "Send a text message6",
"type": "main",
"index": 0
},
{
"node": "Get many executions1",
"type": "main",
"index": 0
}
],
[
{
"node": "Send a text message5",
"type": "main",
"index": 0
}
]
]
},
"If3": {
"main": [
[
{
"node": "Execute a command3",
"type": "main",
"index": 0
},
{
"node": "Send a text message",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait1",
"type": "main",
"index": 0
}
]
]
},
"Code1": {
"main": [
[
{
"node": "If1",
"type": "main",
"index": 0
}
]
]
},
"Wait1": {
"main": [
[
{
"node": "Get many executions1",
"type": "main",
"index": 0
}
]
]
},
"Merge1": {
"main": [
[
{
"node": "Code1",
"type": "main",
"index": 0
}
]
]
},
"n8n Trigger1": {
"main": [
[
{
"node": "Execute a command2",
"type": "main",
"index": 0
},
{
"node": "Get Latest Version2",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger1": {
"main": [
[
{
"node": "Execute a command2",
"type": "main",
"index": 0
},
{
"node": "Get Latest Version2",
"type": "main",
"index": 0
}
]
]
},
"Execute a command2": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"Get Latest Version2": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
]
]
},
"Get many executions1": {
"main": [
[
{
"node": "Function Check Running1",
"type": "main",
"index": 0
}
]
]
},
"Function Check Running1": {
"main": [
[
{
"node": "If3",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
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. The workflow runs daily at 9 AM or every time n8n starts. It retrieves your…
Source: https://n8n.io/workflows/9792/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Automatically fetch existing domains from Notion's Database and verify the validity of SSL certificates through SSL-Checker. If the validity period is less than 14 days, send a Telegram message notifi
This n8n workflow monitors your Proxmox VE server and sends automated reports to Telegram every 15 minutes. It tracks VM status, host resource usage, temperature sensors, and detects recently stopped
A robust workflow to back up and synchronize your n8n workflows to a GitHub repository, with intelligent change detection and support for file renames.
GNCA AI News Pipeline. Uses rssFeedRead, httpRequest, telegram, errorTrigger. Scheduled trigger; 29 nodes.
n8n update. Uses ssh, manualTrigger, scheduleTrigger, stickyNote. Event-driven trigger; 27 nodes.