Building Customer Support AI Agents at 100M-User Scale: An Evaluation-Driven Framework
This paper presents a unified, evaluation-driven framework developed at Nubank that integrates structured context engineering, human-in-the-loop iteration, and rigorous LLM judge evaluation to successfully deploy production-ready customer support AI agents across five domains for over 100 million users, achieving significant improvements in satisfaction and self-service rates while demonstrating a strong correlation between offline metrics and online impact.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you run a massive bank with 100 million customers. Every day, millions of people call or chat asking questions like, "Where is my credit card?" or "Why do I owe this much?"
In the past, you'd need an army of human agents to answer these. But now, you want to build a super-smart AI robot to handle these conversations. The problem? If the robot gives a wrong answer, a customer gets angry, loses trust, and leaves. You can't just "guess" if the robot is good; you need to be 100% sure before you let it talk to real people.
This paper is a blueprint from Nubank (a giant bank) on how they built these AI robots safely and successfully. Here is how they did it, explained simply:
1. The Problem: Building a Robot Without a Crash Test
Usually, when people build AI, they write instructions, test it a little, and hope for the best. The authors say this is like building a car and driving it off a cliff to see if the airbags work. In customer support, a crash is too expensive.
They needed a way to test the robot thousands of times in a "simulator" before letting it talk to a single real human.
2. The Solution: The "Evaluation-Driven" Factory
Instead of just writing instructions, they built a factory line with four main stations. Think of it like tuning a race car:
Station 1: The Modular Kit (Context Engineering)
Instead of writing one giant, messy instruction manual for the robot, they broke it into Lego blocks.- The Rules: How the robot should speak (polite, concise).
- The Playbook: Step-by-step guides for specific problems (e.g., "If the card is lost, do step A, then step B").
- The Tools: A list of things the robot can actually do (like checking a database or reissuing a card).
- The Memory: A scratchpad where the robot writes down what it learned during the chat.
- Why it matters: If the robot gets the greeting wrong, you only swap the "Greeting Lego block." You don't have to rebuild the whole car.
Station 2: The Robot Judges (LLM-as-a-Judge)
How do you know if the robot is doing a good job? You can't ask the robot to grade itself. So, they used another AI (a "Judge") to grade the first robot's answers.- The Catch: Sometimes the Judge AI is biased or lazy. To fix this, they used a special technique called GEPA. Imagine a coach who watches the Judge AI grade a test, realizes the Judge was too harsh, and rewrites the grading rubric to be fairer. They did this automatically until the grading became super consistent.
Station 3: The Human Safety Net (Inter-Rater Reliability)
Before trusting the AI Judge, they had real humans grade the same answers. They checked if the humans agreed with each other. If the humans agreed 90% of the time, they knew the test was fair. Then, they made sure the AI Judge agreed with the humans just as much.Station 4: The Real-World Test (A/B Testing)
Once the robot passed the simulator tests, they let it talk to a tiny group of real customers (like 1% of users). They compared this robot to the old system. If the new robot made customers happier, they let it talk to more people.
3. The Results: The Robot Wins
They tested this system on five different types of problems:
- Card Delivery: "Where is my card?"
- Debt Management: "How do I pay off my loan?"
- Credit Limits: "Can I get a higher limit?"
- Card Management: "Change my PIN."
- Product Explainer: "What does this feature do?"
The Magic Numbers:
- Happiness: For the "Card Delivery" robot, customer happiness (measured by a score called tNPS) jumped by 37 points. That's a massive improvement.
- Self-Service: More people solved their problems without needing a human. The "self-service rate" went up by 29 points.
- Human vs. Robot: In four out of five cases, the robot was almost as good as a top-tier human expert (within a few percentage points). The only place it struggled a bit was the very complex "Debt Management" area, which makes sense because that's the hardest math and empathy problem.
4. The Big Lesson: "If you can measure it, you can fix it"
The most important takeaway from the paper is this: The quality of your testing determines how fast you can improve.
Because they built such a rigorous testing system (the "simulator"), they could make changes to the robot's instructions and know immediately if it got better or worse. They didn't have to wait weeks to see if customers were happy. They could iterate (improve) the robot dozens of times in the simulator, and when they finally launched it, it was already a champion.
In short: They didn't just build a smart AI; they built a smart testing lab for the AI. And because the lab was so good, the robot they sent out to the world was incredibly reliable, happy-making, and ready for 100 million users.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.