Skip to main content

AI-powered WhatsApp customer support for Shopify brands with LLM agents

Workflow preview

Workflow preview
100%
AI-powered WhatsApp customer support for Shopify brands with LLM agents preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Powered WhatsApp Customer Support for Shopify Brands This n8n template builds a WhatsApp support copilot that answers order status and product availability from Shopify using LLM "agents," th...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.whatsapptrigger, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.lmchatopenrouter, n8n-nodes-base.httprequesttool, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.httprequest

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ruthwik.

Original n8n.io source

1.1 Workflow description

Title
AI-powered WhatsApp customer support for Shopify brands with LLM agents
Workflow name
AI-powered WhatsApp customer support for Shopify brands with LLM agents

πŸš€ AI-Powered WhatsApp Customer Support for Shopify Brands

This n8n template builds a WhatsApp support copilot that answers order status and product availability from Shopify using LLM "agents," then replies to the customer in WhatsApp or routes to human support.


Use cases

  • "Where is my order?" β†’ live status + tracking link
  • "What are your best-selling T-shirts?" β†’ in-stock sizes & variants
  • Greetings / small talk β†’ welcome message
  • Anything unclear β†’ handoff to support channel

Good to know

  • WhatsApp Business conversations are billed by Meta/Twilio/Exotel; plan accordingly.
  • Shopify Admin API has rate limits (leaky bucket) --- stagger requests.
  • LLM usage incurs token costs; cap max tokens and enable caching where possible.
  • Avoid sending PII to the model; only pass minimal order/product fields.

How it works

  1. WhatsApp Trigger
    Receives an incoming message (e.g., "Where is my order?").

  2. Get Customer from Shopify β†’ Customer Details β†’ Normalize Input
    Looks up the customer by phone, formats the query (lower-case, emoji & punctuation normalization).

  3. Switch (intent router)
    Classifies into welcome, orderStatusQuery, productQuery, or supportQuery.

  4. Welcome path
    Welcome message β†’ polite greeting β†’ (noop placeholder).

  5. Order status path (Orders Agent)

    • Orders Agent (LLM + Memory) interprets the user request and extracts needed fields.
    • Get Customer Orders (HTTP to Shopify) fetches the user's latest order(s).
    • Structured Output Parser cleans the agent's output into a strict schema.
    • Send Order Status (WhatsApp message) returns status, ETA, and tracking link.
  6. Products path (Products Agent)

    • Products Agent (LLM + Memory) turns the ask into a product query.
    • Get Products from Shopify (HTTP) pulls best sellers / inventory & sizes.
    • Structured Output Parser formats name, price, sizes, stock.
    • Send Products message (WhatsApp) sends a tidy, human-readable reply
  7. Support path Send a message to support posts the transcript/context to your agent/helpdesk channel and informs the user a human will respond


How to use

  • Replace the manual/WhatsApp trigger with your live WhatsApp number/webhook.
  • Set env vars/credentials: Shopify domain + Admin API token, WhatsApp provider keys, LLM key (OpenAI/OpenRouter), and (optionally) your support channel webhook.
  • Edit message templates for tone, add your brand name, and localize if needed.
  • Test with samples: "Where is my order?", "Show best sellers", "Hi".

Requirements

  • WhatsApp Business API (Meta/Twilio/Exotel)
  • Shopify store + Admin API access
  • LLM provider (OpenAI/OpenRouter etc.)
  • Slack webhook for human handoff

Prerequisites

  • Active WhatsApp Business Account connected via API provider (Meta, Twilio, or Exotel).
  • Shopify Admin API credentials (API key, secret, store domain).
  • Slack OAuth app or webhook for human support escalation.
  • API key for your LLM provider (OpenAI, OpenRouter, etc.).

Customising this workflow

  • Add intents: returns/exchanges, COD confirmation, address changes.
  • Enrich product replies with images, price ranges, and "Buy" deep links.
  • Add multilingual support by detecting locale and templating responses.
  • Log all interactions to a DB/Sheet for analytics and quality review.
  • Guardrails: confidence thresholds β†’ fallback to support; redact PII; retry on API errors.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - WhatsApp Trigger

Type / Role
n8n-nodes-base.whatsAppTrigger - whatsAppTrigger
Config choices
Version 1

Block 2 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 3 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 4 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 5 - Get Products from Shopify

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 6 - Normalize Input

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Orders Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 8 - Products Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.2

Block 9 - Get Customer from Shopify

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Customer Details

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Get Customer Orders

Type / Role
n8n-nodes-base.httpRequestTool - httpRequestTool
Config choices
Version 4.2

Block 12 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 13 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 14 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 15 - Send a message to support

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 16 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 17 - Welcome message

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 18 - Send Order Status

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 19 - Send Products message

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 20 - No Operation, do nothing1

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 21 - No Operation, do nothing2

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 22 - No Operation, do nothing3

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 23 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 30 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow AI-powered WhatsApp customer support for Shopify brands with LLM agents
Complexity advanced
Nodes 30
Categories Support Chatbot, AI Chatbot
Author Ruthwik
Published 06 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8323/8323.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does AI-powered WhatsApp customer support for Shopify brands with LLM agents do?

AI Powered WhatsApp Customer Support for Shopify Brands This n8n template builds a WhatsApp support copilot that answers order status and product availability from Shopify using LLM "agents," th...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.