{
  "name": "Generate AI incident reports with GPT-4, Slack alerts, Gmail and PDF export",
  "nodes": [
    {
      "id": "95e5f8d6-52e2-4e2e-b901-fb2ba0fae809",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1488,
        432
      ]
    },
    {
      "id": "4dc8477d-0bba-4646-8385-f126c24836fd",
      "name": "Convert to PDF",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        3200,
        320
      ]
    },
    {
      "id": "33479a52-d8b5-423e-848f-069c9838b8b4",
      "name": "Normalize Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1744,
        432
      ]
    },
    {
      "id": "2e2754dc-ab7c-4cf0-b5da-60b4fcd9381b",
      "name": "Root Cause + Impact Analysis",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2064,
        432
      ]
    },
    {
      "id": "fce8aeae-dd7b-4c60-93ca-2e79d70201a6",
      "name": "Parse AI Response",
      "type": "n8n-nodes-base.code",
      "position": [
        2384,
        432
      ]
    },
    {
      "id": "24a3ac3b-9293-42bc-99b7-e5902e38c009",
      "name": "Check Severity",
      "type": "n8n-nodes-base.if",
      "position": [
        2624,
        432
      ]
    },
    {
      "id": "3216f044-4cf7-4b43-8d56-2f004eabf7df",
      "name": "Alerts",
      "type": "n8n-nodes-base.slack",
      "position": [
        2816,
        320
      ]
    },
    {
      "id": "83b5badf-9680-4939-8fd2-65a9a6783e62",
      "name": "Data Recovery",
      "type": "n8n-nodes-base.code",
      "position": [
        2992,
        320
      ]
    },
    {
      "id": "65c40d32-8eef-4f6d-a25a-ad132a390047",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3392,
        432
      ]
    },
    {
      "id": "ffe18b38-ab44-4e30-8e91-ed2d22b7ac96",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        3392,
        272
      ]
    },
    {
      "id": "5bbb2c29-5ac2-4046-9ed9-e14053559e35",
      "name": "Stop and Error",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        2832,
        496
      ]
    },
    {
      "id": "917c8d9f-d045-43f0-a46b-5f0c8593d799",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        -352
      ],
      "parameters": {
        "width": 592,
        "height": 928,
        "content": "### How It Works\nThis workflow automates incident report generation and crisis response management for operations teams. When an incident is reported via webhook, the system normalizes and validates t"
      }
    },
    {
      "id": "65b24331-5821-462b-92d8-0981adffdc68",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1424,
        320
      ],
      "parameters": {
        "width": 512,
        "height": 256,
        "content": "## Input & Data Normalization\nReceives incident details via webhook and structures data for AI analysis."
      }
    },
    {
      "id": "eea4c7f1-e6ec-4189-bc00-b3277107c6cc",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1984,
        336
      ],
      "parameters": {
        "width": 560,
        "height": 256,
        "content": "## AI Analysis & Risk Assessment\nUses OpenAI to analyze root cause, assess impact, and generate actionable recommendations."
      }
    },
    {
      "id": "7746b04d-d752-446f-a8de-9b574bd9962b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2592,
        208
      ],
      "parameters": {
        "width": 528,
        "height": 432,
        "content": "## Severity Routing & Alerts\nRoutes high-severity incidents to immediate Slack notifications, others proceed to reporting."
      }
    },
    {
      "id": "cbcac8e5-56f8-4f0e-8bba-fdecf53dfc81",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3152,
        176
      ],
      "parameters": {
        "width": 464,
        "height": 416,
        "content": "## Report Generation & Distribution\nCreates formatted PDF report and delivers via email and Google Drive storage."
      }
    }
  ],
  "connections": {
    "Alerts": {
      "main": [
        [
          {
            "node": "Data Recovery",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Normalize Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email": {
      "main": [
        []
      ]
    },
    "Upload file": {
      "main": [
        []
      ]
    },
    "Data Recovery": {
      "main": [
        [
          {
            "node": "Convert to PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Severity": {
      "main": [
        [
          {
            "node": "Alerts",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Stop and Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to PDF": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Data": {
      "main": [
        [
          {
            "node": "Root Cause + Impact Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Response": {
      "main": [
        [
          {
            "node": "Check Severity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Root Cause + Impact Analysis": {
      "main": [
        [
          {
            "node": "Parse AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}