{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "f35a6559-68d6-47b8-8a31-707fc4f5de90",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1184,
        -352
      ],
      "parameters": {
        "width": 460,
        "height": 1888,
        "content": "## Message triage and categorization \n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "887192bb-5226-4633-bcfd-336640f0e5f0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        -352
      ],
      "parameters": {
        "width": 150,
        "height": 1892,
        "content": "## Text mover\n"
      },
      "typeVersion": 1
    },
    {
      "id": "5bcab540-979c-4884-a14c-eb7f271a04e8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1824,
        -352
      ],
      "parameters": {
        "width": 300,
        "height": 1380,
        "content": "## AI Email composer"
      },
      "typeVersion": 1
    },
    {
      "id": "c9206738-9d42-445a-b38d-b1e0a680c71d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2144,
        -352
      ],
      "parameters": {
        "width": 360,
        "height": 1892,
        "content": "## Brand Voice"
      },
      "typeVersion": 1
    },
    {
      "id": "b1b24fbb-afa4-493a-9065-9cea8eee22b5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2528,
        -352
      ],
      "parameters": {
        "color": 5,
        "width": 308,
        "height": 1020,
        "content": "## Flow Classifier\n"
      },
      "typeVersion": 1
    },
    {
      "id": "f0bb5038-4bb3-4d5f-aaf3-353593650e25",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1824,
        1040
      ],
      "parameters": {
        "color": 5,
        "width": 300,
        "height": 496,
        "content": "## Flow Classifier\n"
      },
      "typeVersion": 1
    },
    {
      "id": "32eb030f-a50c-4b5e-994e-d29063a8af13",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2528,
        688
      ],
      "parameters": {
        "color": 3,
        "width": 308,
        "height": 852,
        "content": "## Direct Message on Slack\n"
      },
      "typeVersion": 1
    },
    {
      "id": "15f4ff52-5665-406c-832b-08b1084f7276",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1424,
        1008
      ],
      "parameters": {
        "color": 6,
        "width": 200,
        "height": 240,
        "content": "## LLM\n"
      },
      "typeVersion": 1
    },
    {
      "id": "091ec89c-1c03-4617-9b17-48cf9acb7428",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2864,
        -352
      ],
      "parameters": {
        "width": 220,
        "height": 1892,
        "content": "## Email Drafter"
      },
      "typeVersion": 1
    },
    {
      "id": "bf1873c2-d96a-4ee9-b915-46a54916c5e4",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3408,
        -352
      ],
      "parameters": {
        "width": 180,
        "height": 1888,
        "content": "## Email Read\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "537605fb-0030-415d-9e68-73577f71e2d1",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3824,
        -352
      ],
      "parameters": {
        "width": 220,
        "height": 1888,
        "content": "## Email Archive in Folder\n\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "20b14870-bd11-4ae9-8699-fff1ea710536",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3600,
        -352
      ],
      "parameters": {
        "color": 5,
        "width": 190,
        "height": 1888,
        "content": "## Email Tagged as \"AI\"\n"
      },
      "typeVersion": 1
    },
    {
      "id": "e43f8075-f964-49be-94bd-6d48f6debe06",
      "name": "Sticky Note13",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4080,
        400
      ],
      "parameters": {
        "color": 5,
        "width": 230,
        "height": 292,
        "content": "## Body saved on CSV for future Memory\n"
      },
      "typeVersion": 1
    },
    {
      "id": "6b612cc8-886b-4bd6-9bf0-b4005910aca0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        -432
      ],
      "parameters": {
        "color": 7,
        "width": 3188,
        "height": 2016,
        "content": "# Autonomous Email Assistant\n"
      },
      "typeVersion": 1
    },
    {
      "id": "f3746559-efab-44d5-b714-1cdec8ba6a9e",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2048,
        -1088
      ],
      "parameters": {
        "width": 1376,
        "height": 608,
        "content": "# \ud83d\udce7 AUTONOMOUS EMAIL ASSISTANT - AI-Powered Email Management System\n\n## \ud83c\udfaf WORKFLOW OVERVIEW\nThis intelligent email automation system processes incoming emails through AI-powered classification, generates context-aware responses in your brand voice, and automatically organizes your inbox.\n\n## \u26a1 KEY FEATURES\n- **Smart Classification**: 7-category email sorting (Commercial/Spam, Internal, Meeting, Newsletter, Notifications, Urgent, Other)\n- **AI Response Generation**: Context-aware replies with personalized brand voice\n- **Meeting Management**: Automatic calendar integration and scheduling\n- **Inbox Organization**: Auto-filing to categorized folders\n- **AI Tagging**: All processed emails tagged for tracking\n- **Data Logging**: Comprehensive audit trail in Excel\n\n## \ud83d\udd04 WORKFLOW STAGES\n1\ufe0f\u20e3 Email Trigger \u2192 2\ufe0f\u20e3 Information Extraction \u2192 3\ufe0f\u20e3 AI Classification \u2192 4\ufe0f\u20e3 Route Processing \u2192 5\ufe0f\u20e3 Response Generation \u2192 6\ufe0f\u20e3 Organization & Archiving \u2192 7\ufe0f\u20e3 Data Logging\n\n## \u2699\ufe0f REQUIREMENTS\n- Microsoft Outlook account (OAuth2)\n- Microsoft Excel 365 access\n- OpenRouter API (GPT-5-mini)\n- Slack workspace (for urgent notifications)"
      },
      "typeVersion": 1
    },
    {
      "id": "16748ccd-9881-4c78-a0dd-0bcf51a36079",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        1600
      ],
      "parameters": {
        "width": 432,
        "height": 976,
        "content": "## \ud83d\udccb EMAIL CLASSIFICATION ENGINE\n\n### DUAL CLASSIFICATION SYSTEM\nTwo classifiers work in tandem for accuracy:\n\n**Classifier Pro (Chain LLM)**\n- Primary classifier using structured prompts\n- Fast, deterministic classification\n- Returns single category label\n\n**Virtual Postman (Text Classifier)**  \n- Secondary validation layer\n- AI-powered semantic understanding\n- 7 distinct categories with descriptions\n\n### CLASSIFICATION CATEGORIES\n\n\ud83d\udd34 **Commercial/Spam**\nSales, promotions, marketing, unwanted mass emails\n\u2192 Action: Mark read, tag AI, archive to Commercial/Spam\n\n\ud83d\udd35 **Internal** (@marqgroup.com, @mibellegroup.com)\nCompany communications, team updates, projects\n\u2192 Action: Draft reply if needed, archive to Internal\n\u2192 Note: Urgent takes precedence over Internal\n\n\ud83d\udcc5 **Meeting**\nScheduling, invitations, confirmations, follow-ups\n\u2192 Action: AI Agent with calendar tools, archive to Event\n\n\ud83d\udcf0 **Newsletter**\nSubscribed content, curated updates, regular digests\n\u2192 Action: Mark read, tag AI, archive to Newsletter\n\n\ud83d\udd14 **Notifications**\nAutomated system alerts, order updates, social media\n\u2192 Action: Mark read, tag AI, archive to Notifications\n\n\ud83d\udea8 **Urgent** (HIGH PRIORITY)\nTime-sensitive, requires immediate attention\n\u2192 Action: Slack notification + draft reply, archive to Urgent\n\u2192 Note: Overrides Internal classification\n\n\ud83d\udce6 **Other**\nCatch-all for emails not fitting other categories\n\u2192 Action: Classify if needs reply, archive to Other"
      },
      "typeVersion": 1
    },
    {
      "id": "7981a7b4-2711-4f53-b56e-8cd0d8bd19a5",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        688,
        -352
      ],
      "parameters": {
        "width": 432,
        "height": 432,
        "content": "## \ud83d\udd0d INFORMATION EXTRACTOR\n\n**Purpose**: Extracts sender's first name for personalized responses\n\n**What it does:**\n- Parses email metadata (subject, sender, body, ID)\n- Extracts sender_name attribute\n- Feeds to downstream nodes for personalization\n\n**Why it's important:**\nAll AI-generated responses address the sender by their first name, creating a more personal and professional tone.\n\n**Example:**\nEmail from: John Doe <john.doe@example.com>\nExtracted: sender_name = \"John\"\nResponse: \"Hi John, ...\""
      },
      "typeVersion": 1
    },
    {
      "id": "003ab8b2-12bd-47aa-b53f-c3fe67e4f249",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        1600
      ],
      "parameters": {
        "width": 384,
        "height": 944,
        "content": "## \ud83e\udd16 AI RESPONSE GENERATION - BRAND VOICE SYSTEM\n\n### THREE RESPONSE ENGINES\n\n**1. emailReplier** (General Emails)\n- Handles routine email responses\n- Information requests, clarifications, acknowledgments\n- Task delegation and general correspondence\n\n**2. urgentReplier** (Urgent Emails)\n- Prioritizes immediate acknowledgment\n- Provides specific timeframe commitments\n- Alerts via Slack for human oversight\n- Default: \"I'll get back to you within [timeframe]\"\n\n**3. AI Agent** (Meeting Requests)\n- Calendar integration via eventChecker & eventCreator tools\n- Checks availability automatically\n- Suggests 2 alternative times if unavailable\n- Creates events when confirming meetings\n- Maintains 15-minute buffer between meetings\n- Only schedules 8:30 AM - 5:00 PM\n\n### BRAND VOICE APPLICATION\nAll responses pass through Brand Voice nodes:\n- **Brand Voice** \u2192 Meeting responses\n- **Brand Voice1** \u2192 General email responses\n- **Brand Voice2** \u2192 Urgent email responses\n- **Brand Voice3** \u2192 Other category responses\n\n**Brand Voice Characteristics:**\n- Direct and concise (8-15 words/sentence)\n- Action-oriented language\n- Key phrases: \"Just checking...\", \"For your awareness\", \"Let me know...\"\n- Professional greetings & closings\n- IT terminology when relevant\n- Always signs: \"Regards, Didac\""
      },
      "typeVersion": 1
    },
    {
      "id": "5b518457-72bd-47e5-b1aa-ffab5e594d2f",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2000,
        1600
      ],
      "parameters": {
        "width": 384,
        "height": 832,
        "content": "## \ud83d\udcc5 MEETING REQUEST HANDLER\n\n### AI AGENT WITH CALENDAR TOOLS\n\n**Tools Available:**\n1. **eventChecker** - Searches calendar for availability\n2. **eventCreator** - Creates new calendar events\n3. **Window Buffer Memory** - Maintains conversation context\n\n**Decision Flow:**\n\nIF time suggested AND available:\n  \u2192 Create event\n  \u2192 Send confirmation\n  \nIF time suggested BUT unavailable:\n  \u2192 Check calendar for alternatives\n  \u2192 Suggest 2 available times (same day if possible)\n  \u2192 Wait for confirmation\n\nIF no specific time:\n  \u2192 Check general availability\n  \u2192 Suggest 2 specific time slots\n  \u2192 Wait for confirmation\n\n**Safety Features:**\n- 15-minute buffer between meetings\n- Working hours only (8:30 AM - 5:00 PM)\n- Respects existing commitments\n\n### CLASSIFIER (Confirming vs Suggesting)\nAfter AI generates response:\n- **Confirming** \u2192 Event was created, send confirmation\n- **Suggesting** \u2192 Proposing times, send proposal"
      },
      "typeVersion": 1
    },
    {
      "id": "c0f41526-4b8b-4d70-abc7-4cd5d1dccce0",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        1600
      ],
      "parameters": {
        "width": 384,
        "height": 736,
        "content": "## \ud83d\udea8 URGENT EMAIL PRIORITY HANDLING\n\n### DUAL NOTIFICATION SYSTEM\n\n**1. Slack Direct Message**\nImmediately notifies you via Slack with:\n- Sender name and email\n- Subject line  \n- Email body preview\n- Note about drafted response\n\n**2. AI-Generated Draft Response**\nCreates immediate acknowledgment:\n- Explicitly acknowledges urgency\n- Provides specific response timeframe\n- Commits to follow-up\n- Professional and action-oriented\n\n### HUMAN-IN-THE-LOOP\nAfter Slack notification, Microsoft Outlook tool waits for your feedback:\n\n**Response Options:**\n- **Approved**: Send draft as-is\n- **Declined**: Provide feedback for revisions\n\n**Check Feedback Classifier:**\n- Analyzes your response\n- **Approved** \u2192 Sends email, marks read, archives\n- **Declined** \u2192 Loops back for adjustments"
      },
      "typeVersion": 1
    },
    {
      "id": "ee8f5d5e-7f88-4b18-8aa4-86f441a803c3",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2800,
        1600
      ],
      "parameters": {
        "width": 384,
        "height": 544,
        "content": "## \ud83d\udd00 FLOW CLASSIFIER (Other Category)\n\n**Purpose**: Determines if \"Other\" emails need a response\n\n**Categories:**\n- **Requires reply** \u2192 Generate draft response\n- **Doesn't require reply** \u2192 Mark read and archive\n\n**Examples:**\n\nREQUIRES REPLY:\n- Questions needing answers\n- Requests for information\n- Action items\n- Unclear communications\n\nNO REPLY NEEDED:\n- FYI messages\n- Status updates\n- Automated confirmations\n- Complete threads"
      },
      "typeVersion": 1
    },
    {
      "id": "50ac227e-8516-4829-bbec-1ff25bb3de64",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3200,
        1600
      ],
      "parameters": {
        "width": 384,
        "height": 688,
        "content": "## \ud83d\udce8 EMAIL OPERATIONS\n\n### MARKING AS READ\nAll processed emails automatically marked as read\n- Keeps inbox clean\n- Prevents duplicate processing\n- Indicates AI handling\n\n### AI TAGGING\nEvery email receives \"AI\" category tag\n- Easy identification of automated processing\n- Searchable in Outlook\n- Audit trail for review\n\n### FOLDER ARCHIVING\nEmails moved to category-specific folders:\n- **Commercial/Spam** \u2192 Commercial/Spam folder\n- **Newsletter** \u2192 Newsletter folder\n- **Notifications** \u2192 Notifications folder\n- **Event** \u2192 Event folder\n- **Internal** \u2192 Internal folder\n- **Urgent** \u2192 Urgent folder\n- **Other** \u2192 Other folder\n\n**Benefits:**\n- Organized inbox\n- Easy retrieval\n- Category-based searching"
      },
      "typeVersion": 1
    },
    {
      "id": "b84883a6-2964-46e6-bf5d-e2c23d4f8bbf",
      "name": "Sticky Note22",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3600,
        1600
      ],
      "parameters": {
        "width": 384,
        "height": 688,
        "content": "## \ud83d\udcca DATA LOGGING TO EXCEL\n\n### TRACKED INFORMATION\nEvery processed email logged with:\n- Email ID\n- Date/Time received\n- Subject line\n- Sender information\n- Email body preview\n- AI-generated reply\n\n### EXCEL STRUCTURE\nWorksheet: Sheet1\nColumns: Id | Date | Subject | Sender | Body | Reply\n\n**Purpose:**\n- Comprehensive audit trail\n- Quality assurance\n- Training data collection\n- Performance analytics\n- Compliance documentation\n\n**Location:**\nMicrosoft Excel 365: \"Email Automator\" workbook"
      },
      "typeVersion": 1
    },
    {
      "id": "1bc3461b-0fec-4009-87ed-b4aed5161455",
      "name": "Sticky Note23",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4000,
        1600
      ],
      "parameters": {
        "width": 384,
        "height": 752,
        "content": "## \u2699\ufe0f TECHNICAL CONFIGURATION\n\n### REQUIRED CREDENTIALS\n1. **Microsoft Outlook OAuth2**\n   - Account: Personal Outlook\n   - Permissions: Read, Write, Send emails\n   - Calendar access\n\n2. **Microsoft Excel OAuth2**\n   - Account: Didac Personal Office\n   - Workbook: Email Automator\n\n3. **OpenRouter API**\n   - Model: openai/gpt-5-mini\n   - Used for: All AI classification and generation\n\n4. **Slack OAuth2**\n   - Workspace connection required\n   - DM channel: @didac (U060FTJ71C7)\n\n### BRAND VOICE PROMPT\nThe extensive brand voice prompt is embedded in the Brand Voice nodes.\nContains writing style analysis, dos/don'ts, and examples for consistent tone.\n\n### POLLING INTERVAL\nMicrosoft Outlook Trigger: Every minute\nCan be adjusted based on needs in trigger settings."
      },
      "typeVersion": 1
    },
    {
      "id": "5479f37b-799a-4761-bad5-53d0af982a14",
      "name": "Sticky Note24",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4368,
        -432
      ],
      "parameters": {
        "width": 384,
        "height": 880,
        "content": "## \ud83d\udca1 TIPS & BEST PRACTICES\n\n### CUSTOMIZATION TIPS\n1. **Adjust Classification Categories**\n   - Edit Virtual Postman categories for your needs\n   - Update folder destinations in archive nodes\n\n2. **Modify Brand Voice**\n   - Update brand voice prompts to match your style\n   - Add/remove key phrases\n   - Adjust formality level\n\n3. **Change Response Behavior**\n   - Modify AI Agent system messages\n   - Update response templates\n   - Adjust meeting time preferences\n\n4. **Notification Preferences**\n   - Change Slack user/channel\n   - Add email notifications\n   - Adjust urgent criteria\n\n### MONITORING & MAINTENANCE\n- Review Excel log weekly\n- Check AI-tagged emails periodically\n- Monitor classification accuracy\n- Adjust categories as needed\n- Update brand voice based on feedback\n\n### SAFETY FEATURES\n- All urgent emails require human approval\n- Drafts created (not auto-sent) for most categories\n- Comprehensive logging for audit\n- Easy rollback via email history"
      },
      "typeVersion": 1
    },
    {
      "id": "27111480-ce32-41d0-818d-2e889d57232f",
      "name": "Sticky Note25",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        -1296
      ],
      "parameters": {
        "color": 7,
        "width": 816,
        "height": 832,
        "content": "![My Image](https://i.postimg.cc/brRs1sms/Chat-GPT-Image-Sep-30-2025-02-29-08-PM.png)"
      },
      "typeVersion": 1
    },
    {
      "id": "d853508f-5a82-4066-aeb9-74d42ecc41fd",
      "name": "Sticky Note26",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3488,
        -1296
      ],
      "parameters": {
        "color": 7,
        "width": 848,
        "height": 848,
        "content": "![My Image](https://i.postimg.cc/3RCvSmDS/Untitled-design-10.png)"
      },
      "typeVersion": 1
    },
    {
      "id": "9da48397-43c8-416f-a154-f4fab8526fea",
      "name": "Sticky Note27",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2048,
        -1760
      ],
      "parameters": {
        "color": 7,
        "width": 1360,
        "height": 624,
        "content": "# AutoSolutions.ai - AI Consulting Services\n## Didac Fernandez Girona\n\n\n\n![My Image](https://i.postimg.cc/qvRLbFDL/Long-logo.png)"
      },
      "typeVersion": 1
    },
    {
      "id": "ad9ee671-0cf6-4afc-8892-149956d7d238",
      "name": "Revise Draft",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        3136,
        1136
      ],
      "parameters": {
        "text": "=Subject:{{ $('Edit Fields6').item.json.subject }}\n\nSender:{{ $('Edit Fields6').item.json.from }}\n\nBody:{{ $('Edit Fields6').item.json.bodyPreview }}\n\nUser Feedback: {{ $('Microsoft Outlook1').item.json.data.text }}\n\nPrevious Draft: {{ $('Brand Voice6').item.json.text }}",
        "messages": {
          "messageValues": [
            {
              "message": "You are Didac's email revision assistant. The user provided feedback on the draft. Revise the email based ONLY on their feedback. Keep everything else unchanged. Maintain Didac's direct, concise, professional style. Use short sentences (8-15 words). Include phrases like 'Just checking', 'For your awareness', 'Let me know'. Output ONLY the revised email text. Always end with:\n\nRegards,\nDidac"
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "651304c6-13bc-4ae5-8d23-45cbe5aea56e",
      "name": "Microsoft Outlook Trigger1",
      "type": "n8n-nodes-base.microsoftOutlookTrigger",
      "position": [
        1344,
        -256
      ],
      "parameters": {
        "filters": {},
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "e9de8215-8dae-4182-90e2-9ce4ca465802",
      "name": "Information Extractor1",
      "type": "@n8n/n8n-nodes-langchain.informationExtractor",
      "position": [
        1264,
        -48
      ],
      "parameters": {
        "text": "=Subject:{{ $(\"Microsoft Outlook Trigger1\").first().json.subject }}\n\nSender:{{ $(\"Microsoft Outlook Trigger1\").first().json.from }}\n\nBody:{{ $(\"Microsoft Outlook Trigger1\").first().json.bodyPreview }}\n\nEmail ID:{{ $(\"Microsoft Outlook Trigger1\").first().json.id }}",
        "options": {},
        "attributes": {
          "attributes": [
            {
              "name": "sender_name",
              "description": "First name of the sender"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ac2f0aac-255d-4685-96bd-d98a1c4c39c0",
      "name": "Virtual Postman1",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        1264,
        352
      ],
      "parameters": {
        "options": {},
        "inputText": "=Subject:{{ $(\"Microsoft Outlook Trigger1\").first().json.subject }}\n\nSender:{{ $(\"Microsoft Outlook Trigger1\").first().json.from }}\n\nBody:{{ $(\"Microsoft Outlook Trigger1\").first().json.bodyPreview }}\n\nEmail ID:{{ $(\"Microsoft Outlook Trigger1\").first().json.id }}",
        "categories": {
          "categories": [
            {
              "category": "Commercial/Spam",
              "description": "Emails related to sales, promotions, marketing, offers, or advertisements from businesses."
            },
            {
              "category": "Internal",
              "description": "Emails originating from within your own organization (@marqgroup.com and @mibellegroup.com). Urgent emails take precedence."
            },
            {
              "category": "Meeting",
              "description": "Emails specifically related to scheduling, confirming, reminding, or following up on meetings."
            },
            {
              "category": "Newsletter",
              "description": "Regularly scheduled emails from organizations or individuals that the recipient has subscribed to."
            },
            {
              "category": "Notifications",
              "description": "Automated emails triggered by specific events or actions."
            },
            {
              "category": "Urgent",
              "description": "Emails that require immediate attention or action. Takes precedence over internal classification."
            },
            {
              "category": "Other",
              "description": "A catch-all category for emails that do not fit neatly into any of the other defined categories."
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "19ba4a89-74a8-46cc-9e1d-0b600a98cacf",
      "name": "markedAsRead3",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3440,
        -256
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "isRead": true
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "08c622b9-6930-490c-a40c-dca30dd56a55",
      "name": "markedAsRead7",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3440,
        -96
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "isRead": true
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "25ce3155-fed6-4f1b-926d-d19ffed20924",
      "name": "markedAsRead9",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3440,
        64
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "isRead": true
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "dda64bdd-6c41-4779-b970-8ecb45d8d856",
      "name": "markedAsRead10",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3440,
        272
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "isRead": true
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "a53d0df5-dcff-4199-b6e1-fb2027b02da9",
      "name": "markedAsRead11",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3440,
        880
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "isRead": true
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "143742b9-9394-4670-97b7-afe0d2218a8e",
      "name": "markedAsRead12",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3440,
        672
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "isRead": true
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "7225e29b-f0f1-436a-aeb2-2004aa0210b2",
      "name": "markedAsRead13",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        2624,
        1376
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "isRead": true
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "19faa021-8a2b-4715-b6c7-d3b6cc772dc4",
      "name": "aiTagging",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3648,
        -256
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "categories": [
            "AI"
          ]
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "da7eb62a-e13b-4a93-8e37-8d5fafddf7b0",
      "name": "aiTagging8",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3648,
        -96
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "categories": [
            "AI"
          ]
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "173995ab-d7a5-4054-8b37-1a1fac46ec7c",
      "name": "aiTagging9",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3648,
        64
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "categories": [
            "AI"
          ]
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "26e46c24-f812-4436-9c61-36a3bbc8e288",
      "name": "aiTagging10",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3648,
        272
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "categories": [
            "AI"
          ]
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "1661ee15-a89a-4f43-a75f-7544f9663414",
      "name": "aiTagging11",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3648,
        672
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "categories": [
            "AI"
          ]
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "78c041ec-a889-4f09-80ca-2978b6d9dc1f",
      "name": "aiTagging12",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3648,
        880
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "categories": [
            "AI"
          ]
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "a230a00e-c6a1-41c9-ab78-d7751dc10621",
      "name": "aiTagging13",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3648,
        1184
      ],
      "parameters": {
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "update",
        "updateFields": {
          "categories": [
            "AI"
          ]
        }
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "1e026f4a-8c9c-4b44-b54b-a77ac7ec607a",
      "name": "archiveCommercialSpam1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3888,
        -256
      ],
      "parameters": {
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8Hj-AAA=",
          "cachedResultUrl": "https://outlook.office365.com/mail/AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8Hj%2FAAA%3D",
          "cachedResultName": "Commercial/Spam"
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "move"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "3de240eb-19fe-4da5-8a17-92df12e5f438",
      "name": "archiveNewsletter1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3888,
        -96
      ],
      "parameters": {
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8HkCAAA=",
          "cachedResultUrl": "https://outlook.office365.com/mail/AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8HkCAAA%3D",
          "cachedResultName": "Newsletter"
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "move"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "131507af-9834-4d9d-99a1-483dd2abc7a1",
      "name": "archiveNotifications1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3888,
        64
      ],
      "parameters": {
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8Hj9AAA=",
          "cachedResultUrl": "https://outlook.office365.com/mail/AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8Hj9AAA%3D",
          "cachedResultName": "Notifications"
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "move"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "39089d40-6500-4b42-a14a-4557e2e96ebc",
      "name": "archiveEvent1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3888,
        272
      ],
      "parameters": {
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABEWx9nAAA=",
          "cachedResultUrl": "https://outlook.office365.com/mail/AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABEWx9nAAA%3D",
          "cachedResultName": "Event"
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "move"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "96d2927c-b9ea-49cd-af3b-8625781682c1",
      "name": "archiveInternal1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3888,
        672
      ],
      "parameters": {
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8Hj_AAA=",
          "cachedResultUrl": "https://outlook.office365.com/mail/AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8Hj_AAA%3D",
          "cachedResultName": "Internal"
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "move"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "23a5733b-13cc-427e-ad80-4bd00b1c5122",
      "name": "archiveUrgent1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3888,
        880
      ],
      "parameters": {
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8HkDAAA=",
          "cachedResultUrl": "https://outlook.office365.com/mail/AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8HkDAAA%3D",
          "cachedResultName": "Urgent"
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "move"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "b10cbaee-3c8b-4058-9c1a-12a5b021746e",
      "name": "archiveNotifications7",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        3888,
        1184
      ],
      "parameters": {
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8HkAAAA=",
          "cachedResultUrl": "https://outlook.office365.com/mail/AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABl8HkAAAA%3D",
          "cachedResultName": "Other"
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "move"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "1dff237e-a27b-4945-b221-32884a3141fa",
      "name": "Microsoft Excel 3651",
      "type": "n8n-nodes-base.microsoftExcel",
      "position": [
        4144,
        512
      ],
      "parameters": {
        "options": {},
        "fieldsUi": {
          "values": [
            {
              "column": "Id",
              "fieldValue": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
            },
            {
              "column": "Date",
              "fieldValue": "={{ $('Microsoft Outlook Trigger1').item.json.receivedDateTime }}"
            },
            {
              "column": "Subject",
              "fieldValue": "={{ $('Edit Fields6').item.json.subject }}"
            },
            {
              "column": "Sender",
              "fieldValue": "={{ $('Edit Fields6').item.json.sender_name }}"
            },
            {
              "column": "Body",
              "fieldValue": "={{ $('Edit Fields6').item.json.bodyPreview }}"
            },
            {
              "column": "Reply",
              "fieldValue": "={{ $('Brand Voice6').item.json.text }}"
            }
          ]
        },
        "resource": "worksheet",
        "workbook": {
          "__rl": true,
          "mode": "list",
          "value": "01GHNPNYAW5PVLWCXLVJEYBVJP3E67MFDL",
          "cachedResultUrl": "https://marq365-my.sharepoint.com/personal/didac_marqgroup_com/_layouts/15/Doc.aspx?sourcedoc=%7BBBEAEB16-EB0A-49AA-80D5-2FD93DF6146B%7D&file=Email%20Automator.xlsx&action=default&mobileredirect=true&DefaultItemOpen=1",
          "cachedResultName": "Email Automator"
        },
        "operation": "append",
        "worksheet": {
          "__rl": true,
          "mode": "list",
          "value": "{+1234567890+1234567890}",
          "cachedResultUrl": "https://marq365-my.sharepoint.com/personal/didac_marqgroup_com/_layouts/15/Doc.aspx?sourcedoc=%7BBBEAEB16-EB0A-49AA-80D5-2FD93DF6146B%7D&file=Email%20Automator.xlsx&action=default&mobileredirect=true&DefaultItemOpen=1&activeCell=Sheet1!A1",
          "cachedResultName": "Sheet1"
        }
      },
      "credentials": {
        "microsoftExcelOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "bbdd1973-6239-47bd-a078-f95662bba6b3",
      "name": "Edit Fields4",
      "type": "n8n-nodes-base.set",
      "position": [
        1696,
        272
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "89f17f31-62d3-4012-967c-ca4340c57d5f",
              "name": "id",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.id }}"
            },
            {
              "id": "15e73bb7-c6b0-4050-b39e-6f465273e2f7",
              "name": "subject",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.subject }}"
            },
            {
              "id": "fa5873e7-d9fd-4076-b214-127eec66d4c6",
              "name": "bodyPreview",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.bodyPreview }}"
            },
            {
              "id": "68b0b272-50bc-4008-9201-b9830c1c2c2b",
              "name": "from",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.from }}\n"
            },
            {
              "id": "38732e6a-e1ba-4b46-a624-956bacd089ca",
              "name": "sender_name",
              "type": "string",
              "value": "={{ $(\"Information Extractor1\").first().json.output.sender_name }}"
            }
          ]
        }
      },
      "typeVersion": 3.4,
      "alwaysOutputData": true
    },
    {
      "id": "a29122f6-f6b0-4bbd-af30-4f942d9a0fea",
      "name": "Edit Fields5",
      "type": "n8n-nodes-base.set",
      "position": [
        1696,
        672
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "89f17f31-62d3-4012-967c-ca4340c57d5f",
              "name": "id",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.id }}"
            },
            {
              "id": "15e73bb7-c6b0-4050-b39e-6f465273e2f7",
              "name": "subject",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.subject }}"
            },
            {
              "id": "fa5873e7-d9fd-4076-b214-127eec66d4c6",
              "name": "bodyPreview",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.bodyPreview }}"
            },
            {
              "id": "68b0b272-50bc-4008-9201-b9830c1c2c2b",
              "name": "from",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.from }}\n"
            },
            {
              "id": "38732e6a-e1ba-4b46-a624-956bacd089ca",
              "name": "sender_name",
              "type": "string",
              "value": "={{ $(\"Information Extractor1\").first().json.output.sender_name }}"
            }
          ]
        }
      },
      "typeVersion": 3.4,
      "alwaysOutputData": true
    },
    {
      "id": "dc2697dc-deca-47c4-be02-995e9d22a3e6",
      "name": "Edit Fields6",
      "type": "n8n-nodes-base.set",
      "position": [
        1696,
        880
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "89f17f31-62d3-4012-967c-ca4340c57d5f",
              "name": "id",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.id }}"
            },
            {
              "id": "15e73bb7-c6b0-4050-b39e-6f465273e2f7",
              "name": "subject",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.subject }}"
            },
            {
              "id": "fa5873e7-d9fd-4076-b214-127eec66d4c6",
              "name": "bodyPreview",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.bodyPreview }}"
            },
            {
              "id": "68b0b272-50bc-4008-9201-b9830c1c2c2b",
              "name": "from",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.from }}\n"
            },
            {
              "id": "38732e6a-e1ba-4b46-a624-956bacd089ca",
              "name": "sender_name",
              "type": "string",
              "value": "={{ $(\"Information Extractor1\").first().json.output.sender_name }}"
            }
          ]
        }
      },
      "typeVersion": 3.4,
      "alwaysOutputData": true
    },
    {
      "id": "d185b4b2-8ac4-441a-a294-280d565e122c",
      "name": "Edit Fields7",
      "type": "n8n-nodes-base.set",
      "position": [
        1696,
        1184
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "89f17f31-62d3-4012-967c-ca4340c57d5f",
              "name": "id",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.id }}"
            },
            {
              "id": "15e73bb7-c6b0-4050-b39e-6f465273e2f7",
              "name": "subject",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.subject }}"
            },
            {
              "id": "fa5873e7-d9fd-4076-b214-127eec66d4c6",
              "name": "bodyPreview",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.bodyPreview }}"
            },
            {
              "id": "68b0b272-50bc-4008-9201-b9830c1c2c2b",
              "name": "from",
              "type": "string",
              "value": "={{ $(\"Microsoft Outlook Trigger1\").first().json.from }}\n"
            },
            {
              "id": "38732e6a-e1ba-4b46-a624-956bacd089ca",
              "name": "sender_name",
              "type": "string",
              "value": "={{ $(\"Information Extractor1\").first().json.output.sender_name }}"
            }
          ]
        }
      },
      "typeVersion": 3.4,
      "alwaysOutputData": true
    },
    {
      "id": "42af394f-6d7f-4865-9b26-ed5ce26c70f5",
      "name": "eventChecker1",
      "type": "n8n-nodes-base.microsoftOutlookTool",
      "position": [
        1888,
        512
      ],
      "parameters": {
        "filters": {},
        "resource": "event",
        "calendarId": {
          "__rl": true,
          "mode": "list",
          "value": "AQMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhAGZlNWVmMjAARgAAA8n26TwDABdHscBFA0WDSnUHADWSJOu-VQtPvILG3OfED10AAAIBBgAAADWSJOu-VQtPvILG3OfED10AAAJ2rwAAAA==",
          "cachedResultName": "Calendar"
        },
        "fromAllCalendars": false
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "151946b6-7078-47e6-bbf6-afea6c8e6941",
      "name": "eventCreator1",
      "type": "n8n-nodes-base.microsoftOutlookTool",
      "position": [
        2000,
        512
      ],
      "parameters": {
        "subject": "=Didac and {{ $fromAI('sendersName') }} meeting.",
        "resource": "event",
        "operation": "create",
        "calendarId": {
          "__rl": true,
          "mode": "list",
          "value": "AQMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhAGZlNWVmMjAARgAAA8n26TwDABdHscBFA0WDSnUHADWSJOu-VQtPvILG3OfED10AAAIBBgAAADWSJOu-VQtPvILG3OfED10AAAJ2rwAAAA==",
          "cachedResultName": "Calendar"
        },
        "endDateTime": "={{ $fromAI('meeting_finish') }} ",
        "startDateTime": "={{ $fromAI('meeting_start') }} ",
        "additionalFields": {}
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "3c747bbb-5fcd-47cc-9b72-43a2013384b5",
      "name": "Window Buffer Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1696,
        512
      ],
      "parameters": {
        "sessionKey": "={{ $(\"Microsoft Outlook Trigger1\").first().json.id }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "a2860e41-a0b4-481a-a41d-69964c30c4a4",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1872,
        272
      ],
      "parameters": {
        "text": "=Subject:{{ $json.subject }}\n\nSender:{{ $json.from }}\n\nBody:{{ $json.bodyPreview }}\n\nEmail ID:{{ $json.id }}",
        "options": {
          "systemMessage": "=You are an email scheduling assistant. Based on the received email, check my availability and propose an appropriate response. \nAim to get a specific time, rather than just a day. When checking my availability, make sure that there's enough time in between meetings.\nIf I'm not available, ALWAYS propose a new time based on my availability. When proposing a new time, always leave at least 15 minutes buffer from previous meeting. Always suggest two available options. Never booked appoinments outside working hours, only suggest times between 8:30 am and 5:00 pm.\n\n- Use the tool \"eventChecker\" to check available times.\n- Use the tool \"eventCreator\" to create the event.\n\n\n###\nExample Email:\n\n- Sender\nHi Didac,\n\nAre you free for a quick catch up tomorrow at 3pm?\n\n- \"eventChecker\" tool\n\nOption 1: *\"eventChecker\" tool is used to check availability. If not free, will suggest 2 available times on the same day if possible*\nOption 2: *\"eventChecker\" tool is used to check availability. Confirmed time is free. *\"eventCreator\"* tool is called and the meeting is scheduled at the suggested time.\n\n- Response to option 1\nHi Sender,\n\nUnfortunately I'm not available at this time, but Im available at 2pm and 4pm that day. Let me know if these work for you.\n\nRegards,\nDidac\n\n- Response to option 2\nHi Sender,\n\nThat works for me. I have scheduled a meeting for tomorrow at the suggested time.\n\nRegards,\nDidac\n\n\n####\n\nToday date and time is: {{ $now.toISO() }}."
        },
        "promptType": "define"
      },
      "typeVersion": 1.7,
      "alwaysOutputData": false
    },
    {
      "id": "a76a2ecf-5ce6-4c15-9c35-98d5cde4960d",
      "name": "Brand Voice4",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2192,
        272
      ],
      "parameters": {
        "text": "=Please re write the below email using my own words and style. Only output the email content and nothing else like comments:\n\n{{ $json.output }}\n\nAlways write the following at the bottom of the emails:\n\nRegards,\nDidac",
        "messages": {
          "messageValues": [
            {
              "message": "You are Didac's email writer. Write in his direct, concise, professional style. Use short sentences (8-15 words). Include phrases like 'Just checking', 'For your awareness', 'Let me know'. Be action-oriented and polite but firm."
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "4ab0b941-6aa0-43c5-8761-60a276a29d3c",
      "name": "Classifier2",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        2544,
        272
      ],
      "parameters": {
        "options": {},
        "inputText": "={{ $json.message.content }}",
        "categories": {
          "categories": [
            {
              "category": "Confirming",
              "description": "The email was confirming our previously suggested times."
            },
            {
              "category": "Suggesting",
              "description": "The email was asking for availability and we are providing available times."
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b54dbe73-e0e4-444e-b595-95de3a357586",
      "name": "proposeEvent1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        2928,
        432
      ],
      "parameters": {
        "message": "={{ $json.message.content }}",
        "options": {},
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $(\"Edit Fields4\").item.json.id }}"
        },
        "operation": "reply"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "8890d4fe-360c-4743-b8a3-02bbef649c65",
      "name": "confirmEvent1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        2928,
        272
      ],
      "parameters": {
        "folderId": {
          "__rl": true,
          "mode": "id",
          "value": "=AAMkADIzNDc5ZjA0LTIwYWYtNDA4Mi1hZTBjLTU4Y2FhZmU1ZWYyMAAuAAAAAADJ9uk8AwAXR7HARQNFg0p1AQA1kiTrv1ULT7yCxtznxA9dAABEWx9nAAA"
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "move"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "d0bdb6c3-2a23-4735-afa1-8206b5bc03cd",
      "name": "emailReplier1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1872,
        672
      ],
      "parameters": {
        "text": "=Subject:{{ $json.subject }}\n\nSender:{{ $json.from }}\n\nBody:{{ $json.bodyPreview }}\n\nEmail ID:{{ $json.id }}",
        "messages": {
          "messageValues": [
            {
              "message": "You are Didac's email response assistant. Generate professional, concise replies. Prioritize: 1) Information requests 2) Clarification requests 3) Task delegation 4) General acknowledgement. Be direct, action-oriented, polite but firm. Use 'Just checking', 'For your awareness', 'Let me know' where appropriate. Output ONLY the email reply text."
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "ac3f2f2b-11a3-4035-9445-4af386da3b86",
      "name": "Brand Voice5",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2192,
        672
      ],
      "parameters": {
        "text": "=Please re write the below email using my own words and style. Only output the email content and nothing else like comments:\n\n{{ $json.text }}\n\nAlways write the following at the bottom of the emails:\n\nRegards,\nDidac",
        "messages": {
          "messageValues": [
            {
              "message": "You are Didac's email writer. Write in his direct, concise, professional style. Use short sentences (8-15 words). Include phrases like 'Just checking', 'For your awareness', 'Let me know'. Be action-oriented and polite but firm."
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "ceda1acb-e101-4f25-859f-f322eca23ba0",
      "name": "draftReply1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        2928,
        672
      ],
      "parameters": {
        "message": "={{ $json.text }}",
        "options": {
          "saveAsDraft": true
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Microsoft Outlook Trigger1').item.json.id }}"
        },
        "operation": "reply"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "5de978f1-48c5-497a-8d82-bc0653b41e5e",
      "name": "urgentReplier1",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1872,
        880
      ],
      "parameters": {
        "text": "=Subject:{{ $json.subject }}\n\nSender:{{ $json.from }}\n\nBody:{{ $json.bodyPreview }}\n\nEmail ID:{{ $json.id }}",
        "messages": {
          "messageValues": [
            {
              "message": "You handle URGENT emails. Generate professional, prompt replies acknowledging urgency. 1) Immediate acknowledgement 2) Provide info if available, otherwise state timeframe 3) For unclear requests, ask for clarification quickly 4) Commit to specific timeframe. Be direct, action-oriented. Prioritize phrases showing urgency: 'I'll look into this immediately', 'I'm on it', 'I'll get back to you ASAP'. Output ONLY the email reply text. No placeholders."
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "aa8f604f-631e-4b9a-a2a7-d2b795caeb34",
      "name": "Brand Voice6",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2192,
        880
      ],
      "parameters": {
        "text": "=Please re write the below email using my own words and style. Only output the email content and nothing else like comments:\n\n{{ $json.text }}\n\nAlways write the following at the bottom of the emails:\n\nRegards,\nDidac",
        "messages": {
          "messageValues": [
            {
              "message": "You are Didac's email writer. Write in his direct, concise, professional style. Use short sentences (8-15 words). Include phrases like 'Just checking', 'For your awareness', 'Let me know'. Be action-oriented and polite but firm."
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "1b9178d6-4997-4d69-b2e2-41384ba0776d",
      "name": "Slack1",
      "type": "n8n-nodes-base.slack",
      "position": [
        2624,
        736
      ],
      "parameters": {
        "text": "=Hey! Heads up, it seems you got an urgent message in your inbox. Check it out!\n\nSender:{{ $('Microsoft Outlook Trigger1').item.json.from }} ({{ $('Information Extractor1').item.json.output.sender_name }})\n\nSubject:{{ $('Microsoft Outlook Trigger1').item.json.subject }}\n\nBody:{{ $('Microsoft Outlook Trigger1').item.json.bodyPreview }}\n\n(I drafted you a response, check it out and click send if everythiong looks good)",
        "user": {
          "__rl": true,
          "mode": "list",
          "value": "U060FTJ71C7",
          "cachedResultName": "didac"
        },
        "select": "user",
        "otherOptions": {},
        "authentication": "oAuth2"
      },
      "credentials": {
        "slackOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "1fd30592-e4ea-4ad8-a777-b8951055f15d",
      "name": "Microsoft Outlook1",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        2624,
        880
      ],
      "parameters": {
        "message": "={{ $json.text }}",
        "options": {},
        "subject": "=RE: {{ $('Microsoft Outlook Trigger1').item.json.subject }}",
        "operation": "sendAndWait",
        "responseType": "freeText",
        "toRecipients": "={{ $('Microsoft Outlook Trigger1').item.json.from }}"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "6b627129-426b-4d14-9a07-e176c4729753",
      "name": "Check Feedback1",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        3136,
        880
      ],
      "parameters": {
        "options": {},
        "inputText": "={{ $json.data.text }}",
        "categories": {
          "categories": [
            {
              "category": "Approved",
              "description": "The email has been reviewed and accepted as-is. Example: 'Looks good', 'Go ahead and send it', 'Approved', 'No changes needed'."
            },
            {
              "category": "Declined",
              "description": "The email needs modifications. Example: 'Can we tweak this part?', 'Needs some changes', 'I'd like to reword this', 'Don't mention that we can't do that'."
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b18c7f73-4cf3-4dea-8685-0794276edc60",
      "name": "Classifier3",
      "type": "@n8n/n8n-nodes-langchain.textClassifier",
      "position": [
        1872,
        1184
      ],
      "parameters": {
        "options": {},
        "inputText": "={{ $json.message.content }}",
        "categories": {
          "categories": [
            {
              "category": "Requires reply",
              "description": "The email requires a response or action."
            },
            {
              "category": "Doesn't require reply",
              "description": "The email doesn't need a response."
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ed2428aa-8d0d-4340-9196-73280cc5cf85",
      "name": "Brand Voice7",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2192,
        1184
      ],
      "parameters": {
        "text": "=Please re write the below email using my own words and style. Only output the email content and nothing else like comments:\n\n{{ $json.output }}\n\nAlways write the following at the bottom of the emails:\n\nRegards,\nDidac",
        "messages": {
          "messageValues": [
            {
              "message": "You are Didac's email writer. Write in his direct, concise, professional style. Use short sentences (8-15 words). Include phrases like 'Just checking', 'For your awareness', 'Let me know'. Be action-oriented and polite but firm."
            }
          ]
        },
        "promptType": "define"
      },
      "typeVersion": 1.5
    },
    {
      "id": "f5f56abd-3ff6-4a53-bb2b-d52663604476",
      "name": "draftReply3",
      "type": "n8n-nodes-base.microsoftOutlook",
      "position": [
        2624,
        1184
      ],
      "parameters": {
        "message": "={{ $json.text }}",
        "options": {
          "saveAsDraft": true
        },
        "messageId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $(\"Edit Fields5\").item.json.id }}"
        },
        "operation": "reply"
      },
      "credentials": {
        "microsoftOutlookOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "99a1acbe-71e4-4f3d-8b13-b24c63c79a2b",
      "name": "OpenRouter Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1488,
        1104
      ],
      "parameters": {
        "model": "openai/gpt-5-mini",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "d3f3ca72-4355-4269-a3e1-cf7d63276758",
      "name": "OpenRouter Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        2944,
        1024
      ],
      "parameters": {
        "model": "openai/gpt-5-mini",
        "options": {}
      },
      "credentials": {
        "openRouterApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "AI Agent1": {
      "main": [
        [
          {
            "node": "Brand Voice4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "aiTagging": {
      "main": [
        [
          {
            "node": "archiveCommercialSpam1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "aiTagging8": {
      "main": [
        [
          {
            "node": "archiveNewsletter1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "aiTagging9": {
      "main": [
        [
          {
            "node": "archiveNotifications1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classifier2": {
      "main": [
        [
          {
            "node": "confirmEvent1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "proposeEvent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classifier3": {
      "main": [
        [
          {
            "node": "Brand Voice7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "markedAsRead13",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "aiTagging10": {
      "main": [
        [
          {
            "node": "archiveEvent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "aiTagging11": {
      "main": [
        [
          {
            "node": "archiveInternal1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "aiTagging12": {
      "main": [
        [
          {
            "node": "archiveUrgent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "aiTagging13": {
      "main": [
        [
          {
            "node": "archiveNotifications7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "draftReply1": {
      "main": [
        [
          {
            "node": "markedAsRead12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "draftReply3": {
      "main": [
        [
          {
            "node": "markedAsRead13",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brand Voice4": {
      "main": [
        [
          {
            "node": "Classifier2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brand Voice5": {
      "main": [
        [
          {
            "node": "draftReply1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brand Voice6": {
      "main": [
        [
          {
            "node": "Slack1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Microsoft Outlook1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brand Voice7": {
      "main": [
        [
          {
            "node": "draftReply3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields4": {
      "main": [
        [
          {
            "node": "AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields5": {
      "main": [
        [
          {
            "node": "emailReplier1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields6": {
      "main": [
        [
          {
            "node": "urgentReplier1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields7": {
      "main": [
        [
          {
            "node": "Classifier3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Revise Draft": {
      "main": [
        [
          {
            "node": "Microsoft Outlook1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "archiveEvent1": {
      "main": [
        [
          {
            "node": "Microsoft Excel 3651",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "confirmEvent1": {
      "main": [
        [
          {
            "node": "markedAsRead10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "emailReplier1": {
      "main": [
        [
          {
            "node": "Brand Voice5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "eventChecker1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "eventCreator1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "markedAsRead3": {
      "main": [
        [
          {
            "node": "aiTagging",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "markedAsRead7": {
      "main": [
        [
          {
            "node": "aiTagging8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "markedAsRead9": {
      "main": [
        [
          {
            "node": "aiTagging9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "proposeEvent1": {
      "main": [
        [
          {
            "node": "markedAsRead10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "archiveUrgent1": {
      "main": [
        [
          {
            "node": "Microsoft Excel 3651",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "markedAsRead10": {
      "main": [
        [
          {
            "node": "aiTagging10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "markedAsRead11": {
      "main": [
        [
          {
            "node": "aiTagging12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "markedAsRead12": {
      "main": [
        [
          {
            "node": "aiTagging11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "markedAsRead13": {
      "main": [
        [
          {
            "node": "aiTagging13",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "urgentReplier1": {
      "main": [
        [
          {
            "node": "Brand Voice6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Feedback1": {
      "main": [
        [
          {
            "node": "markedAsRead11",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Revise Draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Virtual Postman1": {
      "main": [
        [
          {
            "node": "markedAsRead3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Fields5",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Fields4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "markedAsRead7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "markedAsRead9",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Fields6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Fields7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "archiveInternal1": {
      "main": [
        [
          {
            "node": "Microsoft Excel 3651",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Microsoft Outlook1": {
      "main": [
        [
          {
            "node": "Check Feedback1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "archiveNewsletter1": {
      "main": [
        [
          {
            "node": "Microsoft Excel 3651",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "archiveNotifications1": {
      "main": [
        [
          {
            "node": "Microsoft Excel 3651",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "archiveNotifications7": {
      "main": [
        [
          {
            "node": "Microsoft Excel 3651",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Information Extractor1": {
      "main": [
        [
          {
            "node": "Virtual Postman1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Information Extractor1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Virtual Postman1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Brand Voice4",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Classifier2",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "emailReplier1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Brand Voice5",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "urgentReplier1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Brand Voice6",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Revise Draft",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Classifier3",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Brand Voice7",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "Check Feedback1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "archiveCommercialSpam1": {
      "main": [
        [
          {
            "node": "Microsoft Excel 3651",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Microsoft Outlook Trigger1": {
      "main": [
        [
          {
            "node": "Information Extractor1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}