{
  "name": "Manage emails via WhatsApp with Gmail, GPT and voice recognition",
  "nodes": [
    {
      "id": "85a2e149-585b-485b-bcfc-0b4097193e39",
      "name": "Email Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2480,
        -3100
      ]
    },
    {
      "id": "8b3fbab7-d5f4-4ab9-9468-e492586c5d2e",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        2200,
        -2680
      ]
    },
    {
      "id": "eefaed16-798f-4060-9be2-9b527ecd4a56",
      "name": "Create Draft",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        2360,
        -2680
      ]
    },
    {
      "id": "5b47751d-88f0-4e7c-aecb-df220f672b08",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2040,
        -2680
      ]
    },
    {
      "id": "67d7f391-46ba-43ba-b988-35a68b46acdd",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        1660,
        -3860
      ]
    },
    {
      "id": "05fa762a-94e2-49cb-8236-5d12dfa046cd",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1980,
        -3860
      ]
    },
    {
      "id": "d3bbad47-a4b0-4bc0-a807-adffb4914bde",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2360,
        -3940
      ]
    },
    {
      "id": "2451cc94-89b3-4163-a278-ef54c3302ec6",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2540,
        -3940
      ]
    },
    {
      "id": "12942040-c126-4ce3-8549-9f0f0c62cf46",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        2500,
        -3760
      ]
    },
    {
      "id": "74d29419-8fe1-4d68-84f7-1584e71abc22",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1820,
        -3860
      ]
    },
    {
      "id": "b49b0f86-49bf-4e22-afc3-b13639e34c3d",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        2720,
        -3760
      ]
    },
    {
      "id": "49837ff2-bb28-47fe-97d4-6f6d2840586a",
      "name": "WhatsApp Business Cloud1",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1940,
        -1680
      ]
    },
    {
      "id": "86e22c41-98a6-400f-8945-afd724f05c14",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1860,
        -2680
      ]
    },
    {
      "id": "4b0530f5-abfc-430c-915e-482dca9cc932",
      "name": "WhatsApp Business Cloud",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2180,
        -3940
      ]
    },
    {
      "id": "2e755031-6f6a-4280-bf13-4fc5cc1ccbe4",
      "name": "OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1920,
        -1900
      ]
    },
    {
      "id": "a9a3bf53-ea40-4206-9f54-159f96db2f79",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        2160,
        -1900
      ]
    },
    {
      "id": "32005f45-3bb2-4da0-887a-b89fbe49a7ba",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1640,
        -1880
      ]
    },
    {
      "id": "cec9cff4-b04b-4858-a46c-1caa8e2cc8a2",
      "name": "WhatsApp Business Cloud2",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2400,
        -1900
      ]
    },
    {
      "id": "2c9dd33c-6c67-468a-a5bb-16076b08d735",
      "name": "WhatsApp Business Cloud3",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2640,
        -1900
      ]
    },
    {
      "id": "e530836b-5977-4810-a684-4d4d71bd82c3",
      "name": "Get Email",
      "type": "n8n-nodes-base.airtableTool",
      "position": [
        2520,
        -2680
      ]
    },
    {
      "id": "60875323-4791-4782-a7af-855400619f1b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        -4460
      ],
      "parameters": {
        "width": 1280,
        "height": 920,
        "content": "## 🟫  Part 1: WhatsApp Message Intake & Voice Transcription\n# Reception WhatsApp & Transcription vocale\n\n🔧 Main Modules:\nWhatsApp Trigger: Listens for new incoming messages.\n\nSplit Out: Breaks down in"
      }
    },
    {
      "id": "b1172ad4-92fe-4a6b-97f7-ccce4bd8f56c",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        -2380
      ],
      "parameters": {
        "width": 1280,
        "height": 940,
        "content": "##  🟥 Part 3: Vocal Response & WhatsApp Feedback\n# Vocal Generation & Personalized WhatsApp Return\n\n🔧 Main Modules:\nOpenAI (Text-to-Voice logic): Generates a personalized summary or confirmation messa"
      }
    },
    {
      "id": "227b5da7-2ffc-4bf0-ba34-f4fbe1f61297",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        -3540
      ],
      "parameters": {
        "width": 1280,
        "height": 1160,
        "content": "## 🟩 Part 2: Smart Email Agent – Read, Draft, Respond\n# Email AI Agent – Send, Draft, Reply...\n\n🔧 Main Modules:\nEmail Agent: Core logic and orchestration of all email-related actions.\n\nOpenAI Chat Mod"
      }
    },
    {
      "id": "98b9f159-67e7-421b-a7df-9be564db9db4",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2900,
        -4460
      ],
      "parameters": {
        "width": 720,
        "height": 3020,
        "content": "## 📘 Smart Email Agent via WhatsApp – Module-by-Module Setup Guide\n# This guide explains how the already-built template works, detailing each step with the required modules and configurations.\n\n🧩 What"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "OpenAI1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "WhatsApp Business Cloud1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "WhatsApp Business Cloud2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "WhatsApp Business Cloud",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI1": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Email": {
      "ai_tool": [
        [
          {
            "node": "Email Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email": {
      "ai_tool": [
        [
          {
            "node": "Email Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email Agent": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Draft": {
      "ai_tool": [
        [
          {
            "node": "Email Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Email Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Email Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Email Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Business Cloud": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Business Cloud1": {
      "main": [
        []
      ]
    },
    "WhatsApp Business Cloud2": {
      "main": [
        [
          {
            "node": "WhatsApp Business Cloud3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}