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.
Investigate
- 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.
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 window
104 tokens sent
- Your messages19
- Tool definitions54
- System prompt31
0.01% of the 10,48,576-token window. Every call sends all of it again.
Context window104 tokens sent
- System prompt31
- Tool definitions54
- Your messages19
The money went wrong somewhere. Click the step where it happened.