{
  "name": "AI-powered workflow error analysis & fix suggestions with Gemini 2.5 Pro",
  "nodes": [
    {
      "id": "58ba08d1-782a-40ae-b332-39487660a563",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "60b131bb-608d-4298-b4e6-b6a6bd505bd2",
      "name": "Get Workflow JSON",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        208,
        0
      ]
    },
    {
      "id": "5113ff05-a43f-412b-be2f-f6464b13af23",
      "name": "Debugger Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        416,
        0
      ]
    },
    {
      "id": "a702d4eb-ede5-4ec1-bf8b-3b5fdd7f8417",
      "name": "Convert Markdown To HTML",
      "type": "n8n-nodes-base.markdown",
      "position": [
        768,
        0
      ]
    },
    {
      "id": "6d8c5c9a-9a34-4e2e-8f19-3448dfedcea1",
      "name": "Send Debugging Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        976,
        0
      ]
    },
    {
      "id": "c5164ca2-2945-47d3-a861-7cec54f6d317",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -384
      ],
      "parameters": {
        "width": 448,
        "height": 336,
        "content": "### Stage 1: Capture Error & Fetch Context\n\n-   **Error Trigger:** This is the entry point. It activates whenever another workflow in your n8n instance fails.\n-   **Get Workflow JSON:** As soon as an "
      }
    },
    {
      "id": "1e0ca912-cb86-4d33-a023-08c9d7f886fb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        352
      ],
      "parameters": {
        "width": 512,
        "height": 256,
        "content": "### Stage 2: AI Root Cause Analysis\n\n-   **Debugger Agent:** This is the brain of the operation. It takes the error details (like the error message and the failed node's name) and the full workflow JS"
      }
    },
    {
      "id": "a35e220b-9226-48de-9067-87d00b3b7074",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -352
      ],
      "parameters": {
        "width": 384,
        "height": 272,
        "content": "### Stage 3: Format and Notify\n\n-   **Convert Markdown to HTML:** The AI provides its analysis in Markdown format for readability. This node converts that Markdown into HTML so it can be beautifully r"
      }
    },
    {
      "id": "582caabd-865d-4306-9f45-bac571ef1df0",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        -208
      ],
      "parameters": {
        "width": 704,
        "height": 784,
        "content": "## Common Errors & Resolutions\n\nHere are some common issues you might encounter when setting up or running this workflow and how to resolve them.\n\n| Error Message Snippet | Likely Cause | Resolution |"
      }
    },
    {
      "id": "e62ff584-f0a0-451f-b547-845abc8fc755",
      "name": "Gemini 2.5 Pro",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        288,
        208
      ]
    },
    {
      "id": "2294e2f4-cf86-4a75-a474-8aefe88c6294",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1552,
        -384
      ],
      "parameters": {
        "width": 1328,
        "height": 896,
        "content": "# Watch Video Walkthrough On YouTube\n\n@[youtube](80m0ebb2_1Q)"
      }
    },
    {
      "id": "829f5375-f6d3-4dca-bb71-973f42bffe94",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        -944
      ],
      "parameters": {
        "width": 784,
        "height": 256,
        "content": "## Overview\n\nStop digging through execution logs to find out why a workflow failed. This template provides a \"set-it-and-forget-it\" monitoring system that uses AI to automatically debug your n8n workf"
      }
    }
  ],
  "connections": {
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Get Workflow JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Debugger Agent": {
      "main": [
        [
          {
            "node": "Convert Markdown To HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini 2.5 Pro": {
      "ai_languageModel": [
        [
          {
            "node": "Debugger Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get Workflow JSON": {
      "main": [
        [
          {
            "node": "Debugger Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Markdown To HTML": {
      "main": [
        [
          {
            "node": "Send Debugging Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}