Skip to content

The ₹4.99 refund

You're QuickCart's AI engineer. A ticket just came in.

Priya Shah · Head of Support, QuickCart · 9:12 am

A customer just called, furious. Our bot refunded her ₹4.99 for a ₹499 cable, and told her it refunded ₹499. The run is attached. Find out what happened and fix the bot before it does this to anyone else. It has to work for any amount.

1

Investigate

Incident: refund for order A123gemini-3-flash-previewRecorded real run
model calls
1
tool calls
0
tokens in
104
tokens out
25
time
1.7s

Task My USB cable (order A123, Rs 499) arrived broken. Please refund it.

You
task
Model1.7s
refund

Model call 1. It read 104 tokens and wrote 25. It asked for a tool, so it isn't done.

refund({"order_id":"A123","amount":499})

stop_reason: tool_use

Context window104 tokens sent

  • System prompt31
  • Tool definitions54
  • Your messages19
step 1 of 3

The money went wrong somewhere. Click the step where it happened.

2

Fix the bot

3

Prove it