Galtea’s Conversation Simulator allows you to test your AI products — chatbots, assistants, and agents — by simulating realistic multi-turn user interactions. This guide walks you through integrating your agent and running simulations using Behavior Tests.Documentation Index
Fetch the complete documentation index at: https://docs.galtea.ai/llms.txt
Use this file to discover all available pages before exploring further.
Agent Integration Options
- Simple
- Chat History
- Structured
The quickest way to get started. Your function receives just the latest user message as a string.
All three signatures work with
evaluations.run(), inference_results.generate(), and simulator.simulate(). Both sync and async functions are supported. The SDK auto-detects which signature you’re using from the type hint on the first parameter.For the full list of fields available on AgentInput (including structured input access via message metadata), see the AgentInput reference.Conversation Simulation Workflow
Prepare Scenario Data
Create a CSV file with scenario data, or generate test cases from your specifications. Each row describes a user goal, persona, scenario, and the first user message.
Create a Test and Sessions
Upload your scenario CSV to create a test, or use AI-generated tests from the dashboard. The platform generates a session for each test case.
Run the Simulator with Your Agent
Use
simulator.simulate() to execute the conversation between your agent and the simulated user for each session.Step-by-Step Guide
1. Create a Test and Sessions
First, create behavior test cases with user personas and goals. You can generate these from your product description or upload a CSV:2. Run the Conversation Simulator
For each test case/session, use the simulator to run the full simulation with your agent function:You can optionally use the
@trace decorator to capture internal operations during simulation. Traces are automatically collected and saved per turn.
See the Tracing Agent Operations guide for more details.3. Evaluate the Session
When using structured JSON inputs in test cases (e.g.
{"user_message": "hello", "chat_type": "support"}), the extra fields are available in messages[0].metadata on the AgentInput. See AgentInput reference for details.Advanced Usage: RAG Agents with Retrieval Context
For Retrieval-Augmented Generation (RAG) agents, you can return the context that was retrieved and used to generate the response. This context will be logged with the inference result, enabling evaluations with metrics likeFaithfulness and Contextual Relevancy.
retrieval_context field is optional and can contain:
- Retrieved document snippets or full documents
- Formatted context strings
- JSON-serializable data structures
Next Steps
Specification-Driven Evaluations
Automate simulation + evaluation from specifications with
evaluations.run().Tracing Agent Operations
Capture internal operations of your AI agent during simulations.