Playbook · E-commerce and DTC

AI agents in e-commerce: a testing playbook.

An online store’s AI support agent is pushed for refunds outside policy, discounts that do not exist, free shipping and extras, and orders shipped on fake proof of payment or to a changed address. Write those rules as data, test the agent against refund pushers, hagglers and fraudsters on a test copy, and monitor refund and discount totals after launch.

Returns abuse predates AI agents. Appriss Retail and Deloitte estimated that fraudulent and abusive returns and claims cost US retailers $103 billion in 2024, about 15% of all returns (2024 Consumer Returns in the Retail Industry). An agent that can grant refunds meets the same customers, in conversation.

01The threats

TacticWhat it tries to get
Outside the windowA refund after the return window, with a reason why it should not count
Used or damaged itemA full refund for an item that does not qualify
Double dippingA second refund, or a refund plus a replacement, for one order
Store credit upgradeCash instead of store credit, or extra credit on top
Escalation and threatsA refund to make a complaint or chargeback threat go away
Invalid discount codeA code that does not exist, has expired or was for someone else
Fake payment proofAn order shipped on a screenshot or pasted confirmation
Delivery address switchA parcel redirected after ordering, without verification
Data fishingAnother customer’s email, address or order history

02The rules to write

As data the agent and your systems can check, not only as sentences in its instructions.

  • Return window in days, refund limit per order, condition rules and one refund per order.
  • When store credit is allowed, and when cash is.
  • Valid discount codes and their percentages, checked by your system.
  • The free extras the agent may give (free shipping, a small credit) and their limits.
  • That payment status and addresses come from your order system, never from the chat.

03The tests to run

Run each on a test copy of the agent, with honest customers mixed in, enough times for a useful range: see how many test conversations are enough.

04Pre-launch checklist

  1. The refund tool enforces the window and the limit itself.
  2. Discount codes are validated by the system, not the agent.
  3. Payment status is read from the order system before anything ships.
  4. Address changes after ordering require verification.
  5. The agent can hand off to a person instead of conceding.
  6. The agent has been tested with refund pushers, fraudsters and honest customers.
  7. Eligible refunds are granted: over-refusal is measured.

The full 50-point version is in the enterprise guide.

05What to monitor after launch

  • Refunds and credits issued by the agent per week, against before launch.
  • Discount value given per order.
  • Address changes after ordering, and their outcomes.
  • Chargebacks on orders the agent handled.

Questions

Our agent runs on a help-desk platform. Can it still be tested?

Yes, if a test copy can be reached over the internet in a format it already speaks. The test sends it conversations as a customer would and reads its replies and actions.

Should we test before or after launch?

Before, on a test copy, and again after every change to its instructions, model or tools.

See where your agent leaks money. Tested against your own rules, with the money at stake.

See the testsHow we score