{
  "name": "WooCommerce AI post-sales chatbot with GPT-4o, RAG, Google Drive and Telegram",
  "nodes": [
    {
      "id": "25024dde-431b-4dad-b5ed-9be77cdf3db2",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -860,
        420
      ]
    },
    {
      "id": "96139b63-75aa-4d16-91b1-2fe0ca624137",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -520,
        720
      ]
    },
    {
      "id": "f7901f97-50c5-4f56-bae3-21c575aa22cc",
      "name": "get_order",
      "type": "n8n-nodes-base.wooCommerceTool",
      "position": [
        80,
        600
      ]
    },
    {
      "id": "b448fb28-1bba-4743-923f-4198bdea0165",
      "name": "get_orders",
      "type": "n8n-nodes-base.wooCommerceTool",
      "position": [
        180,
        600
      ]
    },
    {
      "id": "4b386cd5-1f42-45b9-bfa6-e8caf50d49b3",
      "name": "get_user",
      "type": "n8n-nodes-base.wooCommerceTool",
      "position": [
        280,
        600
      ]
    },
    {
      "id": "2235e0c5-ad5e-42d3-a6da-19513dcba181",
      "name": "Calculator",
      "type": "@n8n/n8n-nodes-langchain.toolCalculator",
      "position": [
        -400,
        720
      ]
    },
    {
      "id": "e3b8fd50-2f47-4866-acc7-88e819b9d2ce",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -980,
        -500
      ]
    },
    {
      "id": "7ac0573f-fcc0-426e-b412-1f4a1e38b9ee",
      "name": "Create collection",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -680,
        -640
      ]
    },
    {
      "id": "15de11a6-27eb-4431-9105-a7f07f103d44",
      "name": "Refresh collection",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -680,
        -380
      ]
    },
    {
      "id": "aab947f3-3e7f-4068-8183-a6003754dc16",
      "name": "Get folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -460,
        -380
      ]
    },
    {
      "id": "091b9080-eae0-433a-80e6-d1c553b4912b",
      "name": "Download Files",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -240,
        -380
      ]
    },
    {
      "id": "400fcdde-ef42-49bf-807d-e2ed029aae1f",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        160,
        -180
      ]
    },
    {
      "id": "b3f39ac8-ebbc-42c5-8368-2fedd8d133f3",
      "name": "Token Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterTokenSplitter",
      "position": [
        140,
        0
      ]
    },
    {
      "id": "a17ed192-cd39-456d-b35a-ee7d8532fb7c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -700
      ],
      "parameters": {
        "width": 880,
        "height": 220,
        "content": "# STEP 1\n\n## Create Qdrant Collection\nChange:\n- QDRANTURL\n- COLLECTION"
      }
    },
    {
      "id": "ce12df1d-357a-4f8f-91cf-f92c0aa6bcd7",
      "name": "Qdrant Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        0,
        -380
      ]
    },
    {
      "id": "e440121d-6aa8-4cc7-920c-d28d93717d99",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        0,
        -160
      ]
    },
    {
      "id": "c6f89301-3ae0-4068-8279-de149859f6a5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -440
      ],
      "parameters": {
        "width": 620,
        "height": 400,
        "content": "# STEP 2\n\n\n\n\n\n\n\n\n\n\n\n\n## Documents vectorization with Qdrant and Google Drive\nChange:\n- QDRANTURL\n- COLLECTION"
      }
    },
    {
      "id": "7ae502f5-bf12-49bd-afd0-d8ad050c1d8b",
      "name": "Qdrant Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "position": [
        -140,
        960
      ]
    },
    {
      "id": "b3bc247f-7fcb-4c17-8995-ec4ba26b65ee",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -160,
        1140
      ]
    },
    {
      "id": "7c110a8b-5e66-4824-ac9f-a42fabbe3929",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        160,
        960
      ]
    },
    {
      "id": "b9a62833-a124-439b-b6ca-eb6061afa74d",
      "name": "ToS",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        -40,
        780
      ]
    },
    {
      "id": "667e8756-78a6-4cd1-bf24-00af8188fe50",
      "name": "get_tracking",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -240,
        600
      ]
    },
    {
      "id": "305ea876-80b9-45c4-b548-6d1df093bd94",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        560,
        480
      ]
    },
    {
      "id": "4f7547c1-1d21-45f6-a409-09e55c4b9477",
      "name": "Post-Sales Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -540,
        420
      ]
    },
    {
      "id": "a5b49dbf-f041-43ec-b621-a89f65675705",
      "name": "human_assistence",
      "type": "n8n-nodes-base.telegramTool",
      "position": [
        -80,
        600
      ]
    },
    {
      "id": "46110bcd-dae7-4c33-8936-cc4867c9abde",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        240
      ],
      "parameters": {
        "width": 1220,
        "height": 140,
        "content": "# STEP 3\n\n- Add your Telegram CHAT_ID in the \"human_assistance\" tool"
      }
    },
    {
      "id": "9c45d20d-f4d3-4bde-9e3e-749c64a123bb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        240
      ],
      "parameters": {
        "width": 580,
        "height": 200,
        "content": "# STEP 4\n\nThe tracking code request is made through the most popular WooCommerce tracking plugin: \"YITH WooCommerce Order & Shipment Tracking\". The free version can be [downloaded here](https://wordpr"
      }
    },
    {
      "id": "f16ee312-8434-4958-b111-d80384ae869c",
      "name": "Get tracking",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        780,
        480
      ]
    },
    {
      "id": "e5de4ad6-3469-4720-828e-618db5c4f3ae",
      "name": "Set tracking code",
      "type": "n8n-nodes-base.set",
      "position": [
        1020,
        480
      ]
    },
    {
      "id": "b889e33b-5243-4b5b-80ef-023df779e673",
      "name": "GPT 4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -700,
        720
      ]
    },
    {
      "id": "c9863b08-f6aa-4502-85a4-7782a090d532",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1000,
        -1040
      ],
      "parameters": {
        "width": 1400,
        "height": 240,
        "content": "# WooCommerce AI Chatbot Workflow for Post-Sales Support\n\nThis WooCommerce-integrated chatbot is designed to transform post-sales customer support by combining automation and artificial intelligence t"
      }
    }
  ],
  "connections": {
    "ToS": {
      "ai_tool": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "get_user": {
      "ai_tool": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "get_order": {
      "ai_tool": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Calculator": {
      "ai_tool": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get folder": {
      "main": [
        [
          {
            "node": "Download Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_orders": {
      "ai_tool": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "GPT 4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get tracking": {
      "main": [
        [
          {
            "node": "Set tracking code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_tracking": {
      "ai_tool": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Download Files": {
      "main": [
        [
          {
            "node": "Qdrant Vector Store1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Token Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Post-Sales Agent": {
      "main": [
        []
      ]
    },
    "human_assistence": {
      "ai_tool": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "ToS",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Qdrant Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Refresh collection": {
      "main": [
        [
          {
            "node": "Get folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Qdrant Vector Store1",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Qdrant Vector Store": {
      "ai_vectorStore": [
        [
          {
            "node": "ToS",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Post-Sales Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Get tracking",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Create collection",
            "type": "main",
            "index": 0
          },
          {
            "node": "Refresh collection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}