{
  "name": "Orchestrate AI risk analysis and severity-based routing with Anthropic and OpenAI",
  "nodes": [
    {
      "id": "497d93d5-8bae-46b5-8394-8a0680f5336d",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        144
      ]
    },
    {
      "id": "8f3ca3fb-49ff-4f61-8dea-72f71a5fe598",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        224,
        144
      ]
    },
    {
      "id": "721859ba-ce1d-4c1c-9eed-27466905c6c2",
      "name": "Engineering Orchestration Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        728,
        144
      ]
    },
    {
      "id": "54e72a0a-4b7b-4a35-aaa4-86be6f76a9ab",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        448,
        368
      ]
    },
    {
      "id": "2c6da381-54d5-47d8-81a8-40a9dd169742",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1152,
        368
      ]
    },
    {
      "id": "60128457-b379-40d2-8053-8228423869f6",
      "name": "HTTP Request 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3168,
        256
      ]
    },
    {
      "id": "ba930d64-660d-43ab-97e2-11c8b69a5d6f",
      "name": "HTTP Request 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3392,
        256
      ]
    },
    {
      "id": "957f555a-b099-4621-a170-7427df2e27fb",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        3616,
        256
      ]
    },
    {
      "id": "02ec2f34-6f03-4847-bbcb-4e28110d83b4",
      "name": "Route by Severity",
      "type": "n8n-nodes-base.switch",
      "position": [
        1824,
        240
      ]
    },
    {
      "id": "5e479921-e481-4d9d-bfa1-e19691419b45",
      "name": "Enrich Critical Issues",
      "type": "n8n-nodes-base.code",
      "position": [
        2048,
        112
      ]
    },
    {
      "id": "3d195062-ea11-4b3d-bdb3-faefb6c26f50",
      "name": "Calculate Risk Score",
      "type": "n8n-nodes-base.code",
      "position": [
        1376,
        256
      ]
    },
    {
      "id": "5e85a78f-c9ca-44ec-a287-8659daca31b0",
      "name": "Compliance Verification Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        576,
        368
      ]
    },
    {
      "id": "e14b5ad9-8d23-484d-9c7a-cd90ae984666",
      "name": "Risk Analysis Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        864,
        368
      ]
    },
    {
      "id": "673c193d-739e-4785-9141-190aa7a46757",
      "name": "OpenAI Chat Model - Compliance",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        656,
        576
      ]
    },
    {
      "id": "bee4f8bc-34e9-413d-9223-303400d4f382",
      "name": "OpenAI Chat Model - Risk",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        944,
        576
      ]
    },
    {
      "id": "3fa76bd6-572c-49aa-a2da-aec612fafa80",
      "name": "Merge Analysis Results",
      "type": "n8n-nodes-base.merge",
      "position": [
        2272,
        240
      ]
    },
    {
      "id": "f2f1ae2e-5791-4283-870e-fbaa4b4e744e",
      "name": "Aggregate Issues",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2496,
        256
      ]
    },
    {
      "id": "659ad1ab-9bef-456f-a735-0dfc16f28735",
      "name": "Prepare Final Report",
      "type": "n8n-nodes-base.set",
      "position": [
        2720,
        256
      ]
    },
    {
      "id": "e7d5776a-20db-43a6-9a26-6ad8f17bbda2",
      "name": "Wait for Rate Limit",
      "type": "n8n-nodes-base.wait",
      "position": [
        2944,
        256
      ]
    },
    {
      "id": "28dbd136-98b7-4ee9-b0e8-db2d89ac0f5b",
      "name": "Fetch Historical Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        256
      ]
    },
    {
      "id": "a759adf4-8bf0-4652-983f-a6a3e0218a6f",
      "name": "Process High Severity",
      "type": "n8n-nodes-base.set",
      "position": [
        2048,
        400
      ]
    },
    {
      "id": "cd924c34-d30d-4286-8c45-0e219ff08c13",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        -416
      ],
      "parameters": {
        "width": 576,
        "height": 336,
        "content": "## Prerequisites\nActive Anthropic and OpenAI API accounts, data processing system with webhook capability\n## Use Cases\nETL pipeline quality monitoring, data anomaly detection, dataset validation befor"
      }
    },
    {
      "id": "4bdd4f03-4cf8-4dd0-b1cd-f89e0eb02851",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        -304
      ],
      "parameters": {
        "width": 592,
        "height": 224,
        "content": "## Setup Steps\n1. Configure webhook trigger endpoint for data processing system integration\n2. Set up Anthropic API credentials for Orchestrating Orchestration Agent node\n3. Configure specialized agen"
      }
    },
    {
      "id": "ef7bb249-2140-4eb7-ab6e-08473df77819",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -304
      ],
      "parameters": {
        "width": 960,
        "height": 240,
        "content": "## How It Works\nThis workflow automates complex data engineering operations by orchestrating multiple specialized AI agents to analyze datasets, calculate risk metrics, and route findings based on sev"
      }
    },
    {
      "id": "72019adf-de37-40cf-a1f9-5c2018886c1a",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2448,
        16
      ],
      "parameters": {
        "width": 1376,
        "height": 640,
        "content": "## Severity-Based Routing and Report Generation\n**Why:** Routes high-severity findings through immediate HTTP notifications for rapid stakeholder response, merges all analysis results, aggregates issu"
      }
    },
    {
      "id": "5bfa2eda-16db-4b0e-bf5a-769dfbbc5038",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1296,
        0
      ],
      "parameters": {
        "width": 1104,
        "height": 768,
        "content": "## Multi-Agent Parallel Analysis with Risk Assessment\n**Why:** Executes specialized agents (Anthropic Chat Model, Risk Analysis Verification, Test Validation) equipped with OpenAI models for domain-sp"
      }
    },
    {
      "id": "e7dadf77-fc35-4f49-ae5a-60d3224b59f4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -48,
        -16
      ],
      "parameters": {
        "width": 1328,
        "height": 784,
        "content": "## Webhook Intake and AI Orchestration Deployment\n**Why:** Receives data processing requests containing dataset references and analysis requirements, immediately deploys Orchestrating Orchestration Ag"
      }
    }
  ],
  "connections": {
    "HTTP Request 1": {
      "main": [
        [
          {
            "node": "HTTP Request 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request 2": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Issues": {
      "main": [
        [
          {
            "node": "Prepare Final Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Severity": {
      "main": [
        [
          {
            "node": "Enrich Critical Issues",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Process High Severity",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge Analysis Results",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Wait for Rate Limit": {
      "main": [
        [
          {
            "node": "HTTP Request 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Engineering Orchestration Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Risk Score": {
      "main": [
        [
          {
            "node": "Fetch Historical Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Final Report": {
      "main": [
        [
          {
            "node": "Wait for Rate Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Historical Data": {
      "main": [
        [
          {
            "node": "Route by Severity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process High Severity": {
      "main": [
        [
          {
            "node": "Merge Analysis Results",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Enrich Critical Issues": {
      "main": [
        [
          {
            "node": "Merge Analysis Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Analysis Results": {
      "main": [
        [
          {
            "node": "Aggregate Issues",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Engineering Orchestration Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model - Risk": {
      "ai_languageModel": [
        [
          {
            "node": "Risk Analysis Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Risk Analysis Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Engineering Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Engineering Orchestration Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model - Compliance": {
      "ai_languageModel": [
        [
          {
            "node": "Compliance Verification Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Engineering Orchestration Agent": {
      "main": [
        [
          {
            "node": "Calculate Risk Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compliance Verification Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Engineering Orchestration Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}