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

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

Needs changes

by Davide Boizza ✓ · 294 views · created 2026-05-11 · Support Chatbot, AI Chatbot

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
E-Commerce Customer Support AI Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (19)

Qdrant Vector StoreGoogle DriveEmbeddings OpenAIDefault Data LoaderToken SplitterSimple MemoryOpenAI Chat ModelCalculatorGuardrailsGoogle Gemini Chat ModelWooCommerceVector Store Question AnswerAI AgentGmail

What it does

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. 2. 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. 3. 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 ragsearch (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. 4. Response normalization & sending - The agent's raw output is cleaned (ne

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.