{
  "name": "Automated error notifications with optional GPT-4o diagnostics via email",
  "nodes": [
    {
      "id": "39547c77-3ae8-4763-95e9-750eab1a1d61",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -256,
        176
      ]
    },
    {
      "id": "d6ddde96-7ed1-4498-868c-ab68496a4823",
      "name": "Send email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        912,
        192
      ]
    },
    {
      "id": "71d27f66-0026-41c1-8c59-d4a78f5bd23f",
      "name": "Format Email Body",
      "type": "n8n-nodes-base.set",
      "position": [
        688,
        192
      ]
    },
    {
      "id": "e0c99c23-e469-4e33-8fcc-2fef81715011",
      "name": "Config - Set Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        176
      ]
    },
    {
      "id": "acac5643-5e99-4240-88bb-fd3eb0873e1b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        -272
      ],
      "parameters": {
        "width": 672,
        "height": 640,
        "content": "## Overview — Error Alerts with Optional AI Insights\n\nThis workflow sends an email notification whenever any workflow in your n8n instance encounters an error. It’s built for developers, operators, or"
      }
    },
    {
      "id": "6c91c6cf-d852-44d7-ac32-c3a4b4516c20",
      "name": "Analyze Error with AI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        352,
        64
      ]
    },
    {
      "id": "3a5f3ecb-f751-411f-8297-7195401d0392",
      "name": "Use AI Analysis?",
      "type": "n8n-nodes-base.if",
      "position": [
        128,
        176
      ]
    },
    {
      "id": "292a1c7d-b126-4bd1-b2ad-7a4be5e58228",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -256,
        -272
      ],
      "parameters": {
        "width": 464,
        "height": 320,
        "content": "## How to Use This Workflow\n@[youtube](nzEApie96xk)"
      }
    }
  ],
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Config - Set Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Use AI Analysis?": {
      "main": [
        [
          {
            "node": "Analyze Error with AI",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Format Email Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Email Body": {
      "main": [
        [
          {
            "node": "Send email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Config - Set Fields": {
      "main": [
        [
          {
            "node": "Use AI Analysis?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Error with AI": {
      "main": [
        [
          {
            "node": "Format Email Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}