AutomationFlowsSlack & Telegram › Content Pipeline Error Handler — Slack Alert

Content Pipeline Error Handler — Slack Alert

Content Pipeline Error Handler — Slack Alert. Uses errorTrigger, slack. Event-driven trigger; 3 nodes.

Event trigger★★★★☆ complexity3 nodesError TriggerSlack
Slack & Telegram Trigger: Event Nodes: 3 Complexity: ★★★★☆ Added:

This workflow follows the Error Trigger → Slack 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 →

Download .json
{
  "name": "Content Pipeline Error Handler \u2014 Slack Alert",
  "nodes": [
    {
      "parameters": {},
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "typeVersion": 1,
      "position": [
        240,
        304
      ]
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "const e = $json;\nconst wf = e.workflow || {};\nconst err = e.execution || {};\nconst lastNode = err.lastNodeExecuted || \"unknown\";\nconst mode = err.mode || \"unknown\";\nconst errMsg = (err.error && err.error.message) ? err.error.message : \"(no message)\";\n// Point this at your own n8n instance so the alert deep-links to the failed run.\nconst N8N_BASE_URL = \"https://YOUR-INSTANCE.app.n8n.cloud\";\nconst execUrl = N8N_BASE_URL + \"/workflow/\" + wf.id + \"/executions/\" + (err.id || \"\");\nconst title = \"\ud83d\udea8 n8n error: \" + (wf.name || \"unknown\");\nconst body = [\n  \"*Workflow:* \" + (wf.name || wf.id),\n  \"*Failed node:* \" + lastNode,\n  \"*Mode:* \" + mode,\n  \"*Error:* ```\" + errMsg.substring(0, 500) + \"```\",\n  \"*Execution:* \" + execUrl\n].join(\"\\n\");\nreturn { json: { title, body, exec_url: execUrl } };"
      },
      "name": "Format Message",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        464,
        304
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "value": "REPLACE_WITH_CHANNEL_ID",
          "mode": "list",
          "cachedResultName": ""
        },
        "text": "={{ $json.title }}\n\n{{ $json.body }}\n\n<{{ $json.exec_url }}|Open execution in n8n>",
        "otherOptions": {
          "includeLinkToWorkflow": false,
          "mrkdwn": true
        }
      },
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.4,
      "position": [
        720,
        304
      ],
      "name": "Send a message",
      "credentials": {
        "slackOAuth2Api": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Format Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Message": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Content Pipeline Error Handler — Slack Alert. Uses errorTrigger, slack. Event-driven trigger; 3 nodes.

Source: https://github.com/alectivism/n8n-workflows/blob/main/error-handler-slack/workflow.json — original creator credit. Request a take-down →

More Slack & Telegram workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Slack & Telegram

Track all n8n workflow failures with automatic error capture, severity classification, duplicate detection, Slack alerting, performance metrics, and log retention.

Error Trigger, HTTP Request, Slack
Slack & Telegram

This workflow captures n8n workflow execution errors, classifies and deduplicates them, logs incidents to a Notion database, and routes high-severity alerts to a Slack channel, with an optional daily

Error Trigger, Notion, Slack
Slack & Telegram

Stop missing renewal deadlines and overpaying on auto-renewals. This workflow monitors your contract calendar in Google Sheets, sends progressive Slack notifications with manual research checklists, a

Slack, Error Trigger, Google Sheets
Slack & Telegram

This workflow is designed for developers, DevOps engineers, and automation specialists who manage multiple n8n workflows and need a reliable way to monitor for failures and receive alerts in real time

Error Trigger, Execute Workflow Trigger, Gmail +4
Slack & Telegram

The Error Notification workflow is designed to instantly notify you whenever any other n8n workflow encounters an error, using popular communication channels like Telegram and Gmail—with optional supp

Error Trigger, Gmail, WhatsApp +3