Problem
Nubank has 131 million customers in Brazil, Mexico and Colombia. It wants support agents that act, for example by renegotiating debt or re-ordering a lost card. Survey NPS cannot steer them: response rates are low, feedback arrives days late, and samples are too small for fast A/B tests. Hand-written prompts break when the provider ships a newer model. When the LLM chains backend calls itself, it hallucinates or skips steps.
Example from the article: a card-delivery agent had to chain check status, verify address and trigger re-order, and it often hallucinated the sequence or failed mid-chain.
Solution in brief
Measure first: a transactional NPS (tNPS) plus an auditor LLM that scores every conversation on binary criteria. Optimize prompts with a tool instead of by hand, and move every deterministic sequence into one composite tool.
Questions this case answers
- How to evaluate every conversation of a customer-facing LLM agent when explicit user feedback is rare and arrives days late
- How to keep prompt-driven behavior stable when the underlying model is swapped or updated by the provider
- How to make an LLM agent reliable on a fixed sequence of steps where free-form reasoning produces skipped or invented steps
- How to measure the quality of a customer-support LLM agent when survey NPS is too sparse and too slow for daily iteration?
Tools and methods
- LLM-as-a-judge — a second LLM audits every conversation on three criteria
- tNPS — a survey tied to one AI interaction
- ReAct agent — prompt (reasoning), tools (actions), data (RAG and session context)
- Prompt optimization — modular, versioned prompts improved by DSPy or an optimizer the article calls "Japa"
- Composite tools — one deterministic API per multi-step process
- Simulation and red-teaming — simulated attacks on each variant before release
Google or a one-time email code. No password.