{
  "name": "Automate Incident Management with PagerDuty, Port AI, Jira & Slack",
  "nodes": [
    {
      "id": "incident-trigger",
      "name": "On PagerDuty Incident",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1400,
        240
      ]
    },
    {
      "id": "check-event-type",
      "name": "Check Event Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1160,
        240
      ]
    },
    {
      "id": "extract-context-triggered",
      "name": "Extract Context (New Incident)",
      "type": "CUSTOM.portIo",
      "position": [
        -880,
        120
      ]
    },
    {
      "id": "parse-context-triggered",
      "name": "Parse Context (New Incident)",
      "type": "CUSTOM.portIo",
      "position": [
        -640,
        120
      ]
    },
    {
      "id": "assess-severity",
      "name": "Assess Severity",
      "type": "n8n-nodes-base.openAi",
      "position": [
        -400,
        120
      ]
    },
    {
      "id": "check-needs-escalation",
      "name": "Needs Escalation?",
      "type": "n8n-nodes-base.if",
      "position": [
        -160,
        120
      ]
    },
    {
      "id": "notify-team",
      "name": "Notify Team Channel",
      "type": "n8n-nodes-base.slack",
      "position": [
        80,
        40
      ]
    },
    {
      "id": "escalate-leadership",
      "name": "Escalate to Leadership",
      "type": "n8n-nodes-base.slack",
      "position": [
        80,
        -120
      ]
    },
    {
      "id": "create-jira-incident",
      "name": "Create Jira Incident Ticket",
      "type": "n8n-nodes-base.jira",
      "position": [
        320,
        120
      ]
    },
    {
      "id": "notify-jira-created",
      "name": "Notify Jira Created",
      "type": "n8n-nodes-base.slack",
      "position": [
        560,
        120
      ]
    },
    {
      "id": "extract-context-resolved",
      "name": "Extract Context (Resolved)",
      "type": "CUSTOM.portIo",
      "position": [
        -880,
        360
      ]
    },
    {
      "id": "parse-context-resolved",
      "name": "Parse Context (Resolved)",
      "type": "CUSTOM.portIo",
      "position": [
        -640,
        360
      ]
    },
    {
      "id": "generate-postmortem",
      "name": "Generate Post-Mortem Template",
      "type": "n8n-nodes-base.openAi",
      "position": [
        -400,
        360
      ]
    },
    {
      "id": "schedule-postmortem",
      "name": "Schedule Post-Mortem via Port",
      "type": "CUSTOM.portIo",
      "position": [
        -160,
        360
      ]
    },
    {
      "id": "parse-schedule-response",
      "name": "Parse Schedule Response",
      "type": "CUSTOM.portIo",
      "position": [
        80,
        360
      ]
    },
    {
      "id": "notify-resolved",
      "name": "Notify Incident Resolved",
      "type": "n8n-nodes-base.slack",
      "position": [
        320,
        360
      ]
    },
    {
      "id": "log-mttr-port",
      "name": "Log MTTR to Port",
      "type": "CUSTOM.portIo",
      "position": [
        320,
        520
      ]
    },
    {
      "id": "sticky-main",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1680,
        -120
      ],
      "parameters": {
        "width": 520,
        "height": 800,
        "content": "## Incident Lifecycle Management with Port\n\nComplete incident workflow from detection through resolution to post-mortem, with full organizational context from Port's catalog.\n\n### How it works\n\n**On I"
      }
    },
    {
      "id": "sticky-triggered",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -920,
        -120
      ],
      "parameters": {
        "width": 840,
        "height": 320,
        "content": "## Incident Triggered Flow\n\nPort context enrichment + AI severity assessment + intelligent routing + Jira creation"
      }
    },
    {
      "id": "sticky-resolved",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -920,
        280
      ],
      "parameters": {
        "width": 560,
        "height": 360,
        "content": "## Incident Resolved Flow\n\nMTTR calculation + Post-mortem generation + Port AI Agent schedules meeting + Document creation + Metrics logging"
      }
    },
    {
      "id": "sticky-port-agent",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        200
      ],
      "parameters": {
        "width": 320,
        "height": 240,
        "content": "## Port AI Agent\n\nSchedules post-mortem meeting:\n- Creates document\n- Invites stakeholders\n- Sets appropriate time\n- Links to incident"
      }
    }
  ],
  "connections": {
    "Assess Severity": {
      "main": [
        [
          {
            "node": "Needs Escalation?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Event Type": {
      "main": [
        [
          {
            "node": "Extract Context (New Incident)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract Context (Resolved)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Needs Escalation?": {
      "main": [
        [
          {
            "node": "Notify Team Channel",
            "type": "main",
            "index": 0
          },
          {
            "node": "Escalate to Leadership",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify Team Channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Team Channel": {
      "main": [
        [
          {
            "node": "Create Jira Incident Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On PagerDuty Incident": {
      "main": [
        [
          {
            "node": "Check Event Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Escalate to Leadership": {
      "main": [
        [
          {
            "node": "Create Jira Incident Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Schedule Response": {
      "main": [
        [
          {
            "node": "Notify Incident Resolved",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log MTTR to Port",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Context (Resolved)": {
      "main": [
        [
          {
            "node": "Generate Post-Mortem Template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Context (Resolved)": {
      "main": [
        [
          {
            "node": "Parse Context (Resolved)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Jira Incident Ticket": {
      "main": [
        [
          {
            "node": "Notify Jira Created",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Context (New Incident)": {
      "main": [
        [
          {
            "node": "Assess Severity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Post-Mortem Template": {
      "main": [
        [
          {
            "node": "Schedule Post-Mortem via Port",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Post-Mortem via Port": {
      "main": [
        [
          {
            "node": "Parse Schedule Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Context (New Incident)": {
      "main": [
        [
          {
            "node": "Parse Context (New Incident)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}