Predictika · grocery-store returns and refunds
An AI sales agent at the service desk prepares a return, refund or exchange decision. Before it is processed, the agent sends it to Predictika, which checks it against a declarative model of the return rules and returns a verdict, every reason and the figures it computed.
This validator models grocery-store return, refund and exchange decisions, not just the scenarios shown below.
Any grocery-store return decision that touches these rules is in scope — not only the scenarios pictured here. Not covered: price lookup, tax, state-specific rules, pharmacy regulations, value differences on exchanges and fraud scoring. The windows and the three-return threshold are typical policy values chosen for this model, not any specific retailer's policy.
7 scenarios in 3 groups · each group runs from the agent’s first attempt to the outcome · click one to switch
Illustrative agent statement. The validator receives the structured request below.
Proposing agent: AI sales agent (scripted)
Before sending, the agent must call Recorded run
What this means
Our assessment of what a typical rules-based CPQ (product rules, price rules and validation rules, as in Salesforce CPQ) does with the same cases. It is a judgment about effort and reliability, not a claim that nothing can be built.
| What the validator caught | Typical rules-based returns system | Predictika |
|---|---|---|
| A refund that must not exceed what was paid after a coupon | Only if someone is vigilant The coupon has to be prorated per item and the cap re-derived on every refund; it works, but each coupon type needs its own rule. | The amount paid after the coupon is computed on every call and compared with the amount requested. |
| EBT purchases that go back only as store credit or an exchange | Only if someone is vigilant A rule has to link the original payment method to the return type, and it is easy to miss on exchanges and partial returns. | Payment method and return type travel in one request and the rule is checked with all the others. |
| Loyalty points that must be taken back on a refund | Only with workarounds The points sit in a separate loyalty system, so the desk usually relies on the cashier to reverse them. | Points earned and the reversal flag arrive in the same request, and a refund without the reversal is blocked. |
| Repeat receiptless returns that need a manager | Only with workarounds The count of earlier returns lives in another system or is checked after the fact. | The count arrives with the request and the escalation is part of the same answer. |
| Every problem returned in one answer | Only with workarounds Rules tend to fire one at a time as each step is completed, so one error is fixed and the next appears. | All findings come back together, whatever order the choices arrived in. |
Every rule is checked on every call, in any order the choices arrive; one problem never hides another. Blocking findings stop the return; approval findings need a person to sign off; everything else is computed.
| 1 | Alcohol cannot be returned. |
| 2 | Pharmacy items cannot be returned. |
| 3 | A gift card can be returned only if it is defective. |
| 4 | Produce and meat can be returned only if they are spoiled or defective. |
| 5 | A purchase paid with EBT cannot be refunded in cash; it must go back as store credit or an exchange. |
| 6 | A refund needs a receipt; without one the return must be store credit or an exchange. |
| 7 | General merchandise can be returned within 30 days; this item was bought 31 days ago. |
| 8 | Electronics can be returned within 15 days; this item was bought 16 days ago. |
| 9 | The requested amount of $50.00 is more than the $40.00 paid after the coupon. |
| 10 | The requested amount of $25.00 is more than the original price of $20.00. |
| 11 | The original purchase earned 20 loyalty points, which must be taken back on a refund or store credit. |
| 12 | The customer already has 3 receiptless returns in the last 30 days; a fourth or later cannot be approved automatically and a manager must review it. |
| 13 | The requested amount of $40.00 is more than the $35.00 paid after the coupon. |
| 14 | The original purchase earned 40 loyalty points, which must be taken back on a refund or store credit. |
The recorded result of the validator for each scenario on this page: the request the AI agent sent, the verdict, and every finding, in the order they appear above.
The agent's request. Please process a refund of $40.00 for groceries the customer paid for with EBT 2 days ago, using a $5.00 coupon, and keep the 40 loyalty points earned. The customer has the receipt. It is ready to process.
Verdict: Blocked.
The agent's request. Please process $40.00 in store credit for groceries the customer paid for with EBT 2 days ago, using a $5.00 coupon, and take back the 40 loyalty points earned. The customer has the receipt. It is ready to process.
Verdict: Blocked.
The agent's request. Please process $35.00 in store credit for groceries the customer paid for with EBT 2 days ago, using a $5.00 coupon, and take back the 40 loyalty points earned. The customer has the receipt. It is ready to process.
Verdict: Allowed.
The agent's request. Please process a cash refund of $45.00 for a household item the customer paid for in cash 12 days ago. The customer has no receipt and has made 1 other receiptless return in the last 30 days. It is ready to process.
Verdict: Blocked.
The agent's request. Please process $45.00 in store credit for a household item the customer paid for in cash 12 days ago. The customer has no receipt and has made 1 other receiptless return in the last 30 days. It is ready to process.
Verdict: Allowed.
The agent's request. Please process a refund of $100.00 for a gift card bought 6 days ago. The customer has the receipt. It is ready to process.
Verdict: Blocked.
The agent's request. Please process a refund of $100.00 for a gift card bought 6 days ago that is defective. The customer has the receipt. It is ready to process.
Verdict: Allowed.
The text of the narrated walkthrough, step by step.