{
  "name": "My Error workflow",
  "tags": [],
  "nodes": [
    {
      "id": "bb79f784-ce85-49ad-af14-666d8beee75c",
      "name": "Sticky Note \u2014 Read Me",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        96
      ],
      "parameters": {
        "width": 520,
        "height": 320,
        "content": "## Setup (read me)\n1) Open the Gmail node and connect credentials.\n2) Set the **To** field to your email or team list.\n3) Save this workflow, then in each target workflow go to **Options \u2192 Settings \u2192 Error workflow** and select this.\n\n### About the payload\nThis uses Error Trigger fields:\n- `{{$json[\"workflow\"][\"name\"]}}` / `{{$json[\"workflow\"][\"id\"]}}`\n- `{{$json[\"execution\"][\"id\"] || \"N/A\"}}`\n- `{{$json[\"execution\"][\"url\"] || \"N/A\"}}`\n- `{{$json[\"execution\"][\"lastNodeExecuted\"] || \"N/A\"}}`\n- `{{$json[\"execution\"][\"error\"][\"message\"]}}`\n\nFor trigger-time failures, execution fields may be missing\u2014email still sends with fallbacks."
      },
      "typeVersion": 1
    },
    {
      "id": "6d160f0f-6637-42af-acef-52aaa8ceb2d7",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        144,
        112
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7b16e9f0-16e7-4ca0-9858-0c5b73e08d76",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        528,
        112
      ],
      "parameters": {
        "toList": "user@example.com",
        "message": "A workflow failed.\\n\\nWorkflow: {{$json[\"workflow\"][\"name\"]}} ({{$json[\"workflow\"][\"id\"]}})\\nExecution ID: {{$json[\"execution\"][\"id\"] || \"N/A\"}}\\nLast node: {{$json[\"execution\"][\"lastNodeExecuted\"] || \"N/A\"}}\\nError: {{$json[\"execution\"][\"error\"][\"message\"]}}\\nExecution URL: {{$json[\"execution\"][\"url\"] || \"N/A\"}}",
        "subject": "n8n: {{$json[\"workflow\"][\"name\"]}} (ID {{$json[\"workflow\"][\"id\"]}}) failed",
        "resource": "message",
        "additionalFields": {}
      },
      "typeVersion": 1
    },
    {
      "id": "065d4139-3ed8-4d52-ba06-7964336fa2c9",
      "name": "Sticky Note \u2014 Publishing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        272
      ],
      "parameters": {
        "width": 420,
        "height": 220,
        "content": "## Publishing checklist\n- Keep this template **Free**.\n- No hardcoded secrets in HTTP nodes.\n- Description uses Markdown with **## headings**.\n- Leave detailed instructions here in sticky notes."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}