Swiggy
Medium
A user orders through ChatGPT and gets the wrong item. Who owns the problem, and how do you fix it?
This is an ownership question in a three-party chain. Not a blame question. The user ordered through ChatGPT, paid Swiggy, and the restaurant packed the food. The user does not care whose bug it was. Separate who apologises from who fixes.
Step 1. Clarifying Questions
- What does "wrong item" mean? Chicken roll instead of paneer roll? Assume a different dish than the user asked for.
- How does the order flow? Assume ChatGPT calls Swiggy's official integration to search, build the cart and place the order. Swiggy takes the payment.
- Did the cart shown in ChatGPT match what arrived? Assume we don't know yet.
Why it matters: ordering through AI assistants is new. The first bad experiences decide whether users trust the channel. If people get burned, they go back to the app and the channel dies.
Step 2. Trace the order
1. User asks in ChatGPT: "Order a paneer roll from the place near my office."
2. ChatGPT interprets and calls Swiggy's tools (search, add to cart).
3. Swiggy returns catalogue results and builds the cart.
4. ChatGPT shows a confirmation, the user approves.
5. Swiggy places the order and takes payment.
6. Restaurant prepares and packs.
7. Delivery partner delivers.
Step 3. Where it can break, and who owns the root cause
- Steps 1 and 2: the AI picked the wrong item from similar options. AI platform, but vague item names and variants in Swiggy's API make it easier.
- Step 3: stale menu or wrong item mapping. Swiggy.
- Step 4: the confirmation did not clearly show the item. Shared.
- Step 6: wrong item packed. Restaurant, exactly like an app order.
Step 4. Who owns the problem
Swiggy, toward the customer. Always. Swiggy took the money and runs support. Refund or replace first, investigate after. Internally, the root cause owner is whoever the logs point to.
Step 5. Diagnose with three records
Compare what the user asked (the chat, if shared), what cart Swiggy received (API log), and what the restaurant packed (order ticket).
- Cart does not match the request: agent layer.
- Cart matches, food does not: restaurant.
This only works if agent orders carry a source tag and every tool call is logged.
Step 6. Fixes
- Swiggy: unique item IDs with clear variant names in the API. Return the ambiguous matches instead of picking one. Reject any order without a confirmation token showing item, price and address.
- AI platform: always show the structured cart before placing. Run evals on Swiggy tool use.
- Restaurant: same packing checks as app orders.
- Support: same refund rules as the app, and a "placed via ChatGPT" tag so agents see the context.
Step 7. Metrics
- North Star: agent orders delivered as the user intended
- Wrong item rate for agent orders vs app orders, split by cause (mapping vs packing)
- Guardrail: support contacts per 1,000 agent orders
Interview tip: say "Swiggy owns the customer, the logs own the root cause". It shows you can hold accountability and diagnosis apart.
Community Answers (0)
No answers yet. Be the first to share your approach!