{
  "name": "Triage incidents and enforce SLAs with Gemini, Groq, Google Sheets and Slack",
  "nodes": [
    {
      "id": "8050a669-e0c8-493b-90b1-d0bf814262ea",
      "name": "Incident Report Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        304,
        784
      ]
    },
    {
      "id": "94d87eba-3141-4644-b8f4-aef9a3417d9a",
      "name": "Accept and Continue",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        528,
        784
      ]
    },
    {
      "id": "aae43281-18fc-4170-9cce-74b52e6afb96",
      "name": "Normalize Incident Data",
      "type": "n8n-nodes-base.set",
      "position": [
        752,
        784
      ]
    },
    {
      "id": "320b8d94-b185-42f7-8096-500b364c76df",
      "name": "Fetch Runbook Context",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        976,
        784
      ]
    },
    {
      "id": "36102076-93da-4e8f-ade2-66ceff276fc6",
      "name": "Build Runbook Context",
      "type": "n8n-nodes-base.code",
      "position": [
        1200,
        784
      ]
    },
    {
      "id": "b163f4d3-1d41-4b38-a2b6-0227906884f3",
      "name": "Agent 1 - Incident Analyzer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1424,
        784
      ]
    },
    {
      "id": "4993a982-9cb9-4d4d-8a67-2fbcfa676386",
      "name": "Analyzer LLM (Gemini)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1456,
        1008
      ]
    },
    {
      "id": "bce4c7c1-6d2b-4c84-9daf-0aac5a92cd8a",
      "name": "Analyzer Fallback (Groq)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        1584,
        1008
      ]
    },
    {
      "id": "23ec7c43-174d-4710-ad80-2f1e750ba73d",
      "name": "Parse Analyzer Output",
      "type": "n8n-nodes-base.code",
      "position": [
        1824,
        784
      ]
    },
    {
      "id": "a4f2e701-5d33-4f11-8b96-d63810a7f857",
      "name": "Agent 2 - Response Coordinator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2048,
        784
      ]
    },
    {
      "id": "9a70ba94-5a69-4fce-820d-eb761f8152f3",
      "name": "Coordinator LLM (Gemini)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1936,
        1008
      ]
    },
    {
      "id": "c7a3ef87-a9d3-48c1-aba4-bbcbb5e5a447",
      "name": "Coordinator Fallback (Groq)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        2128,
        1008
      ]
    },
    {
      "id": "5fe845cb-cfba-47c9-99f0-7a7426be2f17",
      "name": "Process Response Plan",
      "type": "n8n-nodes-base.code",
      "position": [
        2448,
        784
      ]
    },
    {
      "id": "a7410db8-807c-4864-9716-e47567e12c3c",
      "name": "Log to Incident Tracker",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2672,
        688
      ]
    },
    {
      "id": "65318b49-ecba-4b4c-8daa-119b444499f4",
      "name": "Log AI Decision Audit",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2672,
        880
      ]
    },
    {
      "id": "c516719a-4d99-4f09-84bd-77a467c09c7a",
      "name": "Route by AI Severity",
      "type": "n8n-nodes-base.switch",
      "position": [
        2896,
        672
      ]
    },
    {
      "id": "8b3c225e-b3a4-4d25-b7fa-d5a5e348ec0d",
      "name": "P1 - Send Critical Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        3280,
        320
      ]
    },
    {
      "id": "65e64503-863e-4e51-871f-66eeaadd94d0",
      "name": "P2 - Send High Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        3264,
        688
      ]
    },
    {
      "id": "fada835e-ede8-44a2-aff6-1681a91c1815",
      "name": "P3 - Send Notification",
      "type": "n8n-nodes-base.slack",
      "position": [
        3232,
        1072
      ]
    },
    {
      "id": "3635cc81-1db0-4c34-b686-4215d866bd32",
      "name": "Needs War Room?",
      "type": "n8n-nodes-base.if",
      "position": [
        3504,
        320
      ]
    },
    {
      "id": "07d96783-88cc-4ce0-8aed-d2d046a63213",
      "name": "P1 - Create War Room",
      "type": "n8n-nodes-base.slack",
      "position": [
        3728,
        320
      ]
    },
    {
      "id": "f7022deb-2c83-406c-a3f0-68ee060f59f1",
      "name": "P1 - Wait SLA Time",
      "type": "n8n-nodes-base.wait",
      "position": [
        3952,
        320
      ]
    },
    {
      "id": "b341e408-e4ab-4d9e-9ae2-bc97848d50f8",
      "name": "P1 - Check Acknowledgment",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4176,
        320
      ]
    },
    {
      "id": "979140f4-ace5-4e98-98cf-e1e6fb537fac",
      "name": "P1 - Still unacknowledged?",
      "type": "n8n-nodes-base.if",
      "position": [
        4400,
        320
      ]
    },
    {
      "id": "60371218-4e53-4e41-ba0d-2545d3959652",
      "name": "P1 - Escalate to Manager",
      "type": "n8n-nodes-base.slack",
      "position": [
        4640,
        256
      ]
    },
    {
      "id": "b08346c0-73ef-4597-bd6c-1b79d1599dc4",
      "name": "P1 - Flag as Escalated",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4640,
        416
      ]
    },
    {
      "id": "3380cc33-6ca4-4f9f-aa81-8d147ef133d2",
      "name": "P2 - Wait 1hr",
      "type": "n8n-nodes-base.wait",
      "position": [
        3488,
        688
      ]
    },
    {
      "id": "556140d7-12e4-431f-90d8-43646243fc81",
      "name": "P2 - Check Acknowledgment",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3712,
        688
      ]
    },
    {
      "id": "1f74cc62-074a-4ae4-8c57-5ca4dd4946cc",
      "name": "P2 - Still unacknowledged?",
      "type": "n8n-nodes-base.if",
      "position": [
        3936,
        688
      ]
    },
    {
      "id": "0e814371-86a2-444d-aa97-7e109ac6bf7c",
      "name": "P2 - Escalate to Manager",
      "type": "n8n-nodes-base.slack",
      "position": [
        4160,
        688
      ]
    },
    {
      "id": "620a97f6-3060-42a6-987d-06622c1edad8",
      "name": "Acknowledgment Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        320,
        1296
      ]
    },
    {
      "id": "bf4c13e9-671d-4291-81e2-d0ed730d1e13",
      "name": "Log Acknowledgment",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        544,
        1296
      ]
    },
    {
      "id": "f5c89ff0-9447-49e9-8e27-f95579ca0be1",
      "name": "Ack Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        768,
        1296
      ]
    },
    {
      "id": "4faafb9b-6163-4e35-9451-b601d75c5d95",
      "name": "Human Feedback Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        304,
        1536
      ]
    },
    {
      "id": "e7df0656-75b0-4cd2-aca7-609b36d8372f",
      "name": "Log Human Feedback",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        528,
        1536
      ]
    },
    {
      "id": "48c8b2b8-7e4d-4bdf-8300-0c672c0fd6d2",
      "name": "Feedback Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        752,
        1536
      ]
    },
    {
      "id": "caef4e0a-144a-42f0-9952-e697a64c5d6b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -368,
        656
      ],
      "parameters": {
        "width": 544,
        "height": 912,
        "content": "## AI Incident Triage System - Two-Agent\n\nThink of this as your automated first responder. Instead of dumping raw alerts into Slack, the system actually thinks before it speaks.\n### How it works\n\n1. A"
      }
    },
    {
      "id": "19281cfb-58a1-4c47-8aac-ae9ad2c86d0f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        656
      ],
      "parameters": {
        "width": 1120,
        "height": 336,
        "content": "## Incident intake and normalization\n\nReceives webhook POST requests, generates unique incident IDs, normalizes data structure, and fetches runbook context from Google Sheets."
      }
    },
    {
      "id": "73f1e28a-109b-4197-a7ba-a389272d7dac",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1392,
        656
      ],
      "parameters": {
        "width": 1216,
        "height": 528,
        "content": "## Two-agent AI analysis\n\nAgent 1 analyzes severity with confidence scoring, risk indicators, and known issue matching. Agent 2 generates response plans with immediate actions and escalation tiers."
      }
    },
    {
      "id": "636bd630-562f-40cc-a4f4-9e806fbb7e35",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2624,
        512
      ],
      "parameters": {
        "width": 432,
        "height": 528,
        "content": "## Logging and routing\n\nLogs all incidents to Incidents sheet and AI decisions to AI_Audit_Log for compliance. Routes alerts based on AI-determined severity."
      }
    },
    {
      "id": "203ff256-7644-488d-9064-865d5b5a04ac",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3168,
        160
      ],
      "parameters": {
        "width": 1696,
        "height": 432,
        "content": "## P1 critical incident path\n\nSends alerts to #incidents-critical, optionally creates war room Slack channel, waits SLA time, and escalates to management if unacknowledged."
      }
    },
    {
      "id": "6913f492-d047-40de-a1fd-253edb40ba2f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3168,
        640
      ],
      "parameters": {
        "width": 1232,
        "height": 336,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## P2 high priority path\n\nSends to #incidents channel, waits 1 hour, escalates to engineering leads if unacknowledged."
      }
    },
    {
      "id": "690b3e14-299d-4e44-be46-7a1be4c5c626",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3168,
        1024
      ],
      "parameters": {
        "width": 352,
        "height": 352,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## P3 normal priority\n\nSimple notification to #incidents. No automatic escalation."
      }
    },
    {
      "id": "7e048712-074c-449d-8d47-e86569b4ef04",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        1056
      ],
      "parameters": {
        "width": 832,
        "height": 688,
        "content": "## Feedback and acknowledgment webhooks\n\nSeparate endpoints for engineers to acknowledge incidents (updates status) and provide feedback on AI severity decisions (improves accuracy)."
      }
    }
  ],
  "connections": {
    "P2 - Wait 1hr": {
      "main": [
        [
          {
            "node": "P2 - Check Acknowledgment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Needs War Room?": {
      "main": [
        [
          {
            "node": "P1 - Create War Room",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Acknowledgment": {
      "main": [
        [
          {
            "node": "Ack Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Human Feedback": {
      "main": [
        [
          {
            "node": "Feedback Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "P1 - Wait SLA Time": {
      "main": [
        [
          {
            "node": "P1 - Check Acknowledgment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Accept and Continue": {
      "main": [
        [
          {
            "node": "Normalize Incident Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "P1 - Create War Room": {
      "main": [
        [
          {
            "node": "P1 - Wait SLA Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "P2 - Send High Alert": {
      "main": [
        [
          {
            "node": "P2 - Wait 1hr",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by AI Severity": {
      "main": [
        [
          {
            "node": "P1 - Send Critical Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "P2 - Send High Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "P3 - Send Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyzer LLM (Gemini)": {
      "ai_languageModel": [
        [
          {
            "node": "Agent 1 - Incident Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Build Runbook Context": {
      "main": [
        [
          {
            "node": "Agent 1 - Incident Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Runbook Context": {
      "main": [
        [
          {
            "node": "Build Runbook Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Analyzer Output": {
      "main": [
        [
          {
            "node": "Agent 2 - Response Coordinator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Response Plan": {
      "main": [
        [
          {
            "node": "Log to Incident Tracker",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log AI Decision Audit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Acknowledgment Trigger": {
      "main": [
        [
          {
            "node": "Log Acknowledgment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Human Feedback Trigger": {
      "main": [
        [
          {
            "node": "Log Human Feedback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Incident Report Trigger": {
      "main": [
        [
          {
            "node": "Accept and Continue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Incident Tracker": {
      "main": [
        [
          {
            "node": "Route by AI Severity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Incident Data": {
      "main": [
        [
          {
            "node": "Fetch Runbook Context",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyzer Fallback (Groq)": {
      "ai_languageModel": [
        [
          {
            "node": "Agent 1 - Incident Analyzer",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Coordinator LLM (Gemini)": {
      "ai_languageModel": [
        [
          {
            "node": "Agent 2 - Response Coordinator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "P1 - Send Critical Alert": {
      "main": [
        [
          {
            "node": "Needs War Room?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "P1 - Check Acknowledgment": {
      "main": [
        [
          {
            "node": "P1 - Still unacknowledged?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "P2 - Check Acknowledgment": {
      "main": [
        [
          {
            "node": "P2 - Still unacknowledged?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "P1 - Still unacknowledged?": {
      "main": [
        [
          {
            "node": "P1 - Escalate to Manager",
            "type": "main",
            "index": 0
          },
          {
            "node": "P1 - Flag as Escalated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "P2 - Still unacknowledged?": {
      "main": [
        [
          {
            "node": "P2 - Escalate to Manager",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Agent 1 - Incident Analyzer": {
      "main": [
        [
          {
            "node": "Parse Analyzer Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Coordinator Fallback (Groq)": {
      "ai_languageModel": [
        [
          {
            "node": "Agent 2 - Response Coordinator",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Agent 2 - Response Coordinator": {
      "main": [
        [
          {
            "node": "Process Response Plan",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}