UserSimulatorAgent
AI agent · Voice agent · Research by LangWatch
Automated multi-turn simulation and red-teaming for AI agents.
UserSimulatorAgent is an AI-powered user simulator for testing and red-teaming AI agents through multi-turn text and voice conversations. It helps developers catch regressions and security vulnerabilities by simulating realistic, adversarial user behavior in CI/CD pipelines.
Agent specs
The full spec card (context, pricing per token, modalities and more) on AntSpace. Sign up free to see the full spec card.
- Languages
- English
Category: AI Agents
- Channels
- API, Phone, Website chat, WebSocket, Twilio
- Deployment
- Cloud, Self-hosted, VPC, On-premises
- Max attack length
- 50 turns (Crescendo)
- Supported modalities
- Text, Voice, Images
- Integration methods
- Python SDK, TypeScript SDK, Go SDK, REST API
- Voice protocols
- OpenAI Realtime, Gemini Live, Twilio, Pipecat, WebSockets
- 50-turn adversarial Crescendo attacks
- Multi-turn text and voice simulations
- Persona-based user message generation
- CI/CD integration with pytest and vitest
- Framework-agnostic with OTel-native tracing
Overview
UserSimulatorAgent is an AI agent developed by LangWatch to automate the end-to-end testing of AI systems through realistic user simulations. It is designed for AI platform teams and developers who need to validate agentic behavior across multi-turn conversations in both text and voice formats. The agent generates messages based on specific personas and scenario descriptions, allowing teams to test edge cases such as interruptions, background noise, and complex tool-call sequences. Beyond standard testing, it performs advanced red-teaming, including 50-turn adversarial Crescendo attacks to identify security vulnerabilities like goal hijacking and PII exfiltration. UserSimulatorAgent is framework-agnostic, integrating with tools like LangGraph and CrewAI, and can be embedded directly into CI/CD pipelines using pytest or vitest. It provides a visualizer for debugging runs and supports deployment across cloud, VPC, and self-hosted environments.
User Simulation
- Multi-turn simulation: The agent generates realistic, multi-turn user messages from a scenario description to test full back-and-forth dialogues.
- Persona configuration: Users can define specific personas for the simulator, such as a hurried caller with a mild accent or a frustrated customer.
- Scripted to auto-pilot: The simulator can be configured to follow a fully scripted path or auto-pilot through automated runs.
- Text and Voice support: The agent supports testing of both text-based and voice-based AI systems.
Adversarial Testing and Red Teaming
- 50-Turn Crescendo attacks: The agent performs 50-turn adversarial Crescendo attacks to find vulnerabilities that single-shot prompts miss.
- Backtracking memory wipe_offering_details: When an agent refuses an attack, the simulator removes the exchange from memory and tries a new angle.
- Red-teaming capabilities: The simulator probes for jailbreaks, prompt leaks, PII exfiltration, and off-policy answers.
- Per-turn adaptive scoring: A separate judge model scores every turn of the adversarial run to ensure independent evaluation.
Voice Agent Specifics
- Audio conditions and noise: The agent simulates background noise, such as a cafe environment, and audio effects for voice testing.
- Interruptions and DTMF injection: The simulator can inject interruptions and DTMF signals to test how voice agents handle real-world call dynamics.
- Voice latency metrics: The system tracks latency metrics including time to first token (TTFB), p50, and p95 latency during simulations.
Developer and CI Workflow
- CI/CD integration: Simulations can be integrated into CI pipelines using pytest or vitest to gate releases on every commit.
- Simulation visualizer: A visualizer allows teams to replay and inspect each simulated run step by step for debugging.
- Framework-agnostic adapters: The simulator works with any framework, including LangGraph, CrewAI, and Pydantic AI, via a one-method adapter.
What it does
- Simulate multi-turn user conversations
- Perform adversarial red-teaming attacks
- Generate realistic user messages from personas
- Inject audio noise and interruptions for voice testing
- Verify tool calls across long dialogues
Use cases
- Security teams run 50-turn adversarial attacks to find jailbreaks and data exfiltration paths before production.
- AI engineers integrate multi-turn simulations into CI/CD pipelines to gate releases and prevent regressions.
- Voice platform teams simulate background noise and interruptions to test the reliability of voice-based AI agents.
- Product owners define business-level scenarios in plain English to validate that agents achieve specific goals.
Specifications
- Channels
- API, Phone, Website chat, WebSocket, Twilio
- Integrations
- LangGraph, CrewAI, Pydantic AI, Vercel AI SDK, LiteLLM, ElevenLabs, OpenAI Realtime, Twilio, Pipecat, Gemini Live
- Human control
- Users define scenario descriptions and success criteria; simulations can be paused for manual annotation.
- Deployment
- Cloud, Self-hosted, VPC, On-premises
- Setup
- Can be set up in as little as ten minutes using the Scenario SDK.
- Languages
- Supports multi-language testing including English, German, French, and Dutch.
- Max attack length
- 50 turns (Crescendo)
- Supported modalities
- Text, Voice, Images
- Integration methods
- Python SDK, TypeScript SDK, Go SDK, REST API
- Voice protocols
- OpenAI Realtime, Gemini Live, Twilio, Pipecat, WebSockets
- Test runners
- pytest, vitest, jest
- Deployment options
- Managed Cloud, Hybrid, VPC, Self-hosted
- Observability standard
- OpenTelemetry native
How it works
- Connect your agent: Install the langwatch-scenario package via pip or npm and point an adapter at your existing agent.
- Describe caller and verdict: Define the UserSimulatorAgent persona and the JudgeAgent success criteria in plain language.
- Run simulation in CI: Run the simulation programmatically or in your CI pipeline to test multi-turn interactions and edge cases.
- Inspect and debug: Use the Simulation Visualizer to replay runs, inspect traces, and verify tool-call behavior.
Pricing
- Developer (3 simulations)
- Free forever
- Growth (Unlimited simulations)
- €29 / core-seat / month + €5 / 100k events
- Enterprise
- Custom pricing
FAQ
How does simulation testing differ from standard LLM evaluations?
UserSimulatorAgent generates multi-turn conversations based on a scenario description and persona, whereas standard evals typically score a single final output for faithfulness or correctness.
Can I use UserSimulatorAgent to test voice-based AI?
Yes, the agent supports end-to-end voice simulations with ElevenLabs, OpenAI Realtime, Twilio, and Pipecat, including noise and interruption injection.
What kind of red-teaming attacks can the agent perform?
The agent performs 50-turn adversarial Crescendo attacks, which gradually escalate to find vulnerabilities like goal hijacking or PII exfiltration.
Does it work with my existing agent framework?
UserSimulatorAgent is framework-agnostic and works with LangGraph, CrewAI, Pydantic AI, and others through a simple one-method AgentAdapter.
Added by AntSpace from public sources (langwatch.ai).