October 15, 2026
5 Whys: the Toyota technique that fixed our AI agent
Hey everyone, this is Allan. I want to talk about something that happened yesterday.
The Situation
I work with my co‑founder Danilo. While I’ve been focused on building systems and AI agents for our clients, Danilo has been developing a separate project for the healthcare side of our business in Brazil. He ran into a problem: the AI agent he built was ignoring the client’s setup and refusing to follow the rules he had defined. Danilo asked me to help solve it, so I spent yesterday working on that issue.
The Five Whys
To get to the bottom of the problem I used a technique I learned from Toyota: ask “why?” five times. After each answer, I ask “why?” again, digging deeper each round. Doing this repeatedly forces you to move past surface symptoms and uncover the root cause.
Root Cause
Applying the five‑whys revealed that the global base rules in Danilo’s system were overwriting the client’s prompt. The base prompts were placed above the client’s customization, so the client’s settings never took effect in the AI agent. That was why the system ignored the client’s configuration.
Advice
If you’re stuck on a problem, try asking “why?” five times. Each answer will take you deeper into the issue and help you find a real solution.
Solution Approach
After identifying the cause, I rewrote the system’s stages. First I built a minimum viable product (MVP) that incorporated the fix. Then I made the solution functional for different clients, and finally I refined it into a professional version. Staging projects this way makes it easier to see what needs to be done at each step and when a part can be considered complete.
I credit this approach to the Toyota technique, and it proved valuable on a real project yesterday.