{
  "name": "ADIK-04 CrewAI Multi-Agent Brief",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "crew-brief",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "trigger-04",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [240, 300],
      "webhookId": "adik-crew-brief"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://127.0.0.1:7860/api/crewai/run",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"topic\": {{ JSON.stringify($json.body.topic) }}\n}",
        "options": { "timeout": 180000 }
      },
      "id": "crew",
      "name": "Run Crew (researcher+writer)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [460, 300]
    },
    {
      "parameters": {
        "jsCode": "const r = $input.first().json;\nreturn [{ json: { topic: r.topic, brief: r.output, generated_at: new Date().toISOString() } }];"
      },
      "id": "format",
      "name": "Format",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [680, 300]
    }
  ],
  "connections": {
    "Webhook": { "main": [[{ "node": "Run Crew (researcher+writer)", "type": "main", "index": 0 }]] },
    "Run Crew (researcher+writer)": { "main": [[{ "node": "Format", "type": "main", "index": 0 }]] }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "tags": [{ "name": "adik-os" }, { "name": "crewai" }]
}
