{
  "name": "Error workflow: AI powered (GPT 4.1): universal",
  "nodes": [
    {
      "id": "7b54581c-4dac-4d88-8ed4-9f1b36d8d3bc",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -592,
        -432
      ]
    },
    {
      "id": "ddfff4da-ec7d-4eae-8cf8-0090e6e52c7c",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -368,
        -432
      ]
    },
    {
      "id": "a3acf152-1625-4227-84b6-f7d4e9051f07",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -368,
        -208
      ]
    },
    {
      "id": "f0584236-49fa-4e25-8eb8-77a755978330",
      "name": "Format Data",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        -432
      ]
    },
    {
      "id": "c1657acd-5b52-4c47-8969-ed82637d30e9",
      "name": "Send Gmail Notification",
      "type": "n8n-nodes-base.gmail",
      "position": [
        272,
        -256
      ]
    },
    {
      "id": "62a142c1-0b10-4243-a7bc-29115ae69e73",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -736,
        -688
      ],
      "parameters": {
        "width": 304,
        "height": 416,
        "content": "## Triggers when workflows Fail\n\nMake sure you go to you production workflow > settings and select this workflow for Error Workflow\n\nNote- only production failures are caught by Error workflows"
      }
    },
    {
      "id": "47896b05-5c0b-4c31-9aa4-a8179f3dfce1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        -688
      ],
      "parameters": {
        "width": 304,
        "height": 608,
        "content": "## GPT Powered AI Analysis\n\n* Gathers information about failures\n* Work on all type of Failures"
      }
    },
    {
      "id": "b03cabf7-4ab8-4585-bf1d-043cc3be4cf8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -688
      ],
      "parameters": {
        "width": 496,
        "height": 640,
        "content": "## Multi Notification System\n* Add as many as you need\n* Beautiful Email notifications with Error Breakdown"
      }
    },
    {
      "id": "80f2bf42-c15f-426e-acf3-8c59a2ba7fee",
      "name": "Text Notification",
      "type": "n8n-nodes-base.telegram",
      "position": [
        256,
        -480
      ]
    },
    {
      "id": "de2ccee5-4140-4780-804d-37885130c84c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        -752
      ],
      "parameters": {
        "width": 496,
        "height": 944,
        "content": "## ⚡ How This Error Monitoring Workflow Works\n\n### 1️⃣ Set as Your Error Handler  \nGo to any production workflow → Settings → **Error Workflow** →  \nSelect this workflow.  \n(Only production errors are"
      }
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Format Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Data": {
      "main": [
        [
          {
            "node": "Send Gmail Notification",
            "type": "main",
            "index": 0
          },
          {
            "node": "Text Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Trigger": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}