{
  "name": "Meeting Notes Extractor",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "extract-meeting-notes",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "mne0001-0001-4000-8000-000000000001",
      "name": "Receive Notes Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [240, 300]
    },
    {
      "parameters": {
        "resource": "text",
        "operation": "message",
        "modelId": {
          "__rl": true,
          "value": "gpt-4o",
          "mode": "list"
        },
        "messages": {
          "values": [
            {
              "content": "You are an expert meeting facilitator. Extract structured information from these meeting notes and return JSON with this exact structure:\n{\n  \"summary\": \"2-3 sentence meeting summary\",\n  \"attendees\": [\"name1\", \"name2\"],\n  \"decisions\": [\"decision1\", \"decision2\"],\n  \"action_items\": [{\"task\": \"...\", \"owner\": \"...\", \"due_date\": \"...\"}],\n  \"next_meeting\": \"date or null\"\n}\n\nMeeting Notes:\n{{ $json.body.notes }}"
            }
          ]
        },
        "options": {
          "temperature": 0.1,
          "responseFormat": "json_object"
        }
      },
      "id": "mne0001-0002-4000-8000-000000000002",
      "name": "Extract with AI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 1,
      "position": [460, 300]
    },
    {
      "parameters": {
        "jsCode": "const extracted = JSON.parse($input.item.json.message.content);\nconst actionItems = extracted.action_items || [];\nreturn actionItems.map(item => ({\n  json: {\n    ...extracted,\n    currentActionItem: item\n  }\n}));"
      },
      "id": "mne0001-0003-4000-8000-000000000003",
      "name": "Split Action Items",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [680, 300]
    },
    {
      "parameters": {
        "sendTo": "={{ $json.currentActionItem.owner }}@company.com",
        "subject": "Action Item: {{ $json.currentActionItem.task }}",
        "message": "Hi {{ $json.currentActionItem.owner }},\n\nYou have an action item from the recent meeting:\n\nTask: {{ $json.currentActionItem.task }}\nDue Date: {{ $json.currentActionItem.due_date }}\n\nMeeting Summary:\n{{ $json.summary }}\n\nPlease confirm receipt.",
        "options": {}
      },
      "id": "mne0001-0004-4000-8000-000000000004",
      "name": "Email Action Items",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2,
      "position": [900, 300]
    },
    {
      "parameters": {},
      "id": "mne0001-0005-4000-8000-000000000005",
      "name": "Done",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [1120, 300]
    }
  ],
  "connections": {
    "Receive Notes Webhook": {
      "main": [[{ "node": "Extract with AI", "type": "main", "index": 0 }]]
    },
    "Extract with AI": {
      "main": [[{ "node": "Split Action Items", "type": "main", "index": 0 }]]
    },
    "Split Action Items": {
      "main": [[{ "node": "Email Action Items", "type": "main", "index": 0 }]]
    },
    "Email Action Items": {
      "main": [[{ "node": "Done", "type": "main", "index": 0 }]]
    }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "meta": {},
  "pinData": {}
}
