May 27, 2026

How to automate abandoned cart emails with AI workflows

Reading time :  
6
 min
Rithul Palazhi
Rithul Palazhi

How to automate abandoned cart emails with AI workflows

Cart abandonment rates average 70.19% across e-commerce — meaning seven out of ten shoppers leave without buying (Baymard Institute). Abandoned cart emails recover 5-15% of those lost sales, but only when they're timely, personalized, and persistent. CodeWords handles the orchestration, timing, and personalization in one managed workflow. Unlike generic AI automation posts, this guide shows real CodeWords workflows — not just theory.

What does an effective abandoned cart email sequence look like?

Email 1 — The reminder (1 hour). Show the exact items with images and prices. No discount. Pure reminder. Open rate: 40-50%.

Email 2 — The nudge (24 hours). Add social proof — reviews, ratings, "X people bought this today." Open rate: 30-40%.

Email 3 — The incentive (72 hours). Include a time-limited discount code. Open rate: 25-35%.

The sequence matters. Sending the discount first trains customers to abandon carts intentionally.

How to build the automation in CodeWords

Step 1: Connect your e-commerce platform (Shopify, WooCommerce) via CodeWords integrations. Set a webhook that fires when a cart is created but no order follows within 60 minutes.

Step 2: Enrich the cart data — pull cart contents, look up customer purchase history.

Step 3: Generate personalized copy. CodeWords passes cart data and customer context to an LLM to write subject lines and body copy tailored to the specific products and customer segment.

Step 4: Send and track via SendGrid or Mailchimp. State persistence via Redis tracks which step each cart is on — so if the customer purchases after Email 1, Emails 2 and 3 never send.

FAQs

When should I send the first abandoned cart email?
One hour after abandonment. SaleCycle data shows emails sent within the first hour have a 20.3% conversion rate, dropping to 12.2% at 24 hours.

Should I include a discount in every sequence?
No. Start without a discount. Reserve discounts for the final email to avoid training customers to expect them.

Build your cart recovery workflow on CodeWords →

Contents
Ready to try CodeWords?
Get started free
Sign in
Sign in