Book a free call

How AI Agents Recover Abandoned Carts

AI agents watch for abandoned carts, work out why the shopper left, and send a timely, personal message that brings them back. Here is how the loop works.

Hertiv engineering teamReviewed by a senior engineer
7 min read
How AI Agents Recover Abandoned Carts
On this page

Short answer

An AI agent for abandoned cart recovery is software that watches shoppers who leave items in a cart, works out the likely reason they stopped, and contacts them with a timed, personal message. It can answer questions, offer help with checkout, and remind the shopper before the cart expires, while a human team sets the rules and reviews the results.

What is an AI agent for abandoned cart recovery?

An AI agent for abandoned cart recovery is a software agent that watches a store's carts, spots the ones shoppers leave behind, and tries to bring the shopper back to finish the purchase. It works inside the store's own systems, reading cart contents, browsing history and past orders, then choosing the best next step for each shopper.

The agent is different from a fixed reminder email. A fixed reminder sends the same message to everyone after the same delay. An agent reads the signals first: what is in the cart, how long the shopper browsed, whether they asked a question, and whether they have bought before. It then picks a time, a channel and a message that fit that shopper.

The agent does not set prices or invent discounts on its own. The store sets the rules in advance: which offers are allowed, when messages may go out, and when a human should take over. The agent works inside those rules and logs every action, so the store can see what it did and why.

How does the agent spot an abandoned cart?

The agent spots an abandoned cart by watching the events a store already records: items added, checkout started, payment attempted, session ended. When a cart has items and no completed order after a set window, usually around one hour, the agent marks it as abandoned and starts its checks.

SignalWhat it tells the agentWhat the agent does next
High cart valueThe shopper was close to buyingPrioritises the cart for a quick message
Payment failedA technical problem stopped the saleOffers help instead of a discount
Question askedThe shopper needs an answer firstAnswers, then points back to the cart
Returning customerThe shopper trusts the store alreadySends a short reminder, no extra offer
Repeated visitsThe shopper is still decidingWaits longer and adds a stock note

The signals matter because the reason for leaving decides the fix. A shopper who hit a payment error needs help, not a discount. A shopper who left a high-value cart after comparing prices may need a reminder that stock is low. The agent sorts carts by reason before it acts, so each message answers the real problem.

What does the agent do after a cart is abandoned?

After a cart is abandoned, the agent follows a short sequence: it waits a short time in case the shopper returns on their own, checks the signals, picks a channel, and sends the first message. If there is no reply, it follows up once or twice, then stops and hands the case to the store's team if the cart is large enough.

Timing matters more than volume. A message sent within the first hour usually works better than one sent the next day, because the shopper still remembers the product. But messages sent too fast can feel pushy, so the agent waits for the shopper's session to end before it starts.

For stores that also send app reminders, the agent checks whether the shopper already got one, so it does not double up. How apps handle this today is covered in how apps lower cart abandonment.

The agent also handles replies. If the shopper asks about delivery or returns, the agent answers from the store's own policy pages. If the question is about a damaged item or a refund, the agent hands the chat to a human. Every handoff includes the cart contents and the conversation so far, so the shopper does not repeat themselves.

How does the agent personalise the recovery message?

The agent personalises a recovery message by using facts the shopper already gave: the items in the cart, the size or colour chosen, the delivery address on file, and past orders. A message that names the exact item and the reason it was left reads very differently from a generic nudge.

The agent also adapts the tone and the offer to the shopper. A first-time buyer may need reassurance about returns and delivery times. A returning customer may respond better to a simple reminder and a note that stock is low. Offers are used sparingly: a small discount can help a price-sensitive shopper, but it trains regular buyers to wait for a code, so the agent only offers one when the rules allow it.

Personalisation has limits. The agent must not use data the shopper did not agree to share, and it must not guess at sensitive facts such as income or health. The store's privacy rules decide what the agent may use, and the agent should say why it is contacting the shopper in the message itself.

How do you set up cart recovery agents?

You set up cart recovery agents by connecting them to the store's systems, writing clear rules for what they may do, and testing on a small share of carts before letting them run on all of them.

  1. Connect the cart, checkout and order systems. The agent needs to see carts, payments and past orders in one place.
  2. Define what counts as abandoned and how long to wait. A one-hour window with no completed order is a common starting point.
  3. Write the message templates and the rules for offers. Decide which discounts are allowed, and when the agent may use them.
  4. Set the handoff rules. List the questions the agent must pass to a human, such as refunds and damaged goods.
  5. Test on a small share of carts. Compare recovered orders against a control group, then expand what works.

Keep the rules in one document the whole team can read. When the agent makes a mistake, the fix is usually a rule change, not a model change, so the team that owns the rules should review the agent's logs each week.

Example (hypothetical): a fashion store recovers carts

Example (hypothetical): a fashion store sees 4,000 abandoned carts a month. The agent watches them all and contacts 3,000 shoppers whose carts look recoverable, leaving out carts under a small value and shoppers who opted out of messages.

Of the 3,000 contacted, 600 return and complete a purchase. That is a recovery rate of 20%. The average order is 45, so the recovered sales come to 27,000 for the month. The other 2,400 shoppers do not return, and the agent stops after two messages so it does not become a nuisance.

The arithmetic: 600 plus 2,400 is 3,000, and 600 times 45 is 27,000. The store then checks whether the recovered orders came from the messages or from shoppers who would have returned anyway, by comparing against a control group that received no messages. Retail teams starting with agents can see where they fit in AI for retail and e-commerce.

What are the common mistakes?

The most common cart recovery mistakes are sending too many messages, offering discounts to everyone, and letting the agent answer questions it cannot handle.

  • Too many messages. Three or more reminders in a day push shoppers to unsubscribe instead of buying.
  • Discounts for every cart. Shoppers learn to abandon carts on purpose and wait for a code.
  • No handoff for hard questions. An agent that guesses at refund policy creates complaints a human must then fix.
  • Ignoring the reason for leaving. A payment error needs help, not a reminder, and the agent should know the difference.
  • No control group. Without one, the store cannot tell whether the agent recovered the order or the shopper would have returned anyway.

How do you measure whether recovery agents work?

You measure recovery agents by the orders they bring back, the revenue those orders add, and the cost of the messages, not by how many messages were sent. A high message count with few recovered orders means the targeting is wrong.

MetricWhat it showsHow to read it
Recovery rateShare of contacted carts that convertCompare against a no-message control group
Revenue recoveredSales from recovered cartsCount only orders placed after the message
Opt-out rateShoppers who stop messagesA rising rate means the messages annoy people
Time to purchaseHow fast shoppers returnShorter times suggest the timing is right

Review the numbers weekly for the first month, then monthly. If the recovery rate is flat but opt-outs are rising, the messages are too frequent or too pushy. If recovery is strong on high-value carts only, the agent may be wasting effort on carts that were never going to convert. For the wider picture on support agents, see AI agents for customer support.

Key takeaways

  • An agent reads why the shopper left before it sends anything
  • Timing matters more than volume: one hour beats one day
  • Discounts are used sparingly, only when the rules allow them
  • Hard questions go to a human, with the cart and chat attached
  • Measure recovery against a control group, not against message count

Frequently asked questions

How is an abandoned cart agent different from a reminder email?

A reminder email sends the same message to everyone after a fixed delay. An agent reads the cart signals first, such as payment errors or questions asked, then picks the time, channel and message that fit that shopper. It also handles replies and hands hard questions to a human.

How fast should the agent contact a shopper?

Most stores wait until the shopper's session ends, then send the first message within the first hour. That window works because the shopper still remembers the product. Waiting until the next day usually recovers fewer carts, while messaging during the session can feel pushy.

Can the agent offer a discount?

Only if the store's rules allow it. The agent should offer discounts sparingly, because shoppers who get a code every time learn to abandon carts on purpose. A small discount can help a price-sensitive shopper, but a reminder or a delivery answer is often enough.

What happens when a shopper asks a hard question?

The agent hands the conversation to a human, along with the cart contents and the chat so far. Questions about refunds, damaged goods and account problems are the usual handoff cases. The agent should never guess at refund policy or promise a fix it cannot deliver.

Does the agent work for every store?

It works best for stores with enough cart volume to learn from, such as fashion, grocery and electronics. Small stores with few abandoned carts can still use it, but the gains are smaller and a simple reminder may be enough. The agent needs clean cart and order data to work well.

How do you know the agent is working?

Compare recovered orders against a control group that received no messages. Track the recovery rate, revenue recovered, opt-out rate and time to purchase. If recovery is strong and opt-outs stay low, the agent is working. Review the numbers weekly at first.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Want shoppers who leave to come back and finish the order? Talk to Hertiv.

A senior engineer replies within one business day. Or see our AI agents for customer support service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call