Google has launched a new feature in its Agent Development Kit (ADK) called User Simulation. This tool helps developers test and improve their conversational AI agents more effectively. Importantly, it addresses a common and difficult problem: making sure AI agents can handle realistic, multi-step conversations.
Takeaways 🚀
✅Simplifies multi-turn conversation testing.
✅Focuses on user intent goals.
✅Reduces time for test creation.
✅Builds resilient, adaptable evaluation processes.
✅Enhances AI agent reliability significantly.
The Old Way of Testing AI is Tough
Creating a good AI agent involves a lot of testing. Agents are conversational, meaning users often ask follow-up questions or change their requests.
Previously, developers had to manually write out every possible conversation. They would create long scripts with specific user inputs and the agent’s expected replies. As a result, this method was slow and fragile. Even a small update to the agent could break all the tests, forcing developers to start over. Consequently, maintaining tests became a frustrating and time-consuming chore.
What is User Simulation?
Now, Google’s User Simulation changes this process. It is a smart tool built directly into the ADK evaluation system. It uses a large language model (LLM) to act like a real user.
Rather than following a rigid script, developers give the simulator a high-level goal. After that, the simulator has a dynamic conversation with the agent to achieve that goal. Thus, this tests the agent’s ability to understand and fulfill a user’s intent, not just its ability to follow a script.
How Does It Work?
The process is straightforward. Moreover, it gives developers control over the testing environment.
1. Define a Conversation Goal
To begin, you create a ConversationScenario. This is a simple instruction for the simulator. It has two main parts:
- A starting prompt: This is the fixed, first message that begins the conversation.
- A conversation plan: You write a simple, natural language goal for the simulator. For example, you could tell it to “roll a six-sided die, then check if the result is a prime number.”
After setting this up, the simulator generates the user’s side of the conversation on the fly. It continues the chat until it completes the plan. Because of this, the test remains strong and flexible, as it focuses on the final outcome rather than the exact words used.
2. Configure the Simulation
Next, you can adjust the simulator’s behavior. An EvalConfig file lets you fine-tune the test. Key settings you can control include:
- Model: Choose which LLM powers the simulator (e.g., gemini-2.5-flash).
- Turn Budget: Set a limit on how many back-and-forth messages can occur. This prevents the conversation from getting stuck in a loop.
- Custom Persona: You can change the simulator’s personality. This allows you to test how your agent handles different types of users, such as someone who is confused or, alternatively, one who is more demanding.
3. Run the Evaluation
Once your scenario and configuration are ready, you simply run the evaluation. Then, the system provides a detailed report of the entire interaction, clearly showing you how your agent performed.
What This Means for Developers
As a result, this first version of User Simulation provides immediate benefits for developers building AI agents.
- Saves Time: You no longer need to write complex, turn-by-turn scripts. Instead, defining high-level goals is much faster.
- Builds Stronger Tests: Tests now focus on the user’s intent. Because of this, they won’t break every time you make a small change to your agent’s code.
- Improves Reliability: You can quickly create many different test cases. This helps you build a safety net to catch problems before your agent goes live.
The Future of AI Agent Development
Looking ahead, Google sees goal-oriented simulation as a key part of building reliable and trustworthy AI. This new feature is the first step toward a complete set of simulation tools for the entire agent development process.
By making testing easier and more realistic, User Simulation helps developers create better and more dependable conversational agents.
If you’re ready to try it out, you can find more information in the official ADK documentation and explore the Colab tutorial to get started.

