{
  "name": "AI-powered WhatsApp customer support for Shopify brands with LLM agents",
  "nodes": [
    {
      "id": "396cc334-cabd-4647-b625-c6d861b59c67",
      "name": "WhatsApp Trigger",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -1776,
        880
      ]
    },
    {
      "id": "8cc9d281-f641-45da-a241-9da9a0b9886c",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        -800,
        848
      ]
    },
    {
      "id": "07e36edb-644a-4abd-a8d6-318d80edfe3c",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -272,
        544
      ]
    },
    {
      "id": "0c00ac3c-4ce8-4c9f-b52c-4e09ffa33e21",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -528,
        544
      ]
    },
    {
      "id": "5c14f15c-020d-4529-bed2-6b63cdad94a9",
      "name": "Get Products from Shopify",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -224,
        1136
      ]
    },
    {
      "id": "f0005249-2e1b-4d2f-8423-b754e4152d9f",
      "name": "Normalize Input",
      "type": "n8n-nodes-base.set",
      "position": [
        -1024,
        880
      ]
    },
    {
      "id": "3d1b7f86-9821-488f-b6bd-aaf38b241f37",
      "name": "Orders Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -416,
        256
      ]
    },
    {
      "id": "f9d42ea8-c632-4864-9f21-0d919f28ee2a",
      "name": "Products Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -416,
        912
      ]
    },
    {
      "id": "c502f75d-cad0-42f7-8d10-bdf782e84d36",
      "name": "Get Customer from Shopify",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1472,
        880
      ]
    },
    {
      "id": "0da409a0-4e94-41b4-b5f6-dc8b6ee54e8f",
      "name": "Customer Details",
      "type": "n8n-nodes-base.set",
      "position": [
        -1248,
        880
      ]
    },
    {
      "id": "c9eeb7fe-162c-43da-b9c7-e353a2458df6",
      "name": "Get Customer Orders",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -128,
        544
      ]
    },
    {
      "id": "0d8eddf9-adcb-45e7-af25-0ae972e9f928",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        0,
        544
      ]
    },
    {
      "id": "b4b475fb-e3d0-4a95-9120-2b5ff9f4abfa",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -64,
        1136
      ]
    },
    {
      "id": "a4aa7f20-2ef5-436a-835a-d0b8e2ad212e",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -400,
        544
      ]
    },
    {
      "id": "78867e2c-05f6-4685-9cd8-edd7af5fd015",
      "name": "Send a message to support",
      "type": "n8n-nodes-base.slack",
      "position": [
        -320,
        1312
      ]
    },
    {
      "id": "87eef063-0bc0-4ba1-ba61-660f511e32e3",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -64,
        1312
      ]
    },
    {
      "id": "1d14573b-ca33-4a59-9a0e-fda3d93e996f",
      "name": "Welcome message",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        -384,
        48
      ]
    },
    {
      "id": "edce7929-b3e4-40c1-85c4-b8e9e523ecb0",
      "name": "Send Order Status",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        80,
        256
      ]
    },
    {
      "id": "eb8c54b5-ad12-401e-a3c2-a2f2d0ee7f6c",
      "name": "Send Products message",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        176,
        912
      ]
    },
    {
      "id": "2345427f-6889-4832-865d-3b836e4aa1b8",
      "name": "No Operation, do nothing1",
      "type": "n8n-nodes-base.noOp",
      "position": [
        400,
        912
      ]
    },
    {
      "id": "89e578a3-e4ea-4586-a390-8db20665734e",
      "name": "No Operation, do nothing2",
      "type": "n8n-nodes-base.noOp",
      "position": [
        288,
        256
      ]
    },
    {
      "id": "545d1354-b7c4-4a2b-bcac-bc772f18a119",
      "name": "No Operation, do nothing3",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -176,
        48
      ]
    },
    {
      "id": "7eaa8330-1b6f-4ee9-a6bf-71895a0c28ec",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1488,
        656
      ],
      "parameters": {
        "width": 352,
        "height": 576,
        "content": "**Get Customer details from shopify** retrieves user information based on their WhatsApp number.\nIt fetches profile and order-related data from Shopify to identify the customer.\nThe details are then n"
      }
    },
    {
      "id": "755da7df-b610-4f08-ab26-f510bef9dc31",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        736
      ],
      "parameters": {
        "width": null,
        "height": 448,
        "content": "**Normalize Input** ensures user queries are cleaned, standardized, and free of noise.  \nIt also categorizes the input, preparing it for accurate intent detection in the next step.  \n"
      }
    },
    {
      "id": "88df567c-28c0-44d0-8075-5aaa795b9f27",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 448,
        "height": 192,
        "content": "### Welcome whatsapp message\n![](https://ik.imagekit.io/tscnqj8zf/welcome.png?updatedAt=1757147294837)\n"
      }
    },
    {
      "id": "c3069b7b-4689-4eea-8ab0-bcce59fdc72a",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        208
      ],
      "parameters": {
        "width": 560,
        "height": 352,
        "content": "### Order status whatsapp message\n![](https://ik.imagekit.io/tscnqj8zf/orders.png?updatedAt=1757147297281)\n"
      }
    },
    {
      "id": "d37a5a15-30af-486a-acb9-fb92f49163a4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        864
      ],
      "parameters": {
        "width": 560,
        "height": 352,
        "content": "### Products Info whatsapp message\n![](https://ik.imagekit.io/tscnqj8zf/products.png?updatedAt=1757147299171)\n"
      }
    },
    {
      "id": "22959921-9aa3-4865-89b8-7a5cc68c4834",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        144,
        1264
      ],
      "parameters": {
        "width": 560,
        "height": 352,
        "content": "### Slack message to Customer support\n![](https://ik.imagekit.io/tscnqj8zf/slackimage.png?updatedAt=1757147311870)\n"
      }
    },
    {
      "id": "1f5a72de-8a8f-46aa-b00c-3bc22ea6180a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1840,
        704
      ],
      "parameters": {
        "width": 272,
        "height": 512,
        "content": "**WhatsApp Trigger** listens for incoming customer messages on WhatsApp.  \nIt captures the text, sender ID, and metadata to initiate the workflow.  \nThis ensures every query received on WhatsApp is pr"
      }
    },
    {
      "id": "24c5a5e5-5623-4f7c-b67c-55015b52378a",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2592,
        368
      ],
      "parameters": {
        "width": 656,
        "height": 1184,
        "content": "# 🚀 Try It Out!\n\nThis n8n template demonstrates how to build an **AI-powered WhatsApp & Shopify Support Copilot**.  \nIt integrates **WhatsApp Business API**, **Shopify API**, and **LLM Agents** to han"
      }
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "Welcome message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Orders Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Products Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a message to support",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Orders Agent": {
      "main": [
        [
          {
            "node": "Send Order Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Products Agent",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Orders Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Products Agent": {
      "main": [
        [
          {
            "node": "Send Products message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Input": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Welcome message": {
      "main": [
        [
          {
            "node": "No Operation, do nothing3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Customer Details": {
      "main": [
        [
          {
            "node": "Normalize Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Get Customer from Shopify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Orders Agent",
            "type": "ai_languageModel",
            "index": 1
          },
          {
            "node": "Products Agent",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Send Order Status": {
      "main": [
        [
          {
            "node": "No Operation, do nothing2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Customer Orders": {
      "ai_tool": [
        [
          {
            "node": "Orders Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Products Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Orders Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send Products message": {
      "main": [
        [
          {
            "node": "No Operation, do nothing1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Orders Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Get Customer from Shopify": {
      "main": [
        [
          {
            "node": "Customer Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Products from Shopify": {
      "ai_tool": [
        [
          {
            "node": "Products Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send a message to support": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Products Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}