{
  "name": "Orchestrate security vulnerability remediation with Port, OpenAI, Jira and Slack",
  "nodes": [
    {
      "id": "6ec161d3-a66e-4229-ae19-e705eeb248b6",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1744,
        320
      ]
    },
    {
      "id": "59fad1ae-bc92-4d4d-8977-176e8b5313be",
      "name": "Get Context From Port",
      "type": "CUSTOM.portApiAi",
      "position": [
        -1504,
        320
      ]
    },
    {
      "id": "894a418a-0821-41af-b361-67d242e4e90b",
      "name": "OpenAI Remediation Plan",
      "type": "n8n-nodes-base.openAi",
      "position": [
        -1088,
        320
      ]
    },
    {
      "id": "6c3608c6-5534-45a4-bb9e-df8887abf06a",
      "name": "Check Severity Level",
      "type": "n8n-nodes-base.switch",
      "position": [
        -784,
        320
      ]
    },
    {
      "id": "a8a13823-f8d6-422e-ba0e-2fa220cbf6d6",
      "name": "Create Critical Jira Ticket",
      "type": "n8n-nodes-base.jira",
      "position": [
        -512,
        272
      ]
    },
    {
      "id": "7a9e901c-1312-4a85-b3df-b0412f9722bc",
      "name": "Create High Jira Ticket",
      "type": "n8n-nodes-base.jira",
      "position": [
        -512,
        416
      ]
    },
    {
      "id": "6f4fe862-3748-49fd-b197-98874801c330",
      "name": "Create Medium/Low Jira Ticket",
      "type": "n8n-nodes-base.jira",
      "position": [
        -512,
        560
      ]
    },
    {
      "id": "c14c83a9-e20b-44dc-bb5f-122b860d34e0",
      "name": "Is Auto-Fixable?",
      "type": "n8n-nodes-base.if",
      "position": [
        -208,
        256
      ]
    },
    {
      "id": "7e272afb-5682-44b0-a5a6-e5f9bab00321",
      "name": "Trigger Fix via Port AI Agent",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        112,
        128
      ]
    },
    {
      "id": "cee7f862-9878-419a-82e6-307fb017b833",
      "name": "Alert Critical to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        352,
        160
      ]
    },
    {
      "id": "7b6609b8-ccc5-46d6-a1ed-ef61b655393c",
      "name": "Alert Critical (Manual Fix)",
      "type": "n8n-nodes-base.slack",
      "position": [
        128,
        336
      ]
    },
    {
      "id": "367c49c6-9c43-4dbf-98dd-23b8d2c325aa",
      "name": "Alert High to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        -208,
        448
      ]
    },
    {
      "id": "6fc1bd29-00b5-40a3-88ae-092a975efa57",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2320,
        -16
      ],
      "parameters": {
        "width": 480,
        "height": 680,
        "content": "## Remediate security vulnerabilities with n8n and Port\n\nThis workflow automates security vulnerability management from detection to remediation.\n\n**How it works**\n\n1. Webhook receives vulnerability a"
      }
    },
    {
      "id": "a4279dd4-c9fe-4518-b2b9-26a285e62b3b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1792,
        -32
      ],
      "parameters": {
        "width": 400,
        "height": 380,
        "content": "### 1. Trigger & enrichment\n\n**Webhook Trigger**\nReceives POST requests from security scanners (Snyk, Wiz, SonarQube, etc.)\n\n**Get Context From Port**\nQueries Port's catalog to enrich the vulnerabilit"
      }
    },
    {
      "id": "9dd27328-1ffb-4242-b52b-1496ed97059c",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1232,
        80
      ],
      "parameters": {
        "width": 320,
        "height": 280,
        "content": "### 2. AI analysis\n\n**OpenAI Remediation Plan**\nAnalyzes the vulnerability and generates:\n- Summary of the issue\n- Business impact assessment\n- Step-by-step remediation guide\n- Auto-fix determination\n"
      }
    },
    {
      "id": "929c7b74-5795-43e8-a35a-79af8f8fa391",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -912,
        0
      ],
      "parameters": {
        "width": 400,
        "height": 420,
        "content": "### Severity routing & Jira tickets\n\n**Check Severity Level**\nRoutes to the appropriate path based on severity.\n\n**Jira Ticket Creation**\nCreates tickets with full context:\n\n- Critical: \"Now (Urgent)\""
      }
    }
  ],
  "connections": {
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Get Context From Port",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Auto-Fixable?": {
      "main": [
        [
          {
            "node": "Trigger Fix via Port AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Alert Critical (Manual Fix)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Severity Level": {
      "main": [
        [
          {
            "node": "Create Critical Jira Ticket",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create High Jira Ticket",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Medium/Low Jira Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Context From Port": {
      "main": [
        [
          {
            "node": "OpenAI Remediation Plan",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create High Jira Ticket": {
      "main": [
        [
          {
            "node": "Alert High to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Remediation Plan": {
      "main": [
        [
          {
            "node": "Check Severity Level",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Critical Jira Ticket": {
      "main": [
        [
          {
            "node": "Is Auto-Fixable?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger Fix via Port AI Agent": {
      "main": [
        [
          {
            "node": "Alert Critical to Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}