Card-dispute agent · reference architecture
13 components · The full design lesson 2 builds towards. Pick a component to see what it does here, how it is set up, and what to watch for.
The system you’ll build
Reference architecture · 13 components
Pick a component to see its detail.
Component
Dispute workflow
The orchestrator: runs each dispute as a graph of steps (find the transaction, explain it, open the dispute, propose a credit), calling the model and the tools.
- Framework
- LangGraph
- Step cap
- per conversation
- Token budget
- per conversation
Watch for
Without a token budget, model-gateway timeouts turn into retries on every live conversation, and the load cascades onto core banking.
Capacity · at 3× peak
From the cost model- Turns / min
- 250
- Input tok / min
- 2.1M
- Output tok / min
- 88k
- Model cost / month
- $37,944
20,000 conversations a day, 6 turns, Sonnet 5.5 with a 90% prompt-cache hit. Change it in the cost model.