Handle ticket #4821 (billing issue)
Agent: customer-support-agent
success
2.34s
Started: Apr 6 02:00 PM
Ended: Apr 6 02:00 PM
Spans: 5
Spans
fetch-ticket
ok
120ms
Input
{
"ticket_id": 4821,
"system": "zendesk"
}
Output
{
"subject": "Incorrect charge on invoice #2024-03",
"priority": "high",
"customer_tier": "pro"
}
lookup-billing-history
ok
380ms
Input
{
"customer_id": "cus_abc123",
"months": 3
}
Output
{
"invoices": [
{
"id": "2024-03",
"amount": 9,
"status": "paid"
}
],
"discrepancy": "Charged $18 instead of $9 — duplicate subscription event"
}
generate-response
ok
1.22s
Input
{
"tone": "empathetic",
"action": "refund",
"amount": 9
}
Output
{
"response": "Hi! I can see there was a billing error. I've issued a $9 refund — you should see it in 3-5 business days."
}
issue-refund
ok
370ms
Input
{
"customer_id": "cus_abc123",
"amount": 9,
"reason": "duplicate_charge"
}
Output
{
"refund_id": "re_xyz456",
"status": "succeeded"
}
close-ticket
ok
210ms
Input
{
"ticket_id": 4821,
"status": "solved"
}
Output
{
"updated": true
}
Like what you see? Instrument your own agents with 3 lines of code.
Start free — no credit card required