Seven out of ten people who add something to their online shopping cart leave without paying. Some hit an unexpected shipping cost, some get asked to create an account, and plenty simply get distracted and never come back. The Baymard Institute analysed 50 separate studies and found the average cart abandonment rate sits at 70.22%. That number has barely moved in a decade.
Most stores already know this. They send a generic email with a 10% discount code. Klaviyo's benchmark analysis of more than 143,000 abandoned cart flows puts the average open rate for those emails at 50.5%, which sounds decent until you see the conversion: the average flow turns just 3.33% of recipients into buyers. The gap is personalisation. A first-time browser who added a 20 dollar item needs a different message than a repeat buyer who abandoned a 400 dollar cart. The tools to build this kind of personalised recovery have been expensive or required developers. That changed in 2026.
We at Supernodes build systems that close this gap for mid-market and enterprise teams. The pipeline we are walking through here uses three tools anyone can access: Claude via the Anthropic API for generating personalised recovery emails based on actual cart contents, n8n for the workflow automation that connects everything, and your existing ecommerce platform for the trigger data. Once set up, it sends a personalised recovery email for every abandoned cart with zero manual effort per recovery. Klaviyo's benchmark data shows what separates the flows that earn from the flows that don't: the average cart flow returns $3.65 of revenue per recipient, while top-decile brands reach $28.89 per recipient on the same kinds of sends. The whole thing costs less than lunch for two per month.
If you have worked with Claude and n8n for lead qualification before, the pattern will feel familiar. Claude does the reasoning, n8n handles the plumbing.
Why most cart recovery emails fail
Stores are not short of recovery emails. According to Klaviyo abandoned cart benchmarks, cart recovery flows drive the most revenue of any automated email sequence. The gap is in what those emails contain: most of them are generic.
Look at the reasons people abandon carts. Once the shoppers who were only browsing are set aside, Baymard's research puts extra costs such as shipping, tax and fees at 40 percent of abandoners, forced account creation at 18 percent, a long or complicated checkout at 17 percent, and slow delivery at 20 percent. A blanket 10 percent discount addresses none of these.
The stores winning at this are the ones whose recovery emails read like they were written by someone who looked at the cart. Klaviyo's benchmark report shows cart flows returning $3.65 of revenue per recipient on average, and top-decile brands reaching $28.89, on emails that name the product and answer the specific objection. Claude can write that message for every single cart, at a cost of fractions of a cent per email.
Four accounts: Anthropic, n8n, your store and an email service
You need four things. An Anthropic API key from the Claude Console. New accounts get 5 dollars in free credits, and Claude Haiku 4.5 costs 1 dollar per million input tokens on Anthropic's pricing page, which means each personalised email costs roughly 0.2 to 0.5 cents in API fees. An n8n instance free if you self-host, or 20 dollars per month on the cloud plan. An ecommerce platform that supports webhooks like Shopify with native n8n integration, WooCommerce, Magento, or BigCommerce. And an email sending service like Gmail SMTP for low volumes, or Klaviyo, SendGrid, or Mailgun for higher volumes.
Total cost for a store processing 1,000 abandoned carts per month: roughly 25 to 50 dollars including n8n cloud hosting and Claude API calls. That is 2.5 to 5 cents per personalised recovery email.
Connect your ecommerce platform to n8n for cart abandonment webhooks
Create a new n8n workflow and add a Webhook node as the trigger. Set the HTTP method to POST. Point your ecommerce platform at the URL n8n generates.
For Shopify: go to Settings, Notifications, Webhooks. Create a webhook for the checkouts/update event. n8n has a pre-built Shopify cart recovery template you can import. For WooCommerce: use the built-in webhook system under Settings, Advanced, Webhooks.
The template we imported for this walkthrough, n8n's template library, August 2026.
Verify it works with a test POST:
curl -X POST "https://your-n8n-instance/webhook/cart-abandoned" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","items":[{"name":"Sample","price":29.99,"qty":1}],"total":29.99}'
Build the Claude prompt for personalised cart recovery emails
Add an HTTP Request node connected to the webhook output. This calls the Anthropic Messages API:
Method: POST
URL: https://api.anthropic.com/v1/messages
Headers:
x-api-key: {{ $env.ANTHROPIC_API_KEY }}
anthropic-version: 2023-06-01
Content-Type: application/json
The body sends cart data to Claude with instructions that produce a personalised recovery email. Here is the template we use with clients at Supernodes:
{
"model": "claude-haiku-4-5-20250514",
"max_tokens": 500,
"temperature": 0.7,
"messages": [{
"role": "user",
"content": "You are a cart recovery email writer. Write a single recovery email. Rules: (1) Mention at least one specific product by name. (2) Keep it under 120 words. (3) If cart under 30 dollars, offer 5% discount. If 30-100, offer 10%. If over 100, no discount. (4) Return ONLY JSON with subject and body fields.\\n\\nCart: {{JSON.stringify($json.items)}}\\nTotal: {{$json.total}}"
}]
}
This is the core of the system. The prompt gives Claude discount logic tied to cart value. A 400 dollar cart gets a value pitch, not a margin-eating discount. A 20 dollar cart gets a gentle nudge. The same rules split the two cleanly: above 100 dollars the prompt forbids a discount, so the 400 dollar cart email carries no code at all and instead names the product, links back to the cart and gives a reason to finish, like stock level or a review. Below 30 dollars the prompt offers 5 percent, and that email leads with the code, because price is the whole objection at that level. The prompt is doing the segmentation a human copywriter would do per cart, at fractions of a cent per send.
Set up the full n8n pipeline from webhook to email
Connect everything into a single pipeline:
- Webhook trigger receives the abandoned cart event from your ecommerce platform.
- HTTP Request to Claude sends cart data to the Anthropic API and receives a personalised email.
- Function node parses Claude JSON response to extract subject and body.
- Email node sends the personalised email via Gmail SMTP, SendGrid, or Klaviyo.
- Google Sheets node (optional) logs every recovery for tracking.
The Function node to parse Claude response:
const response = JSON.parse($input.first().json.content[0].text);
return {
subject: response.subject,
body: response.body,
email: $input.first().json.email
};
Add a condition node to skip carts under 15 dollars where the API cost exceeds the potential recovery.
Add timing rules and smart discount logic
Testing shared in Digital Applied's cart recovery playbook, from an agency that builds these sequences, shows three emails at the right intervals recover more than one:
| Touch | Tone | Discount logic |
|---|---|---|
| Plus 1 hour | Friendly reminder, names the product | None, unless cart is under 30 dollars |
| Plus 24 hours | Value-focused, with social proof | 10% if cart is under 100 dollars |
| Plus 72 hours | Final nudge | 15% discount or free shipping if cart value justifies it |
Add Wait nodes between each touch. Each touch uses the same Claude prompt with a different tone instruction: casual, value-driven, urgent.
Measure recovery rate and iterate
Track three numbers:
- Recovery rate: recovered purchases divided by abandoned carts. Target 12 to 18% for AI-personalised flows versus under 5% for generic templates.
- Revenue per recovery: average value of recovered carts by touch number.
- Discount cost: total discounts divided by recovered revenue. Keep this under 10%.
After a month of data, iterate on the Claude prompt. If recovery rate is below 12%, feed Claude more customer data. If discount cost is above 10%, tighten the rules. If email 3 has near-zero recovery, drop it.
This same measurement loop is what makes AI email nurture workflows with HubSpot compound over time. Month six outperforms month one because the prompt evolves based on real recovery data.
The bottom line: A store doing 100,000 dollars in monthly revenue with a 70% abandonment rate has roughly 233,000 dollars of potential revenue sitting in abandoned carts each month. A flow performing at Klaviyo's average of $3.65 per recipient turns 5,000 recovery emails a month into about 18,000 dollars in recovered revenue, and a top-decile flow on the same sends returns closer to 144,000 dollars. The entire setup described here costs under 50 dollars a month.
FAQ
What is the average cart abandonment rate in 2026?
The global average cart abandonment rate is 70.22%, according to the Baymard Institute. Mobile abandonment is higher again at 84%, compared to 72% on desktop, per Marketing LTB's roundup of cart statistics.
How much revenue can AI-powered cart recovery recover?
Klaviyo's analysis of more than 143,000 abandoned cart flows puts the average conversion at 3.33% of recipients, with top-decile brands returning $28.89 of revenue per recipient against the $3.65 average. The difference between the two groups is the message, and that is what AI personalisation changes.
Which ecommerce platforms work with this setup?
Any platform with webhooks: Shopify, WooCommerce, Magento, and BigCommerce. Shopify has the most mature n8n integration with pre-built cart recovery templates. For a Shopify and Klaviyo-specific setup, see our AI cart recovery with Shopify and Klaviyo guide.
How much does it cost to run?
Roughly 25 to 50 dollars per month. n8n cloud starts at 20 dollars per month (free if self-hosted). Claude API calls cost 0.2 to 0.5 cents per email using Claude Haiku 4.5.
Do I need to write code?
No. The entire pipeline uses n8n visual editor. The most technical step is copying API keys and writing a prompt template in plain text.
Can I use ChatGPT instead of Claude?
Yes. Swap the HTTP Request node to the OpenAI API endpoint. The routing logic and email delivery stay identical.