Predictika · Grocery and retail checkout
An AI shopping agent assembles a checkout basket for a drugstore or grocery shopper: items, manufacturer and store coupons, an order coupon and ExtraBucks rewards. Before the basket goes out, the agent sends it to Predictika, which checks every coupon against a declarative model of a typical coupon policy, compares the net total the agent states with the one it computes, and returns a verdict and every reason.
This validator models one thing: whether the coupons in a checkout basket stack legally under a typical drugstore coupon policy, and whether the net total the agent states is right. It is not limited to the scenarios shown below.
Any basket built from these items and coupons is in scope, not only the scenarios pictured here. This is an illustrative model: items, prices, coupons, limits and thresholds are fictional and are modeled on typical published US drugstore coupon policies, not on any retailer's actual policy text. Expiry is checked against a fixed shopping date of October 5, 2026 in the model. Not covered: loyalty programs, tax, and baskets of more than three lines.
10 scenarios in 5 groups · each group runs from the agent’s first attempt to the outcome · click one to switch
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 CPQ | Predictika |
|---|---|---|
| One manufacturer and one store coupon per item, each in its own slot | Only with care Each slot needs its own rule against the coupon type, and a coupon scanned into the wrong slot has to be caught by a rule written for that case. | The coupon record carries its kind, and every slot is checked against it on every call, together with every other rule. |
| An order coupon threshold counted after item coupons | Only with workarounds The threshold sees a cart total, so alcohol, gift cards and the item coupons have to be subtracted by hand in a chain of calculated fields, and a fix on one line moves the result. | The qualifying total is derived on each call from the lines and the item coupons, then compared with the threshold, so one change is seen against all the others. |
| Rewards capped by what is left, and a coupon capped at the item price | Only with care The cap and the sign-off for a coupon worth more than the item need their own fields on every line, and ExtraBucks depends on the order coupon that depends on the lines. | Each line derives its coupon value and overage, and the qualifying total, the order coupon and the rewards are derived together. |
| Identical coupon limits across lines, and buy-two coupons that need two items | Only with care The limit spans lines, so a rule per line misses the total, and every buy-N coupon needs its own quantity rule. | Coupon counts are summed across the whole basket and compared with the item quantities in one pass. |
| A stated net total that must match the computed total | Only with workarounds A validation rule can compare a stated total with a calculated field only if the stated total is a field of the basket, which it rarely is. | The stated net total travels with the basket and is compared with the computed one on every call. |
Every rule is checked on every call, in any order the choices arrive; one problem never hides another. Blocking findings stop the order; approval findings need a person to sign off; everything else is computed.
| 1 | Line 1 - two manufacturer coupons on one item ($3 off one Advil 40 ct or larger (manufacturer) in the store-coupon slot). Policy allows one manufacturer and one store coupon per item. |
| 2 | Line 1, manufacturer slot - $3 off one Advil 40 ct or larger (manufacturer - Sep 30) expired on Sep 30, 2026. |
| 3 | Line 1, manufacturer slot - $3 off one Advil 40 ct or larger (manufacturer) does not apply to Advil tablets 24 ct (brand, category or size does not match). |
| 4 | Line 1 - 1 copies of $2 off TWO Crest toothpastes (manufacturer) need 2 item(s) each but only 1 are in the cart. |
| 5 | More than 4 identical manufacturer coupons in one transaction (line totals 5, 5, 0). |
| 6 | $5 off $25 (store) needs $25.0 of qualifying items after item coupons; this cart has $20.98 (alcohol, gift cards and prescriptions do not count). |
| 7 | $10 off $50 (store) needs $50.0 of qualifying items after item coupons; this cart has $13.99 (alcohol, gift cards and prescriptions do not count). |
| 8 | $15.0 of ExtraBucks exceeds the $7.99 of qualifying items left after coupons (rewards cannot pay for alcohol, gift cards or prescriptions). |
| 9 | Line 1 - coupons worth $7.0 on an item costing $5.99; the discount is cut to the item price (no cash back). |
| 10 | Line 1 - 2 copies of $5 off one Olay Regenerist (manufacturer) need 1 item(s) each but only 1 are in the cart. |
| 11 | Line 1, store slot - $2 off Advil (store coupon) does not apply to Tide liquid detergent 92 oz (brand, category or size does not match). |
| 12 | Order coupon - $5 off $25 (store - Sep 30) expired on Sep 30, 2026. |
| 13 | $5 off $25 (store - Sep 30) needs $25.0 of qualifying items after item coupons; this cart has $24.99 (alcohol, gift cards and prescriptions do not count). |
| 14 | Stated total does not match: the agent stated $22.96; the validator computes $24.96. |
| 15 | Stated total does not match: the agent stated $30.48; the validator computes $28.98. |
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 check this checkout basket of three items. It holds Advil tablets 100 ct with the $3 off one Advil 40 ct or larger (manufacturer - Sep 30) and the $3 off one Advil 40 ct or larger (manufacturer) in the store slot, Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer) (2 copies) and the $2 off Advil (store coupon) in the store slot, and Cabernet Sauvignon 750 ml at full price. It also uses the $5 off $25 (store - Sep 30) order coupon and $15 in ExtraBucks. The basket net total is $22.96. It is ready to send.
Verdict: Blocked.
The agent's request. Please check this checkout basket of three items. It holds Advil tablets 100 ct with the $3 off one Advil 40 ct or larger (manufacturer) and the $2 off Advil (store coupon) in the store slot, 2 x Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer) (2 copies), and Cabernet Sauvignon 750 ml at full price. It also uses the $5 off $25 (store) order coupon and $15 in ExtraBucks. The basket net total is $24.96. It is ready to send.
Verdict: Allowed.
The agent's request. Please check this checkout basket of three items. It holds Advil tablets 100 ct with the $3 off one Advil 40 ct or larger (manufacturer) and the $3 off one Advil 40 ct or larger (manufacturer) in the store slot, Olay Regenerist cream 1.7 oz with the $5 off one Olay Regenerist (manufacturer), and Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer). It also uses the $5 off $25 (store) order coupon. The basket net total is $39.97. It is ready to send.
Verdict: Blocked.
The agent's request. Please check this checkout basket of three items. It holds Advil tablets 100 ct with the $3 off one Advil 40 ct or larger (manufacturer) and the $2 off Advil (store coupon) in the store slot, Olay Regenerist cream 1.7 oz with the $5 off one Olay Regenerist (manufacturer), and Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer). It also uses the $5 off $25 (store) order coupon. The basket net total is $40.97. It is ready to send.
Verdict: Allowed.
The agent's request. Please check this checkout basket of two items. It holds Advil tablets 100 ct with the $3 off one Advil 40 ct or larger (manufacturer) and the $2 off Advil (store coupon) in the store slot, and Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer). It also uses the $5 off $25 (store) order coupon. The basket net total is $15.98. It is ready to send.
Verdict: Blocked.
The agent's request. Please check this checkout basket of three items. It holds Advil tablets 100 ct with the $3 off one Advil 40 ct or larger (manufacturer) and the $2 off Advil (store coupon) in the store slot, Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer), and Olay Regenerist cream 1.7 oz at full price. It also uses the $5 off $25 (store) order coupon. The basket net total is $45.97. It is ready to send.
Verdict: Allowed.
The agent's request. Please check this checkout basket of three items. It holds Crest 3D White toothpaste 3.8 oz with the $4 off one Crest 3D White (manufacturer) and the $3 off Crest (store coupon) in the store slot, Coca-Cola 12-pack with the $1 off Coca-Cola 12-pack (store coupon) in the store slot, and Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer). The basket net total is $19.98. It is ready to send.
Verdict: Needs approval.
The agent's request. Please check this checkout basket of three items. It holds Crest 3D White toothpaste 3.8 oz with the $4 off one Crest 3D White (manufacturer), Coca-Cola 12-pack with the $1 off Coca-Cola 12-pack (store coupon) in the store slot, and Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer). The basket net total is $21.97. It is ready to send.
Verdict: Allowed.
The agent's request. Please check this checkout basket of three items. It holds 2 x Crest 3D White toothpaste 3.8 oz with the $2 off TWO Crest toothpastes (manufacturer), Coca-Cola 12-pack with the $1 off Coca-Cola 12-pack (store coupon) in the store slot, and Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer). It also uses $5 in ExtraBucks. The basket net total is $22.96. It is ready to send.
Verdict: Blocked.
The agent's request. Please check this checkout basket of three items. It holds 2 x Crest 3D White toothpaste 3.8 oz with the $2 off TWO Crest toothpastes (manufacturer), Coca-Cola 12-pack with the $1 off Coca-Cola 12-pack (store coupon) in the store slot, and Tide liquid detergent 92 oz with the $2 off Tide 92 oz or larger (manufacturer). It also uses $5 in ExtraBucks. The basket net total is $24.96. It is ready to send.
Verdict: Allowed.
The text of the narrated walkthrough, step by step.