{
  "name": "08 Error alert for all your workflows",
  "nodes": [
    {
      "id": "33bfc3f3-1551-4dc4-bb09-13b1d27eded0",
      "name": "When a workflow fails",
      "type": "n8n-nodes-base.errorTrigger",
      "typeVersion": 1,
      "position": [
        0,
        300
      ],
      "parameters": {}
    },
    {
      "id": "e9af4348-5c69-4114-8412-fb6c7c6d9b66",
      "name": "Email the error",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 2.1,
      "position": [
        240,
        300
      ],
      "parameters": {
        "fromEmail": "info@example.com",
        "toEmail": "you@example.com",
        "subject": "=Workflow failed: {{ $json.workflow.name }}",
        "emailFormat": "text",
        "text": "=Workflow: {{ $json.workflow.name }}\nStep: {{ $json.execution.lastNodeExecuted }}\nError: {{ $json.execution.error.message }}\nTime: {{ $now.setLocale('en-US').toFormat('MMMM d, h:mm a') }}\n\nOpen the execution: {{ $json.execution.url }}",
        "options": {
          "appendAttribution": false
        }
      }
    },
    {
      "id": "fa9595e5-ae7b-44b5-a6e2-057a2d3d6c6d",
      "name": "Read me",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -40,
        -160
      ],
      "parameters": {
        "content": "## Error alert for all your workflows\nTested on November 11, 2026, with n8n 2.47.3.\n\n**Fill in:** an SMTP account and your own address. Then, in every other workflow, open Settings > Error workflow and pick this one.",
        "height": 220,
        "width": 520,
        "color": 7
      }
    }
  ],
  "connections": {
    "When a workflow fails": {
      "main": [
        [
          {
            "node": "Email the error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  }
}