Skip to main content

Handle e-commerce WhatsApp support with Whapi, WooCommerce, RAG and Gmail escalation

Workflow preview

Workflow preview
100%
Handle e-commerce WhatsApp support with Whapi, WooCommerce, RAG and Gmail escalation preview
Open on n8n.io

1. Workflow Overview

This workflow is a complete AI powered customer support automation for e commerce businesses. The system allows customers to interact with an AI assistant directly through WhatsApp . This chatbot c...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.vectorstoreqdrant, n8n-nodes-base.httprequest, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.embeddingsopenai, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplittertokensplitter

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Handle e-commerce WhatsApp support with Whapi, WooCommerce, RAG and Gmail escalation
Workflow name
Handle e-commerce WhatsApp support with Whapi, WooCommerce, RAG and Gmail escalation

This workflow is a complete AI-powered customer support automation for e-commerce businesses.

The system allows customers to interact with an AI assistant directly through WhatsApp. This chatbot can:

  • Answer customer questions in real time
  • Retrieve order information from WooCommerce
  • Search products and provide recommendations
  • Access company policies and FAQs using RAG (Retrieval-Augmented Generation)
  • Escalate conversations to human support when necessary
  • Maintain conversation memory for contextual interactions
  • Apply AI guardrails for safer conversations

Key Advantages

1. ✅ Fully Automated Customer Support

The workflow dramatically reduces manual customer support workload by automating:

  • FAQs
  • Order tracking
  • Product inquiries
  • Return policy questions
  • Technical troubleshooting

This enables 24/7 support availability without human intervention.

2. ✅ Native WhatsApp Integration

Using Whapi, customers can communicate through WhatsApp — one of the most widely used messaging platforms globally.

3. ✅ AI-Powered Product Assistance

The assistant can:

  • Search products in WooCommerce
  • Compare items
  • Recommend products
  • Check stock availability
  • Provide real-time pricing

This transforms the chatbot into an intelligent sales assistant, increasing conversion opportunities.

4. ✅ RAG Knowledge Base with Qdrant

The workflow uses Retrieval-Augmented Generation (RAG) powered by Qdrant vector search.

5. ✅ Human Escalation System

When the AI cannot solve an issue, the workflow automatically escalates the conversation to human support via Gmail.

6. ✅ Multi-Model AI Architecture

The workflow combines:

  • Google Gemini for conversational reasoning
  • OpenAI embeddings for semantic retrieval
7. ✅ Persistent Conversation Memory

The Window Buffer Memory node maintains contextual conversations.

8. ✅ Built-In Guardrails & Security

The workflow includes AI Guardrails to:

  • Filter inappropriate content
  • Block unsafe requests
  • Prevent policy violations
  • Improve AI reliability

This is essential for production-ready AI assistants.

9. ✅Real-Time WooCommerce Integration

The chatbot interacts directly with WooCommerce APIs to:

  • Retrieve customer profiles
  • Access order history
  • Check shipment status
  • Query products

This provides live data instead of static responses.

10. ✅ Modular & Scalable Architecture

The workflow is highly modular:

  • Easily customizable
  • Extendable with new tools
  • Compatible with additional APIs
  • Scalable for large e-commerce operations

New AI tools or integrations can be added without redesigning the entire system.

Ideal Use Cases

This workflow is ideal for:

  • E-commerce stores
  • Fashion brands
  • Electronics retailers
  • Customer support automation
  • AI sales assistants
  • WhatsApp commerce
  • Technical support automation
  • Multilingual support systems

This workflow represents a production-ready AI customer support system capable of combining conversational AI, semantic search, real-time e-commerce operations, and human escalation into a single automated pipeline.


How it works

  1. WhatsApp message reception
  • The workflow starts when a WhatsApp message is received via the Get WhatsApp webhook (Whapi).
  • It checks if the message is of type text — if not, it replies with a message saying only text is supported.
  1. Guardrails & policy check
  • The message passes through a Guardrails node that filters inappropriate content or policy violations.
  • If the message violates policies, a rejection reply is sent.
  1. Customer support AI Agent
  • The message is passed to an AI Agent (powered by Google Gemini or OpenAI).
  • The agent has access to:
  • Memory (Window Buffer Memory) to keep conversation context.
  • Tools for:
  • Retrieving company knowledge via rag_search (from Qdrant).
  • Fetching WooCommerce orders, products, and customers.
  • Performing calculations.
  • Escalating to human support via Gmail.
  • The agent follows a detailed system prompt covering product info, order assistance, technical support, and escalation logic.
  1. Response normalization & sending
  • The agent's raw output is cleaned (newlines/tabs escaped) via a Code node.
  • The cleaned response is sent back to the customer via Whapi (Send WhatsApp).
  1. Knowledge base vectorization (separate flow)
  • A separate part of the workflow (triggered manually) loads documents from Google Drive, splits them into chunks, generates embeddings via OpenAI, and stores them in Qdrant for semantic search.

Set up steps

  1. Configure external services & credentials
  • Whapi: Sign up (FREE TRIAL available), get API credentials, and set the webhook URL in Whapi settings to point to your n8n webhook.
  • OpenAI: Create an API key for embeddings and chat model (or use Google Gemini).
  • Qdrant: Set up a Qdrant instance (e.g., on Hetzner) and create API credentials.
  • Google Drive: Authenticate to access document folders.
  • WooCommerce: Generate API keys for order/product/customer retrieval.
  • Gmail: Authenticate for human support escalation.
  1. Create Qdrant collection
  • Run the Create collection HTTP request node (update QDRANTURL and COLLECTION name).
  1. Upload & vectorize documents
  • Place your knowledge base files (PDFs, text, Google Docs) in a Google Drive folder.
  • Set the folder ID in the Get folder node.
  • Run the manual trigger to load, split, embed, and store documents into Qdrant.
  1. Configure the AI Agent
  • Set the system prompt (already provided in the E-Commerce Customer Support AI Agent node).
  • Choose the language model (Gemini or OpenAI) and connect credentials.
  • Ensure all tools (rag_search, WooCommerce nodes, calculator, Gmail) are enabled and properly connected.
  1. Set webhook & activate workflow
  • Copy the webhook URL from the Get WhatsApp node.
  • Paste it into your Whapi dashboard as the incoming message webhook.
  • Toggle the workflow to active.

👉 Subscribe to my new YouTube channel. Here I’ll share videos and Shorts with practical tutorials and FREE templates for n8n.


Need help customizing?

Contact me for consulting and support or add me on Linkedin.

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 - Sticky Note

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

Block 2 - When clicking ‘Test workflow’

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

Block 3 - Qdrant Vector Store

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

Block 4 - Create collection

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

Block 5 - Refresh collection

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

Block 6 - Get folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 7 - Download Files

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 8 - Embeddings OpenAI

Type / Role
@n8n/n8n-nodes-langchain.embeddingsOpenAi - embeddingsOpenAi
Config choices
Version 1.1

Block 9 - Default Data Loader

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

Block 10 - Token Splitter

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

Block 11 - Window Buffer Memory

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

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

Block 14 - Sticky Note5

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

Block 15 - OpenAI Chat Model1

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

Block 16 - Retrive Qdrant Vector Store

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

Block 17 - Embeddings OpenAI2

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

Block 18 - Calculator

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

Block 19 - Guardrails

Type / Role
@n8n/n8n-nodes-langchain.guardrails - guardrails
Config choices
Version 2

Block 20 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1.1

Block 21 - get_order

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

Block 22 - get_orders

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

Block 23 - get_user

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

Block 24 - rag_search

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

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

3. Summary Table

Workflow Handle e-commerce WhatsApp support with Whapi, WooCommerce, RAG and Gmail escalation
Complexity advanced
Nodes 36
Categories Support Chatbot, AI Chatbot
Author Davide Boizza
Published 11 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15617/15617.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 Handle e-commerce WhatsApp support with Whapi, WooCommerce, RAG and Gmail escalation do?

This workflow is a complete AI powered customer support automation for e commerce businesses. The system allows customers to interact with an AI assistant directly through WhatsApp . This chatbot c...

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.