{
  "name": "Meta Lead Ads to AWeber Error (template)",
  "nodes": [
    {
      "parameters": {
        "content": "## Error workflow\nSelect this workflow in the main workflow's **Settings > Error workflow**; nothing links it automatically after import. Set your Telegram credential and chat id. n8n only runs an error workflow for automatic executions, so a manual run from the editor will never trigger it: test with a real production failure (for example a wrong list id and a test lead).",
        "height": 220,
        "width": 620,
        "color": 4
      },
      "id": "b3c2a1d0-0000-4000-8000-000000000001",
      "name": "Error Notes",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        448,
        -760
      ]
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.errorTrigger",
      "typeVersion": 1,
      "position": [
        448,
        -496
      ],
      "id": "50cc7aae-5ead-4a65-819f-3b3e089cbb78",
      "name": "Error Trigger"
    },
    {
      "parameters": {
        "chatId": "REPLACE_WITH_TELEGRAM_CHAT_ID",
        "text": "=🚨 Workflow Failed! Attention Required!\n\n📛 Workflow: {{ String($json.workflow?.name ?? 'unknown' ?? '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;') }}\n\n⚙️ Node: {{ String($json.execution?.lastNodeExecuted ?? 'trigger' ?? '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;') }}\n\n💥 Error: {{ String($json.execution?.error?.message ?? $json.trigger?.error?.message ?? 'unknown' ?? '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;') }}\n\n🔗 Run: {{ $json.execution?.url ?? '' }}\n\n🕒 Time: {{ $now.toFormat('MM.dd.yyyy HH:mm:ss ZZZZ') }}\n",
        "additionalFields": {
          "appendAttribution": false,
          "parse_mode": "HTML"
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        672,
        -496
      ],
      "id": "f1581624-88ee-4459-9c9a-ea04c9508eb4",
      "name": "Send a text message"
    }
  ],
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "active": false
}
