{
  "name": "Vorlux AI | Meeting Follow-up Automation",
  "nodes": [
    {
      "id": "2cf95883-1312-4212-8cf6-1876e8d38ec8",
      "name": "Meeting Ended",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        220,
        300
      ],
      "webhookId": "ccdbb293-d1c5-4912-a271-85dc12d711f1",
      "parameters": {
        "httpMethod": "POST",
        "path": "meeting-followup",
        "options": {
          "responseMode": "lastNode"
        }
      }
    },
    {
      "id": "4feef6be-2cf3-42bc-a3c5-0fc608772061",
      "name": "Extract Actions",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        460,
        300
      ],
      "parameters": {
        "method": "POST",
        "url": "={{$env.VORLUX_HUB_URL}}/api/orchestrator/execute",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\"agentId\":\"docs-librarian\",\"action\":\"extract_action_items\",\"params\":{\"transcript\":\"{{ ($json.body?.transcript || $json.transcript || \"\").substring(0, 10000) }}\",\"attendees\":\"{{ JSON.stringify($json.body?.attendees || $json.attendees || []) }}\"}}",
        "options": {
          "timeout": 120000
        }
      },
      "notes": "AI extracts action items from meeting transcript"
    },
    {
      "id": "a6d63f28-3be9-4907-a4b9-2bfe3558240c",
      "name": "Create Tasks",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        700,
        200
      ],
      "parameters": {
        "method": "POST",
        "url": "={{$env.VORLUX_HUB_URL}}/api/tasks/bulk",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\"tasks\":{{ JSON.stringify(($json.data?.result || \"\").split(\"\\n\").filter(l => l.match(/^[-*]/)).map(l => ({title: l.replace(/^[-*]\\s*/, \"\"), source: \"meeting\", priority: \"medium\"})).slice(0, 10)) }}}",
        "options": {
          "timeout": 15000
        }
      }
    },
    {
      "id": "a944b4ac-2f97-4be7-9376-1334727e7a64",
      "name": "Save Notes",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        700,
        400
      ],
      "parameters": {
        "method": "POST",
        "url": "={{$env.VORLUX_HUB_URL}}/api/kb/articles",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\"title\":\"Meeting Notes \u2014 {{ new Date().toISOString().split(\"T\")[0] }}\",\"content\":\"{{ $json.data?.result || \"\" }}\",\"category\":\"meetings\",\"tags\":[\"meeting-notes\"]}",
        "options": {
          "timeout": 15000
        }
      }
    },
    {
      "id": "a7cca49c-d424-491d-bc29-7f9c231009c9",
      "name": "Notify",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        940,
        300
      ],
      "parameters": {
        "method": "POST",
        "url": "={{$env.DISCORD_OPS_WEBHOOK}}",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\"embeds\":[{\"title\":\"\ud83d\udcdd Meeting Follow-up Complete\",\"description\":\"Action items created and notes saved to KB\",\"color\":5793266}]}",
        "options": {
          "timeout": 10000
        }
      }
    },
    {
      "id": "fb41205c-ca7d-4656-9351-ec1b1ccd2d19",
      "name": "Respond",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [
        1180,
        300
      ],
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify({ok: true}) }}"
      }
    }
  ],
  "connections": {
    "Meeting Ended": {
      "main": [
        [
          {
            "node": "Extract Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Actions": {
      "main": [
        [
          {
            "node": "Create Tasks",
            "type": "main",
            "index": 0
          },
          {
            "node": "Save Notes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Tasks": {
      "main": [
        [
          {
            "node": "Notify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Notes": {
      "main": [
        [
          {
            "node": "Notify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify": {
      "main": [
        [
          {
            "node": "Respond",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true,
    "saveExecutionProgress": true
  }
}