AI sends personalized recovery emails with smart incentives based on cart value and customer history. Monitored mode handles volume while you review.
70% of online shopping carts are abandoned, representing massive lost revenue. Generic recovery emails with "You left something behind" messaging have declining open rates. Each abandoned cart needs a personalized recovery approach based on the customer's history, cart contents, and purchase intent signals.
MultiMail's AI agent detects cart abandonment events, waits an optimal delay period, then sends personalized recovery emails with incentives tailored to cart value and customer history. Monitored mode handles high-volume recovery autonomously while logging everything for marketing to review.
Your ecommerce platform triggers MultiMail when a cart is abandoned. The AI receives cart contents, customer history, and session context.
The agent waits a configurable period (typically 1-3 hours) before sending the first recovery email, giving customers time to return on their own.
The AI composes a recovery email featuring the abandoned items, personalized incentives (free shipping, percentage off), and urgency triggers based on inventory availability.
Monitored mode logs all recovery emails for marketing review. Track conversion rates by incentive type, delay timing, and customer segment to optimize the recovery strategy.
import requests
API = "https://api.multimail.dev/v1"
HEADERS = {"Authorization": "Bearer mm_live_xxx"}
def send_cart_recovery(customer: dict, cart: dict):
"cm"># Determine incentive based on cart value
if cart["total"] > 100:
incentive = "Use code SAVE15 for 15% off"
elif cart["total"] > 50:
incentive = "Free shipping on your order"
else:
incentive = "Complete your order today"
items = "\n".join([f"- {i[&"cm">#039;name']} (${i['price']})" for i in cart["items"]])
body = (
f"Hi {customer[&"cm">#039;name']},\n\n"
f"You left these items in your cart:\n{items}\n\n"
f"Total: ${cart[&"cm">#039;total']:.2f}\n\n"
f"{incentive}\n\n"
f"Complete your order: {cart[&"cm">#039;checkout_url']}"
)
return requests.post(
f"{API}/send",
headers=HEADERS,
json={
"from": "[email protected]",
"to": customer["email"],
"subject": f"You left something behind - complete your order",
"text_body": body
}
).json()Trigger a personalized recovery email when a cart is abandoned, with incentive logic.
import requests
from datetime import datetime, timedelta
API = "https://api.multimail.dev/v1"
HEADERS = {"Authorization": "Bearer mm_live_xxx"}
def recovery_sequence(customer: dict, cart: dict, step: int):
sequences = {
1: {"delay_hours": 2, "subject": "Your cart is waiting",
"incentive": None},
2: {"delay_hours": 24, "subject": "Still thinking it over?",
"incentive": "Free shipping"},
3: {"delay_hours": 72, "subject": "Last chance: 10% off your cart",
"incentive": "10% off with code COMEBACK10"}
}
seq = sequences[step]
body = f"Hi {customer[&"cm">#039;name']}, your cart with ${cart['total']:.2f} in items is still available."
if seq["incentive"]:
body += f"\n\nSpecial offer: {seq[&"cm">#039;incentive']}"
return requests.post(
f"{API}/send",
headers=HEADERS,
json={
"from": "[email protected]",
"to": customer["email"],
"subject": seq["subject"],
"text_body": body
}
).json()Send escalating recovery emails with increasing incentives if earlier emails don't convert.
"cm">// Abandoned cart recovery via MCP
"cm">// 1. Send recovery email
await mcp.send_email({
from: "[email protected]",
to: customer.email,
subject: "You left something behind - complete your order",
text_body: `Hi ${customer.name}, your cart with ${cart.items.length} items (\$${cart.total}) is still available. Complete your order: ${cart.checkoutUrl}`
});
"cm">// 2. Track customer for follow-up
await mcp.add_contact({
email: customer.email,
name: customer.name,
tags: ["cart-abandoned", `cart-value-${cart.total > 100 ? "high" : "low"}`]
});
"cm">// 3. Check if they replied with questions
const inbox = await mcp.check_inbox({
mailbox_id: "shop-mailbox-id",
status: "unread"
});Use MultiMail MCP tools for cart recovery email workflows.
Personalized cart recovery emails with smart incentives recapture revenue that would otherwise be lost entirely.
AI tailors incentives to cart value and customer history — high-value carts get percentage discounts, lower carts get free shipping, repeat customers get loyalty recognition.
Monitored mode handles thousands of cart recovery emails autonomously while marketing reviews performance metrics and adjusts strategy.
Escalating recovery sequences with increasing incentives maximize conversion without immediately offering the deepest discount.
Email infrastructure built for AI agents. Verifiable identity, graduated oversight, and a 38-tool MCP server. Formally verified in Lean 4.