{
  "name": "StreamerBuddy Main Ingestion",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "ingestion",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "webhook-ingestion",
      "name": "Webhook Ingestion",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json.event_type}}",
              "operation": "equal",
              "value2": "yolo_event"
            }
          ]
        }
      },
      "id": "if-yolo-event",
      "name": "If YOLO Event",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$json.event_type}}",
              "operation": "equal",
              "value2": "chat_message"
            }
          ]
        }
      },
      "id": "if-chat-message",
      "name": "If Chat Message",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        460,
        500
      ]
    },
    {
      "parameters": {
        "url": "http://orchestrator:8000/webhook/yolo-processing",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "event_data",
              "value": "={{$json}}"
            }
          ]
        }
      },
      "id": "process-yolo",
      "name": "Process YOLO Event",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        680,
        200
      ]
    },
    {
      "parameters": {
        "url": "http://orchestrator:8000/webhook/chat-processing",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "message_data",
              "value": "={{$json}}"
            }
          ]
        }
      },
      "id": "process-chat",
      "name": "Process Chat Message",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        680,
        400
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{JSON.stringify({status: 'processed', timestamp: new Date().toISOString()})}}"
      },
      "id": "response",
      "name": "Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        900,
        300
      ]
    }
  ],
  "connections": {
    "Webhook Ingestion": {
      "main": [
        [
          {
            "node": "If YOLO Event",
            "type": "main",
            "index": 0
          },
          {
            "node": "If Chat Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If YOLO Event": {
      "main": [
        [
          {
            "node": "Process YOLO Event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Chat Message": {
      "main": [
        [
          {
            "node": "Process Chat Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process YOLO Event": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Chat Message": {
      "main": [
        [
          {
            "node": "Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {},
  "createdAt": "2025-01-09T10:00:00.000Z",
  "updatedAt": "2025-01-09T10:00:00.000Z",
  "id": "1"
}