AutomationFlowsSlack & Telegram › AI Digest — Error Handler

AI Digest — Error Handler

AI Digest — Error Handler. Uses errorTrigger, telegram. Event-driven trigger; 3 nodes.

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

This workflow follows the Error Trigger → Telegram 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": "AI Digest \u2014 Error Handler",
  "nodes": [
    {
      "parameters": {},
      "id": "err-trigger",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "typeVersion": 1,
      "position": [
        400,
        400
      ]
    },
    {
      "parameters": {
        "language": "javaScript",
        "jsCode": "const e = $json.execution || {};\nconst err = e.error || {};\nconst esc = (s) => String(s || '').replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');\nconst text = `\u26a0\ufe0f <b>AI \u0414\u0430\u0439\u0434\u0436\u0435\u0441\u0442 \u0443\u043f\u0430\u043b</b>\\n` +\n  `Workflow: <code>${esc(e.workflowName || 'unknown')}</code>\\n` +\n  `Node: <code>${esc(e.lastNodeExecuted || 'unknown')}</code>\\n` +\n  `Error: <code>${esc((err.message || JSON.stringify(err)).slice(0,500))}</code>\\n` +\n  `Time: ${new Date().toISOString()}`;\nreturn [{ json: { text } }];"
      },
      "id": "err-format",
      "name": "Format Error",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        700,
        400
      ]
    },
    {
      "parameters": {
        "chatId": "={{ $env.TG_CHAT_ID }}",
        "text": "={{ $json.text }}",
        "additionalFields": {
          "parse_mode": "HTML"
        }
      },
      "id": "err-send",
      "name": "Telegram Error Notify",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        1000,
        400
      ],
      "credentials": {}
    }
  ],
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Format Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Error": {
      "main": [
        [
          {
            "node": "Telegram Error Notify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "timezone": "Europe/Moscow",
    "executionOrder": "v1"
  },
  "active": false,
  "versionId": "",
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "tags": []
}
Pro

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

About this workflow

AI Digest — Error Handler. Uses errorTrigger, telegram. Event-driven trigger; 3 nodes.

Source: https://github.com/FlagonTTM/n8n-ai-news/blob/1ffbaaa30e8cc8aefcd3ecc178e94833f131a4ed/workflows/error-handler.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

clients kept booking meetings during my prayer times. i'd either miss a prayer or scramble to reschedule. the problem wasn't the clients — it was that my calendar had no blocked windows for salah. i n

Telegram Trigger, HTTP Request, Google Calendar +3
Slack & Telegram

This workflow manages clinic appointments across Google Sheets and Google Calendar, using webhooks and Telegram to book and confirm visits, Gmail and Telegram to deliver prescriptions, scheduled Teleg

Google Calendar, Telegram, Google Sheets +4
Slack & Telegram

This workflow is an AI-powered roto matte generation and first-pass compositing pipeline designed for VFX production. It transforms structured roto requests into multiple high-precision matte passes u

HTTP Request, Slack, Error Trigger +4
Slack & Telegram

007-Error-Handler. Uses errorTrigger, googleSheets, telegram. Event-driven trigger; 19 nodes.

Error Trigger, Google Sheets, Telegram
Slack & Telegram

05 · Error Handling & Retry Template. Uses errorTrigger, googleSheets, telegram, httpRequest. Event-driven trigger; 12 nodes.

Error Trigger, Google Sheets, Telegram +1