{
  "name": "WhatsApp group chat with your vector database — no Facebook Business required",
  "nodes": [
    {
      "id": "d817df16-9cdf-4da1-a4d9-618955ca33ba",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -80
      ],
      "parameters": {
        "width": 1218,
        "height": 627,
        "content": "## Load Information from a Google Drive File into a Pinecone Vector Database\nFetch the file from Google Drive, split it into chunks, and insert the chunks into a Pinecone index."
      }
    },
    {
      "id": "55e78874-5611-47a0-8050-5a88d1b8b316",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -20
      ],
      "parameters": {
        "width": 480,
        "height": 145,
        "content": "## Step 1: Connect Your Google Drive  \nFollow the instructions in the official n8n docs to set up your Google Drive credentials: \n👉 [Google Drive Credentials Guide](https://docs.n8n.io/integrations/bu"
      }
    },
    {
      "id": "985c9095-5db4-40ff-afcf-fd28cddc789c",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        320,
        220
      ]
    },
    {
      "id": "e68f329c-903c-497a-a154-088759abf376",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        400,
        340
      ]
    },
    {
      "id": "59bdd73c-2ce0-4445-9f13-08daab0c878e",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        200,
        220
      ]
    },
    {
      "id": "54b62825-fe42-45ff-8312-7b33ee5716b2",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1100,
        900
      ]
    },
    {
      "id": "73afa665-e178-419a-9134-0f7c85cc6c3b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        860,
        920
      ]
    },
    {
      "id": "5d707996-888c-42e2-8b83-8f5d05f9b8fb",
      "name": "Question & Answer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        980,
        680
      ]
    },
    {
      "id": "2ec9a53f-ef3a-4db2-97ca-f1cf92767d25",
      "name": "Respond to Whatsapp Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1320,
        680
      ]
    },
    {
      "id": "63624687-3e24-4ba0-a8e1-590e01bcd616",
      "name": "Prepare chunks",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        680
      ]
    },
    {
      "id": "62cf7766-3262-4f65-8382-4f939e6d91cc",
      "name": "Get top chunks matching query",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        440,
        680
      ]
    },
    {
      "id": "87c3fccf-725e-4c6b-a104-f4d751183ff8",
      "name": "Set max chunks to send to model",
      "type": "n8n-nodes-base.set",
      "position": [
        220,
        680
      ]
    },
    {
      "id": "7d1ca107-b6c5-4f00-ac67-0c171511ccfa",
      "name": "Embeddings OpenAI2",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        440,
        900
      ]
    },
    {
      "id": "7b24f21d-cb06-4136-8215-40267957ee22",
      "name": "Check for individual or group messages",
      "type": "n8n-nodes-base.if",
      "position": [
        -60,
        700
      ]
    },
    {
      "id": "935d9028-7e3b-4410-af8a-80b7470ef84f",
      "name": "Listen to Whatsapp webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -280,
        700
      ]
    },
    {
      "id": "a1002e9d-f2fa-4d26-85b5-8a64e870c77e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        580
      ],
      "parameters": {
        "width": 2034,
        "height": 627,
        "content": "### Chat with Your Vector Database Using a Custom WhatsApp Webhook (with Group Support)\nThis workflow takes incoming WhatsApp messages, embeds the content, retrieves relevant chunks from your vector s"
      }
    },
    {
      "id": "6a8d1f13-b940-42aa-8b86-596294b414f1",
      "name": "Download the file from Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -40,
        0
      ]
    },
    {
      "id": "fdac8257-5a25-4a69-bb08-f133bbe32e4e",
      "name": "Index Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "eefbd2a8-cb76-4762-964a-05843e42ed83",
      "name": "Every minute check if file is updated",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -260,
        0
      ]
    },
    {
      "id": "e43aeb7d-ba75-4c58-8032-0f04082edc42",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        160
      ],
      "parameters": {
        "width": 480,
        "height": 325,
        "content": "## Step 2: Set Up Your Pinecone Vector Database \n1. Log in to your Pinecone account and create an index: \n🚨 Dimensions: 1536\n2. In the workflow, make sure to select this index in **both Pinecone nodes"
      }
    },
    {
      "id": "a2705d7c-c5cd-456f-898d-8845fb0668e2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        520
      ],
      "parameters": {
        "width": 480,
        "height": 205,
        "content": "## Step 3: Connect your WhatsApp to N8N. \n1. Go to https://whaparound.pro/ \n2. Follow the steps to connect WhatsApp number to N8N. \n3. Once connected, come back here and customize the **AI agent's sys"
      }
    },
    {
      "id": "ba3ef38e-d594-4d8d-9860-755cf00e00e1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        760
      ],
      "parameters": {
        "width": 480,
        "height": 345,
        "content": "## Step 4: Test the WhatsApp Integration\n#### One-on-One Testing\n1. Use a different WhatsApp number to send a message to the connected number.\n2. You should receive a reply from the AI based on:\n  ✅ Y"
      }
    },
    {
      "id": "3961d11e-34ae-4090-9b35-2b9ce62b9c13",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1560,
        -20
      ],
      "parameters": {
        "width": 480,
        "height": 645,
        "content": "## 🔑 Key Benefits\n#### 1. No Meta Account Needed\n👉 Works with regular WhatsApp numbers — no Facebook Business setup or official API required.\n\n#### 2. Group Chat Support\n👉 Add the bot to any group. It"
      }
    }
  ],
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Question & Answer",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Prepare chunks": {
      "main": [
        [
          {
            "node": "Question & Answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Index Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Question & Answer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Question & Answer": {
      "main": [
        [
          {
            "node": "Respond to Whatsapp Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI2": {
      "ai_embedding": [
        [
          {
            "node": "Get top chunks matching query",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Index Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Listen to Whatsapp webhook": {
      "main": [
        [
          {
            "node": "Check for individual or group messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get top chunks matching query": {
      "main": [
        [
          {
            "node": "Prepare chunks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set max chunks to send to model": {
      "main": [
        [
          {
            "node": "Get top chunks matching query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Download the file from Google Drive": {
      "main": [
        [
          {
            "node": "Index Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every minute check if file is updated": {
      "main": [
        [
          {
            "node": "Download the file from Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for individual or group messages": {
      "main": [
        [
          {
            "node": "Set max chunks to send to model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}