{
  "name": "Orchestrate quality event risk assessment with Claude, Gmail and Slack for human approval",
  "nodes": [
    {
      "id": "d0a813da-8d9f-4850-8d0a-0f731462d0fa",
      "name": "Quality Event Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -2064,
        192
      ]
    },
    {
      "id": "da1fcebe-2fce-4f84-8422-40b56f08facf",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1840,
        192
      ]
    },
    {
      "id": "fc516d0c-c268-4fa8-847a-2bdf893b05a0",
      "name": "Anthropic Model - Traceability Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -1536,
        624
      ]
    },
    {
      "id": "74c6a08d-5303-47cf-b68d-0a9f48c3206c",
      "name": "Anthropic Model - Recall Orchestration Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -848,
        624
      ]
    },
    {
      "id": "9dcec906-0644-4517-b1bd-42d2d4045c91",
      "name": "Anthropic Model - Risk Assessment Agent",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -1184,
        624
      ]
    },
    {
      "id": "fdd45dae-d416-4245-9cd7-0addebd1f4f4",
      "name": "Anthropic Model - Orchestrator",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        -1616,
        416
      ]
    },
    {
      "id": "fce359c9-3708-4933-8576-668c287ae579",
      "name": "Traceability Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1376,
        624
      ]
    },
    {
      "id": "d2331fbd-5fc9-43de-ab48-e3de7f8b96e4",
      "name": "Risk Assessment Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1024,
        624
      ]
    },
    {
      "id": "2fe9440e-c74d-41dc-9a5e-465bb0c3e142",
      "name": "Recall Orchestration Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -656,
        624
      ]
    },
    {
      "id": "a2bf0bfa-af98-45b8-98a7-6b70f1246726",
      "name": "Orchestrator Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -512,
        432
      ]
    },
    {
      "id": "e02285f1-d88a-4994-9d6d-fca62e681758",
      "name": "Traceability Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1488,
        416
      ]
    },
    {
      "id": "1ba96a8e-0e15-4bcc-891b-54249fff94f4",
      "name": "Risk Assessment Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -1200,
        416
      ]
    },
    {
      "id": "94a25b95-92be-401f-9ae2-4cbec8ba3296",
      "name": "Recall Orchestration Agent Tool",
      "type": "@n8n/n8n-nodes-langchain.agentTool",
      "position": [
        -832,
        432
      ]
    },
    {
      "id": "8b2b3cd5-c5d5-4a62-81e2-6080fd9f9bf7",
      "name": "Master Orchestrator Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1200,
        192
      ]
    },
    {
      "id": "a2522df7-7c20-4ff4-99f9-3f09d28a123a",
      "name": "Route by Risk Level",
      "type": "n8n-nodes-base.switch",
      "position": [
        -368,
        256
      ]
    },
    {
      "id": "1934e9ca-ac05-4acb-a7e6-c831d8bbd332",
      "name": "Check Requires Human Approval",
      "type": "n8n-nodes-base.if",
      "position": [
        -96,
        208
      ]
    },
    {
      "id": "5aeb2691-93d8-4f8f-92c7-785bb2214523",
      "name": "Wait for Human Approval",
      "type": "n8n-nodes-base.wait",
      "position": [
        144,
        112
      ]
    },
    {
      "id": "386be9f5-e018-43b0-a86e-6bf4e957d470",
      "name": "Send Critical Alert Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        368,
        464
      ]
    },
    {
      "id": "0b91d282-45c4-4fa8-9abb-aea4ccbd28b1",
      "name": "Send Executive Alert Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        368,
        256
      ]
    },
    {
      "id": "c891c408-822f-4eb7-84f1-c1d1258e61d8",
      "name": "Send Slack Notification",
      "type": "n8n-nodes-base.slack",
      "position": [
        368,
        656
      ]
    },
    {
      "id": "3a4025c0-1b45-48eb-8c9b-aab8343a70e6",
      "name": "Merge Notification Paths",
      "type": "n8n-nodes-base.merge",
      "position": [
        592,
        464
      ]
    },
    {
      "id": "5c406e30-87ca-4438-ae2f-0c96f209d653",
      "name": "Log Audit Trail",
      "type": "n8n-nodes-base.code",
      "position": [
        816,
        464
      ]
    },
    {
      "id": "a0b01029-e250-4feb-96af-bffeefcf16fc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2192,
        96
      ],
      "parameters": {
        "width": 944,
        "height": 784,
        "content": "## Traceability Analysis  \nIdentifies contamination sources and affected product scope for containment decisions."
      }
    },
    {
      "id": "d7f7f97f-8c05-4863-9e4f-17dff945db60",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -992,
        -288
      ],
      "parameters": {
        "width": 512,
        "height": 304,
        "content": "## Prerequisites\nNVIDIA NIM API key, Gmail account with app password\n## Use Cases\nManufacturing defect escalation, food safety incident management\n## Customization\nModify risk scoring thresholds, add "
      }
    },
    {
      "id": "975fc092-e75a-4abc-bb27-8b11b2e5c9de",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1456,
        -240
      ],
      "parameters": {
        "width": 400,
        "height": 256,
        "content": "## Setup Steps\n1. Configure NVIDIA NIM API credentials with Llama-3.1-70B-Instruct model access\n2. Set up routing logic thresholds\n3. Connect Gmail SMTP for executive alerts and Slack webhook for team"
      }
    },
    {
      "id": "afc912f8-7185-45f4-baec-715cb9538a99",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2160,
        -240
      ],
      "parameters": {
        "width": 640,
        "height": 272,
        "content": "## How It Works\nThis workflow automates quality event risk assessment through AI-powered multi-agent analysis with mandatory human oversight for critical decisions. Designed for quality managers, comp"
      }
    },
    {
      "id": "8d584b54-88f4-490b-a216-69c2cee6e8fb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        80
      ],
      "parameters": {
        "width": 1824,
        "height": 880,
        "content": "## Recall Evaluation \nEnsures regulatory compliance and protects consumer safety through proper escalation protocols."
      }
    },
    {
      "id": "53be746d-d8d0-47db-9d76-bc8b6004de45",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        96
      ],
      "parameters": {
        "width": 320,
        "height": 816,
        "content": "## Risk Assessment\nQuantifies business impact and legal obligations to prioritize response actions."
      }
    }
  ],
  "connections": {
    "Route by Risk Level": {
      "main": [
        [
          {
            "node": "Check Requires Human Approval",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Critical Alert Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Slack Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Quality Event Webhook": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Slack Notification": {
      "main": [
        [
          {
            "node": "Merge Notification Paths",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Traceability Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Human Approval": {
      "main": [
        [
          {
            "node": "Send Executive Alert Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Notification Paths": {
      "main": [
        [
          {
            "node": "Log Audit Trail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Master Orchestrator Agent": {
      "main": [
        [
          {
            "node": "Route by Risk Level",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Critical Alert Email": {
      "main": [
        [
          {
            "node": "Merge Notification Paths",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Orchestrator Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Risk Assessment Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send Executive Alert Email": {
      "main": [
        [
          {
            "node": "Merge Notification Paths",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Traceability Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Traceability Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Check Requires Human Approval": {
      "main": [
        [
          {
            "node": "Wait for Human Approval",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Executive Alert Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Risk Assessment Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Risk Assessment Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Orchestrator": {
      "ai_languageModel": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Recall Orchestration Agent Tool": {
      "ai_tool": [
        [
          {
            "node": "Master Orchestrator Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Recall Orchestration Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Recall Orchestration Agent Tool",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Traceability Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Traceability Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Risk Assessment Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Risk Assessment Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Model - Recall Orchestration Agent": {
      "ai_languageModel": [
        [
          {
            "node": "Recall Orchestration Agent Tool",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}