{
  "name": "AI-powered WhatsApp support bot with ticket creation for Google Sheets",
  "nodes": [
    {
      "id": "c5b15d1f-3f07-4075-83d6-e9b393a20a16",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        1344,
        720
      ]
    },
    {
      "id": "91546766-7a95-4b59-8d13-e4b970b28e88",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1776,
        720
      ]
    },
    {
      "id": "b4a7917b-a9e6-4076-9aad-efe7cc4d72c5",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        1104,
        -368
      ]
    },
    {
      "id": "f8d14cc9-8eb6-4fc6-9ffc-9c916738b09d",
      "name": "XML",
      "type": "n8n-nodes-base.xml",
      "position": [
        1856,
        -368
      ]
    },
    {
      "id": "a0af59c0-9c5a-4e4a-8654-fd4546224646",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1696,
        -368
      ]
    },
    {
      "id": "5ebd8d66-9d86-400e-b601-7fa2e0eb40c0",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        2000,
        -368
      ]
    },
    {
      "id": "7dd826d4-a44e-4cf0-b85f-d23410d6a84d",
      "name": "Fetch Page HTML",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2736,
        -432
      ]
    },
    {
      "id": "ed14bf13-5e46-4465-b93b-0cf8b1cbcc16",
      "name": "HTML",
      "type": "n8n-nodes-base.html",
      "position": [
        2736,
        -624
      ]
    },
    {
      "id": "add88ee7-7e17-4c34-a539-7b727e57c3a9",
      "name": "Loop Over Pages",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2544,
        -528
      ]
    },
    {
      "id": "ef4fcd5d-5fa5-4d75-af9c-58c4f559d7a3",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2896,
        -432
      ]
    },
    {
      "id": "fd7d2d87-8f73-4ce8-8788-b7ee3c983a83",
      "name": "Split Pages URLs",
      "type": "n8n-nodes-base.code",
      "position": [
        1696,
        -544
      ]
    },
    {
      "id": "81444721-dcc0-41dc-91f0-5c71f04e3033",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        3296,
        -208
      ]
    },
    {
      "id": "a986e0b4-c032-4335-9c9b-c56197f9fbf7",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        3488,
        0
      ]
    },
    {
      "id": "5e9546d6-b63e-4db8-8ccf-1580dd389079",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1840,
        928
      ]
    },
    {
      "id": "a79d3e2d-b7c6-401b-a449-9a46a7d65f43",
      "name": "Pinecone (Retrieve Info)",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        2032,
        928
      ]
    },
    {
      "id": "3bef0066-c5f8-420a-8064-ed0311b03a97",
      "name": "Company Info",
      "type": "n8n-nodes-base.set",
      "position": [
        1568,
        720
      ]
    },
    {
      "id": "40eb17ab-e6cd-4a88-8842-de528839a47e",
      "name": "Extract Text",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        2512,
        32
      ]
    },
    {
      "id": "51d7cd78-8fb6-43cf-af33-460105ea6185",
      "name": "Extract PDF",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        2512,
        -128
      ]
    },
    {
      "id": "673ce2d3-e67b-4d19-9d2b-16817d543b1a",
      "name": "Select Text",
      "type": "n8n-nodes-base.set",
      "position": [
        2704,
        32
      ]
    },
    {
      "id": "3f4379fb-1ee1-45a2-8038-41150aa0819d",
      "name": "PDF or TXT",
      "type": "n8n-nodes-base.switch",
      "position": [
        2304,
        -48
      ]
    },
    {
      "id": "15a0a6a4-302d-45e4-af7c-72b21efc59dc",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        2192,
        -528
      ]
    },
    {
      "id": "9be77a2b-5508-414b-92a1-e4c3178cc160",
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        2336,
        -528
      ]
    },
    {
      "id": "1ccd6382-e370-47f7-902a-bc9ecf7f1ac6",
      "name": "Loop Over Files",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2080,
        -192
      ]
    },
    {
      "id": "c55ec9ad-9cf9-4813-a1cb-5a5bc8844469",
      "name": "Switch1",
      "type": "n8n-nodes-base.switch",
      "position": [
        1376,
        -384
      ]
    },
    {
      "id": "907ad368-9129-4d81-acbd-ad7d48de0787",
      "name": "Split_Binary",
      "type": "n8n-nodes-base.code",
      "position": [
        1856,
        -64
      ]
    },
    {
      "id": "05ac9943-f6de-43ab-b9bd-470d39e0db3d",
      "name": "Get tickets",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        2384,
        848
      ]
    },
    {
      "id": "df90fdae-4d8f-43a7-acf9-1c2349b8cf02",
      "name": "Create support tickets",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        2560,
        784
      ]
    },
    {
      "id": "05b6a554-0465-4595-821a-eac544c98b51",
      "name": "Send a message in Gmail",
      "type": "n8n-nodes-base.gmailTool",
      "position": [
        1856,
        1200
      ]
    },
    {
      "id": "6d27f310-28e3-4698-b09c-d924e5d77b4a",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1664,
        928
      ]
    },
    {
      "id": "53eb3e5f-8a73-4e8d-ab6e-840eb196f61d",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2112,
        1120
      ]
    },
    {
      "id": "e6a670ff-1815-44f7-ad82-99a4ea356ebb",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        3280,
        16
      ]
    },
    {
      "id": "ac031d5a-ed46-4c36-8213-734a08fc2c1f",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        1344,
        544
      ]
    },
    {
      "id": "77349f3e-1292-432f-822a-4ca1d0b4a20d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        -688
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "29fe4f2c-eed7-4e14-9f89-53e7bf689eaf",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        432
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0bbf9a71-f76d-49c5-8552-ae7b34dd1798",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        -688
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "XML": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "HTML": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Pages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch1": {
      "main": [
        [
          {
            "node": "Split Pages URLs",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Split_Binary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF or TXT": {
      "main": [
        [
          {
            "node": "Extract PDF",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract PDF": {
      "main": [
        [
          {
            "node": "Select Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get tickets": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Select Text": {
      "main": [
        [
          {
            "node": "Loop Over Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Info": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Text": {
      "main": [
        [
          {
            "node": "Loop Over Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "XML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split_Binary": {
      "main": [
        [
          {
            "node": "Loop Over Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Page HTML": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Files": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "PDF or TXT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Pages": {
      "main": [
        [
          {
            "node": "HTML",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fetch Page HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Pages URLs": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Company Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone (Retrieve Info)",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Loop Over Pages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Switch1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Create support tickets": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send a message in Gmail": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone (Retrieve Info)": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Company Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}