Agent-Based Conversation Simulation Workflow
1
1. Implement Your Agent
Extend the abstract
Agent
class with your conversational AI logic. Your agent receives the full conversation state and must return a response for each turn.2
2. Prepare Scenario Data
Create a CSV file with scenario data. Each row is a test case describing the user goal, persona, and initial prompt.
3
3. Create a Test and Sessions
Upload your scenario CSV to create a test. The platform generates a session for each scenario.
4
4. Run the Simulator with Your Agent
Use
SimulatorService.simulate()
to execute the conversation between your agent and the synthetic user, for each session.5
5. Evaluate the Results
After simulation, analyze results and optionally trigger evaluations via
evaluations.create()
.Example: Agent-Based Simulation Workflow
1. Implement Your Agent
Create a Python class that extendsgaltea.Agent
. Your agent should implement the call
method, which receives an AgentInput
(including conversation history and context) and returns an AgentResponse
.
2. Create a Test and Sessions
In order to run simulations of conversations we need to have different scenarios and user persones. The easiest way to create these scenarios is to use the scenario based test creation feature of the platform.3. Run the Conversation Simulator
For each test case/session, use the simulator wrapper to run the full simulation with your agent:4. Evaluate the Session
By using the agent wrapper and simulation method, you can quickly evaluate your conversational AI models in realistic, repeatable conditions, leveraging Galtea’s powerful simulation and analytics tools.