{
  "name": "Webhook event router",
  "nodes": [
    { "parameters": { "httpMethod": "POST", "path": "route", "responseMode": "responseNode", "options": {} }, "id": "c0000001-0000-4a01-8a01-000000000001", "name": "Webhook", "type": "n8n-nodes-base.webhook", "typeVersion": 2, "position": [0, 0], "webhookId": "webhookrouter01" },
    { "parameters": { "rules": { "values": [
      { "conditions": { "options": { "caseSensitive": true, "typeValidation": "loose", "version": 2 }, "conditions": [ { "id": "r1", "leftValue": "={{ $json.body.event }}", "rightValue": "order", "operator": { "type": "string", "operation": "equals" } } ], "combinator": "and" }, "renameOutput": true, "outputKey": "order" },
      { "conditions": { "options": { "caseSensitive": true, "typeValidation": "loose", "version": 2 }, "conditions": [ { "id": "r2", "leftValue": "={{ $json.body.event }}", "rightValue": "signup", "operator": { "type": "string", "operation": "equals" } } ], "combinator": "and" }, "renameOutput": true, "outputKey": "signup" },
      { "conditions": { "options": { "caseSensitive": true, "typeValidation": "loose", "version": 2 }, "conditions": [ { "id": "r3", "leftValue": "={{ $json.body.event }}", "rightValue": "support", "operator": { "type": "string", "operation": "equals" } } ], "combinator": "and" }, "renameOutput": true, "outputKey": "support" }
    ] }, "options": { "fallbackOutput": "extra" } }, "id": "c0000002-0000-4a02-8a02-000000000002", "name": "Switch", "type": "n8n-nodes-base.switch", "typeVersion": 3.2, "position": [220, 0] },
    { "parameters": { "respondWith": "json", "responseBody": "={{ ({ routed: 'orders-service', event: $json.body.event }) }}", "options": {} }, "id": "c0000003-0000-4a03-8a03-000000000003", "name": "Order", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1.1, "position": [460, -180] },
    { "parameters": { "respondWith": "json", "responseBody": "={{ ({ routed: 'onboarding', event: $json.body.event }) }}", "options": {} }, "id": "c0000004-0000-4a04-8a04-000000000004", "name": "Signup", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1.1, "position": [460, -60] },
    { "parameters": { "respondWith": "json", "responseBody": "={{ ({ routed: 'helpdesk', event: $json.body.event }) }}", "options": {} }, "id": "c0000005-0000-4a05-8a05-000000000005", "name": "Support", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1.1, "position": [460, 60] },
    { "parameters": { "respondWith": "json", "responseBody": "={{ ({ routed: 'default-queue', event: ($json.body.event || 'unknown') }) }}", "options": {} }, "id": "c0000006-0000-4a06-8a06-000000000006", "name": "Default", "type": "n8n-nodes-base.respondToWebhook", "typeVersion": 1.1, "position": [460, 180] }
  ],
  "connections": {
    "Webhook": { "main": [[{ "node": "Switch", "type": "main", "index": 0 }]] },
    "Switch": { "main": [
      [{ "node": "Order", "type": "main", "index": 0 }],
      [{ "node": "Signup", "type": "main", "index": 0 }],
      [{ "node": "Support", "type": "main", "index": 0 }],
      [{ "node": "Default", "type": "main", "index": 0 }]
    ] }
  },
  "settings": { "executionOrder": "v1" },
  "meta": {}
}
