{
  "name": "Production AI Playbook: Deterministic Steps & AI Steps (3 of 5)",
  "nodes": [
    {
      "id": "e50e2e16-32d9-4ce4-baea-ba25970bf3db",
      "name": "Webhook - Incoming Ticket",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1440,
        576
      ]
    },
    {
      "id": "172223ae-9832-47b1-9731-b0ca55123e32",
      "name": "Normalize Ticket",
      "type": "n8n-nodes-base.code",
      "position": [
        -1216,
        576
      ]
    },
    {
      "id": "8a1ff0c3-f97c-442e-a762-7aa4177ed961",
      "name": "AI - Classify",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -992,
        576
      ]
    },
    {
      "id": "262ba98c-e0cc-4c55-9abb-f92522260b5b",
      "name": "Parse + Validate",
      "type": "n8n-nodes-base.code",
      "position": [
        -640,
        576
      ]
    },
    {
      "id": "0a29b0e6-9759-43d4-bb97-822621b0ccd2",
      "name": "Confidence Threshold",
      "type": "n8n-nodes-base.switch",
      "position": [
        -416,
        560
      ]
    },
    {
      "id": "ffb130a2-0ba6-43f2-be3c-7b3ee667a719",
      "name": "Route by Category",
      "type": "n8n-nodes-base.switch",
      "position": [
        -192,
        176
      ]
    },
    {
      "id": "62b71a99-910d-4d1e-a8b6-a3298221688d",
      "name": "Flag for Review",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        576
      ]
    },
    {
      "id": "3671dfc2-9862-4d96-9683-c97a9e32d88e",
      "name": "Send to Human Queue",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        768
      ]
    },
    {
      "id": "03766d0e-16c7-42a1-ab66-a0b6753fd93e",
      "name": "Billing Team",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        0
      ]
    },
    {
      "id": "4ae34c34-7f16-4d2e-b2af-feeae04fbf5f",
      "name": "Technical Team",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        192
      ]
    },
    {
      "id": "11a66db0-a365-408c-953f-2154675cbf50",
      "name": "Sales Team",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        384
      ]
    },
    {
      "id": "e97e0dc7-340c-407e-b3e5-6ea74297e76a",
      "name": "General Inbox",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        960
      ]
    },
    {
      "id": "74e4b921-5177-4618-bd89-e6ee95408080",
      "name": "Respond",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        256,
        480
      ]
    },
    {
      "id": "dfe71ff5-1259-414a-9106-cc260b403556",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -928,
        800
      ]
    },
    {
      "id": "1fb7d84f-5cc8-475b-8fbe-772b35a0183c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2128,
        128
      ],
      "parameters": {
        "width": 576,
        "height": 864,
        "content": "## Classification-then-Routing\n\n### How it works\n1. **Webhook** receives an incoming support ticket.\n2. **Normalize Ticket** (Code node) cleans and standardizes the input.\n3. **AI - Classify** (AI Age"
      }
    },
    {
      "id": "18171911-4cd5-4971-9a86-c861475ea933",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1504,
        288
      ],
      "parameters": {
        "width": 432,
        "height": 704,
        "content": "## Receive & Normalize"
      }
    },
    {
      "id": "ce73ad96-e96b-416c-9bab-9164af4bbc7a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1024,
        288
      ],
      "parameters": {
        "width": 304,
        "height": 704,
        "content": "## AI Classification"
      }
    },
    {
      "id": "fd237475-e0b1-43d7-acd2-eeff54c72076",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -688,
        288
      ],
      "parameters": {
        "width": 416,
        "height": 704,
        "content": "## Confidence Routing"
      }
    },
    {
      "id": "b2a3d9d5-9f58-44c3-a1cc-864f36c58d0a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        -64
      ],
      "parameters": {
        "width": 656,
        "height": 1184,
        "content": "## Category Routing"
      }
    }
  ],
  "connections": {
    "Sales Team": {
      "main": [
        [
          {
            "node": "Respond",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Billing Team": {
      "main": [
        [
          {
            "node": "Respond",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI - Classify": {
      "main": [
        [
          {
            "node": "Parse + Validate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "General Inbox": {
      "main": [
        [
          {
            "node": "Respond",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Technical Team": {
      "main": [
        [
          {
            "node": "Respond",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flag for Review": {
      "main": [
        [
          {
            "node": "Respond",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Ticket": {
      "main": [
        [
          {
            "node": "AI - Classify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse + Validate": {
      "main": [
        [
          {
            "node": "Confidence Threshold",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Category": {
      "main": [
        [
          {
            "node": "Billing Team",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Technical Team",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Sales Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send to Human Queue": {
      "main": [
        [
          {
            "node": "Respond",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confidence Threshold": {
      "main": [
        [
          {
            "node": "Route by Category",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Flag for Review",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send to Human Queue",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI - Classify",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - Incoming Ticket": {
      "main": [
        [
          {
            "node": "Normalize Ticket",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}