This workflow follows the Error Trigger → HTTP Request 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 →
{
"name": "Zero-Cost Social Pipeline Error Handler (M6)",
"nodes": [
{
"parameters": {},
"id": "node-error-trigger-01",
"name": "Error Trigger",
"type": "n8n-nodes-base.errorTrigger",
"typeVersion": 1,
"position": [
0,
0
]
},
{
"parameters": {
"method": "POST",
"url": "={{ 'https://api.telegram.org/bot' + $env.TELEGRAM_BOT_TOKEN + '/sendMessage' }}",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify({ chat_id: Number($env.TELEGRAM_CHAT_ID) || $env.TELEGRAM_CHAT_ID, text: 'Social pipeline FAILED\\nWorkflow: ' + ($json.workflow ? $json.workflow.name : 'unknown') + '\\nNode: ' + ($json.execution ? $json.execution.lastNodeExecuted : 'unknown') + '\\nError: ' + ($json.execution && $json.execution.error ? $json.execution.error.message : 'unknown') + '\\nExecution: ' + ($json.execution ? $json.execution.url : 'unknown') }) }}",
"options": {}
},
"id": "node-notify-failure-02",
"name": "NotifyFailure",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4,
"position": [
400,
0
],
"notes": "Sends the failure notification via the Telegram Bot API directly using the bot token from the n8n environment. chat_id comes from TELEGRAM_CHAT_ID."
},
{
"parameters": {
"jsCode": "const item = $input.first().json;\nreturn [{\n json: {\n ...item,\n logged: true\n }\n}];"
},
"id": "node-log-error-03",
"name": "LogErrorToFile",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
800,
0
],
"notes": "Pass-through node: n8n's code-node sandbox disallows fs, so failure details are surfaced only in the Telegram alert (NotifyFailure)."
}
],
"connections": {
"Error Trigger": {
"main": [
[
{
"node": "NotifyFailure",
"type": "main",
"index": 0
}
]
]
},
"NotifyFailure": {
"main": [
[
{
"node": "LogErrorToFile",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {},
"active": false,
"versionId": "b2c3d4e5f6071829",
"tags": [],
"id": 2
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Zero-Cost Social Pipeline Error Handler (M6). Uses errorTrigger, httpRequest. Event-driven trigger; 3 nodes.
Source: https://github.com/tamimlabs/social-media-automation/blob/main/workflows/social_pipeline_error.json — 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.
Say goodbye to messy JSON exports. Treat your n8n automations like real software with a built-in CI/CD pipeline.
WB-02: Auto-Assign Officer. Uses executeWorkflowTrigger, httpRequest, errorTrigger. Event-driven trigger; 8 nodes.
Auto-Healing Alert Mechanism. Uses httpRequest, emailSend, errorTrigger. Event-driven trigger; 8 nodes.
Global Error Handler - Kimi Auto-Heal. Uses errorTrigger, httpRequest, emailSend. Event-driven trigger; 4 nodes.
Global Error Handler → AgeniusDesk. Uses errorTrigger, httpRequest. Event-driven trigger; 4 nodes.