Handle e-commerce WhatsApp support with OpenAI, WooCommerce, and Notion
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Guardrails, OpenAI Chat Model, Notion and WooCommerce and 1 more. It also calls gate.whapi.cloud over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Configuration (Edit Fields (Set)): sets 14 fields: openai_model, context_window_length, max_agent_iterations…
- Is Text Message? (If): checks a condition and branches into true / false
- Guardrails: uses Guardrails, with model: OpenAI Model (Guardrails)
- Reply: Text Only Supported (HTTP Request): calls gate.whapi.cloud (POST)
- E-Commerce Customer Support Agent (AI Agent): runs an AI agent, with model: OpenAI Model (Agent); 8 tools (Calculator, List Products, Get Single Order, Get Single Product…); memory: Conversation Memory
- Reply: Policy Violation (HTTP Request): calls gate.whapi.cloud (POST)
- Send WhatsApp Reply (HTTP Request): calls gate.whapi.cloud (POST)
Services it uses
HTTP calls to: gate.whapi.cloud
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Guardrails
@n8n/n8n-nodes-langchain.guardrails - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Notion Tool
n8n-nodes-base.notionTool - Woo Commerce Tool
n8n-nodes-base.wooCommerceTool - Calculator
@n8n/n8n-nodes-langchain.toolCalculator - Gmail Tool
n8n-nodes-base.gmailTool - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick overview This workflow receives inbound WhatsApp messages via Whapi, screens them with OpenAI-powered guardrails, and replies using an OpenAI support agent that can search a Notion knowledge base, look up live WooCommerce orders/products/customers, and…