{
  "name": "Attach a default error handler to all active workflows",
  "nodes": [
    {
      "id": "d46a710d-0d0e-4040-b2b2-a2bd2e2410ff",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        440,
        520
      ]
    },
    {
      "id": "2e3a9cf6-9a9f-4f11-ab53-e3fa9c393e1f",
      "name": "n8n",
      "type": "n8n-nodes-base.n8n",
      "position": [
        900,
        180
      ]
    },
    {
      "id": "7fc93f47-24ee-4000-ac3f-eb2746a926bb",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        660,
        520
      ]
    },
    {
      "id": "25ed8ec8-2c28-498a-a951-c5ef1b2a2c59",
      "name": "get error handler",
      "type": "n8n-nodes-base.n8n",
      "position": [
        660,
        180
      ]
    },
    {
      "id": "44713be9-786a-4bff-b562-a23146792995",
      "name": "n8n | update",
      "type": "n8n-nodes-base.n8n",
      "position": [
        1500,
        180
      ]
    },
    {
      "id": "be27247a-71e5-4204-9c7c-2692d8a82c8b",
      "name": "set fields",
      "type": "n8n-nodes-base.code",
      "position": [
        1300,
        180
      ]
    },
    {
      "id": "d8774911-f4b2-4198-838b-2d0b89002e25",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        400
      ],
      "parameters": {
        "width": 483.4744075807993,
        "height": 308.64949804469416,
        "content": "## Default Error Handler\n\nUpdate this to your preferred notification mechanism"
      }
    },
    {
      "id": "0baa0fc3-4d5e-4507-bd5d-65ebce68178f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        605.0603083429507,
        126.84319830832769
      ],
      "parameters": {
        "width": 232.91556831986873,
        "height": 216.67545344104974,
        "content": "get ID of self"
      }
    },
    {
      "id": "fabb0db7-7364-4349-8563-952c9f0e07b2",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        440,
        180
      ]
    },
    {
      "id": "dd1e0036-1093-4160-adad-ed1b0c1b3548",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        125.83113663973751
      ],
      "parameters": {
        "width": 214.6984582852457,
        "height": 219.7116384468202,
        "content": "Runs every day at midnight to update new workflows"
      }
    },
    {
      "id": "aca838c8-ff3e-4630-824b-a6d1d8414326",
      "name": "active && no error handler set && not this  handler workflow",
      "type": "n8n-nodes-base.if",
      "position": [
        1100,
        180
      ]
    }
  ],
  "connections": {
    "n8n": {
      "main": [
        [
          {
            "node": "active && no error handler set && not this  handler workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "set fields": {
      "main": [
        [
          {
            "node": "n8n | update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "get error handler",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get error handler": {
      "main": [
        [
          {
            "node": "n8n",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "active && no error handler set && not this  handler workflow": {
      "main": [
        [
          {
            "node": "set fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}