Recover abandoned WooCommerce carts using OpenAI GPT-4.1-mini, Gmail and Slack
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects OpenAI Chat Model, Gmail and Slack.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Normalize Incoming Cart Data (Edit Fields (Set)): sets 5 fields: cart_key, email, first_name…
- Wait: pauses before continuing
- Recheck cart status from store (HTTP Request): calls an HTTP API
- Cart is Still Abandoned? (If): checks a condition and branches into true / false
- Genrate Personalized Reminder Email (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Extrect Email Subject & Body from AI (Code): runs custom JavaScript code
- Prepare recovery Data (Edit Fields (Set)): sets 3 fields: Product_name, total, customer_email
- Send Abandoned cart email to customer (Gmail): uses Gmail
- Notify internal team on slack (Slack): uses Slack
Services it uses
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 (10)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set - Wait
n8n-nodes-base.wait - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Webhook
n8n-nodes-base.webhook
From the author
AI-Powered Abandoned Cart Recovery (WooCommerce + CoCart + n8n) This workflow automatically tracks abandoned carts from a WooCommerce store, waits for a defined time, rechecks the cart status, generates a personalized reminder email using AI, sends it to the…