Pick a region and dark store to see what is going on there. The agent spots orders likely to be cancelled, fixes the cause before the rider drops it, and reassigns to the nearest idle rider when a cancel still happens.
Simulated zone: 6 dark stores, 18 riders and random incidents, with a built-in last hour of history. Each store has its own typical problem so the stores differ. The agent picks the nearest idle rider by distance at 18 km/h. The promise clock runs at 3x so you can watch outcomes. The 4.5 minute manual baseline is an assumption.
| Time | Order | Dark store | What it saw | Risk | What was done | Decided by | Took | Outcome | Bonus | Review |
|---|
Copy this text and paste it into a spreadsheet.
| System | What the agent gets or does | Needed |
|---|---|---|
| Rider app | Live rider location every few seconds, battery, and events: accepted, reached store, picked up, delivered, cancelled with the reason | Must have |
| Order management system | Order status, drop address, promised time, and which orders are at risk | Must have |
| Rider allocation system | Who is idle and who holds which order. The agent needs write access here to reassign an order. Often part of the order management system | Must have |
| Dark store systems | Packing status per order and staff on shift, to catch slow packing early | Add later |
| Payout system | Current incentive rules, so the agent can add a bonus within limits | Add later |
| Weather and traffic | Rain and congestion on the route | Add later |
Plan for: noisy GPS in dense areas, a clear rule for who counts as idle (not on break or ending a shift), position data no older than a few seconds, rider consent and tracking only on shift, and a fallback to "asks first" if any feed drops.
| Function | How it works | Limit on it |
|---|---|---|
| 1. Watch | Follows every active order and rider, using live location, order status and store packing status | Ignores any position older than a few seconds |
| 2. Score cancel risk | Gives each order a risk score from the wait at the store, payout against distance, rider battery, rain on the route, order weight and how clear the address is | Flags only orders above a set risk level |
| 3. Find the cause | Picks the reason that adds most to the score, such as slow packing or low payout, so it fixes the cause and not only the symptom | Shows the reason to the ops manager |
| 4. Fix early | Applies the action that matches the cause: a wait bonus and a faster picker, a distance bonus, a rain bonus, a rider with a larger bag, a message to the customer | Bonuses stay inside a set budget per order |
| 5. Reassign | When a rider cancels or breaks down, finds the nearest idle rider by distance and arrival time, and checks they can still arrive within the promise | Only riders within 3 km and on shift |
| 6. Escalate | If no idle rider is close enough, or the fix would break a limit, sends the order to the ops manager with the options | Always a human decision |
| 7. Act or ask | Carries out the fix itself or waits for approval, depending on the mode set for that action type | Falls back to asking if a data feed drops |
| 8. Log and learn | Records what it saw, did and the result. Overrides by people and cancels that still happened are used to improve the risk score | Every action can be traced and reversed |
In this prototype the cancel risk is a hand-set formula on simulated inputs (store wait, payout per km, order weight, rain, battery, address clarity, vehicle alert). It is not a trained model, and about a third of the flags are false alarms on purpose so you can see them in the Audit report. In production the risk score would come from a model trained on your past cancels, with a holdout group, and a language model can handle unusual cases and write the explanation shown to the ops manager.
Pick 4 to 6 dark stores for the agent and 4 to 6 matched stores without it. Match them on order volume, rider count, city zone and how often they have cancels. The control stores are what make the result believable.
Record the metrics on the Impact tab for all stores before switching anything on. Tag every rider cancel with a reason from the rider app, so the cause is known.
Ops managers approve each action for the first 2 weeks. This builds trust and shows which suggestions they reject. A reject rate above 10% means the rules or data need work.
Move customer messages, wait bonuses and reassignments to autonomous first. Keep higher-cost actions, such as larger incentives or moving staff between stores, on approval.
Compare pilot stores with control stores on the same weeks. This removes the effect of rain, festivals and promotions, which hit both groups.
Agree the success rules below before the pilot starts, so the decision is not argued afterwards.
| Metric | How it is calculated | Data source | Good is |
|---|---|---|---|
| Rider cancels per 1,000 orders | Orders cancelled by the rider after assignment, divided by orders, times 1,000 | Order and rider app events | Lower |
| On-time delivery | Orders delivered within the promise, divided by orders delivered | Order timestamps | Higher |
| Time from risk to action | Time between the risk flag and the fix being applied | Agent log, ops tool | Lower |
| Prevention rate | Orders flagged as likely to cancel that were delivered without a cancel | Agent log, order events | Higher |
| Handled without a human | Incidents closed by the agent, divided by all incidents | Agent log | Higher, within guardrails |
| Incentive per prevented cancel | Bonus spend triggered by the agent, divided by cancels prevented | Payout system | Lower |
| Override rate | Agent actions rejected or reversed by a person, divided by all actions | Agent log | Lower |
| Rider churn | Riders who stopped working in the period, divided by active riders | Rider HR or payout data | Not higher |
Choose a region and dark store, then read the store card for its main issue. The chart shows why riders cancel there. The list shows orders at risk and what the agent did or proposes. In "Agent asks first" mode, approve each fix yourself. Use "Simulate evening rush" to see the agent escalate to you when no idle rider is close enough.
Weekly, pilot stores against control stores. The agent goes live in week 5.
Cost of a cancelled order covers the refund, the extra delivery time, the support contact and the lost repeat order. Use your own finance figure. Per store, using the pilot-against-control gap in cancels. Annual figures are the monthly figures times 12, with no seasonality.