{
  "name": "Auto-generate WhatsApp proposals from voice or text using GPT & APITemplate",
  "nodes": [
    {
      "id": "b08f7df9-8705-46ef-bfc3-c62e56ad34ae",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1040,
        720
      ]
    },
    {
      "id": "226497a2-6aaf-4cdd-945c-e12b24179ed8",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -500,
        500
      ]
    },
    {
      "id": "d930a6b4-1cd9-4ed3-9dcb-6ee266e0d792",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -60,
        500
      ]
    },
    {
      "id": "8a5fa9dd-ee0f-47b7-ba4f-6878e053b569",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        380,
        400
      ]
    },
    {
      "id": "e94eea3e-5179-43f6-8448-276b4b1c683f",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        600,
        400
      ]
    },
    {
      "id": "9a371fec-597b-411d-a745-a188f63239fb",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        600,
        600
      ]
    },
    {
      "id": "cb6185b3-0786-4807-8ac3-148918cec1fb",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -280,
        500
      ]
    },
    {
      "id": "dc27fe1b-982e-43f0-9d98-f6cf8e25dac7",
      "name": "Edit Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        820,
        500
      ]
    },
    {
      "id": "032be1d4-81be-4d8d-bf9b-936c11514f38",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1160,
        720
      ]
    },
    {
      "id": "803d923a-f626-4843-8a15-4dd94f13a843",
      "name": "WhatsApp Business Cloud",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        160,
        420
      ]
    },
    {
      "id": "99b5abb9-ef8d-44d1-8051-271c4dbf2fc6",
      "name": "Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        1280,
        720
      ]
    },
    {
      "id": "71a9f991-8d0e-4adf-b8dc-524a58d4b0d6",
      "name": "Get Info",
      "type": "n8n-nodes-base.airtableTool",
      "position": [
        1400,
        720
      ]
    },
    {
      "id": "1d108129-b43a-4d6c-b35d-318ea021a2ce",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1140,
        500
      ]
    },
    {
      "id": "cc77dec4-6a6a-4244-9634-ae8fcec4968b",
      "name": "APITemplate.io",
      "type": "n8n-nodes-base.apiTemplateIo",
      "position": [
        1600,
        500
      ]
    },
    {
      "id": "d58d1509-ddad-42d4-bb4c-ebf846b6baa4",
      "name": "WhatsApp Business Cloud2",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1820,
        500
      ]
    },
    {
      "id": "1759c898-2edc-4567-86b8-2cd339633910",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -60
      ],
      "parameters": {
        "width": 1600,
        "height": 1140,
        "content": "## 🧩 Part 1: Message Intake & Transcription (Voice + Text)\n# Detect if the incoming WhatsApp message is a voice note or a text message, extract and prepare the content for analysis.\n\nModules:\n\nWhatsAp"
      }
    },
    {
      "id": "60a6f25a-94b9-4ded-bd3a-2a73e2db4397",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1000,
        -60
      ],
      "parameters": {
        "width": 540,
        "height": 1140,
        "content": "## 🤖 Part 2: AI-Powered Proposal Drafting\n# Analyze the content of the message (voice or text), interpret the user's request, and choose the right service pack.\n\nModules:\n\nAI Agent (Tools Agent) – Int"
      }
    },
    {
      "id": "70845415-5375-480d-b351-ee56df230fda",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1560,
        -60
      ],
      "parameters": {
        "width": 480,
        "height": 1140,
        "content": "## 📤 Part 3: Proposal Generation & Delivery\n# Automatically create a tailored proposal in PDF format and send it via WhatsApp.\n\nModules:\n\nAPITemplate.io (create.pdf) – Generates the PDF proposal using"
      }
    },
    {
      "id": "c2e0a6d1-178e-4479-b66a-e6f7e0c7afa1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        1120
      ],
      "parameters": {
        "width": 2680,
        "height": 3600,
        "content": "## 📘 Voice2Propal – Smart WhatsApp Proposal Generator (Voice & Text)\nModule-by-Module Setup Guide\n# This guide breaks down the automation flow used to transcribe WhatsApp voice messages (or read text "
      }
    }
  ],
  "connections": {
    "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
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "APITemplate.io",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Info": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "APITemplate.io": {
      "main": [
        [
          {
            "node": "WhatsApp Business Cloud2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Business Cloud": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Business Cloud2": {
      "main": [
        []
      ]
    }
  }
}