Testing Your Agent
This guide shows how to test your AI agent with simulations, entirely from the LangWatch interface. You write scenarios that describe real situations, run them against your agent, and read a clear verdict for each one. No code is involved in any step.One technical step happens before this guide: a developer connects the agent to LangWatch, so simulations can talk to it and the judge can see what the agent did internally. Send your developer the Connect your agent guide. It is a one-time setup and usually takes under an hour.
What a scenario is
A scenario has two parts:- Situation: who the user is and what they want. A simulated user plays this role and talks to your agent, turn by turn, like a real customer would.
- Criteria: what the agent must do, and must not do, for the conversation to pass. A judge model reads the full conversation, and the agent’s internal actions, and decides each criterion.
Where your scenarios live
Open Simulations → Scenarios in the sidebar. The Scenario Library lists every scenario in the project, with labels to organize them:
Create a scenario
Click New Scenario. You can describe what you want and let AI draft it, or build it yourself.A scenario is saved in your project, and everyone with access to the project can read it. The AI draft step also sends the text you give it to a model. Remove names, contact details, account numbers and other personal data before you paste, or replace them with invented equivalents. The test works the same way with invented details.
Draft with AI
Describe the behavior you care about in your own words. Paste in real material: a support ticket, a complaint email, a paragraph from a requirements document, or a snippet of a real conversation that went wrong. AI turns it into an editable situation and criteria:
Build it yourself
The editor asks for the name, the situation, and the criteria, with guidance next to it. You can hand any half-written scenario to AI for a draft at any point:
- Include at least one criterion about what the agent does internally, such as “looks up the order before answering” or “reads the tender documents”. The judge verifies these against the agent’s real actions, not against what the reply claims.
- Write at least one “must not” criterion for each scenario. The most valuable tests describe the failure you are afraid of: inventing a date, quoting another customer’s data, promising something the policy forbids.
Create scenarios with Langy
Langy, the assistant in the bottom corner of every page, creates scenarios for you. Paste text from documents or conversations you already have, describe what must hold, and Langy writes and saves the scenario in one step:
Create scenarios from your own tools
Your team’s AI assistants can create scenarios too. Through the LangWatch MCP integration, tools such as Claude and Cursor can read and write scenarios in your project. A teammate can highlight a bug report in their editor and ask their assistant to turn it into a LangWatch scenario, without opening the platform.Run your scenarios
Run one scenario
From the scenario editor, Save and Run asks which agent to run against:

Run a set of scenarios with a run plan
A run plan groups scenarios and runs them together against a target. This is what you run before a release, or after every change. Open Simulations → Runs, create a run plan with New Run Plan, pick the scenarios and the agent, and press Run:

Watch it run
Runs execute live. Each card is one conversation with your agent, and you can watch the messages arrive as the simulated user and the agent talk:
Read the results
Open any finished run. The top shows the conversation exactly as it happened, with the simulated user’s messages and your agent’s replies:

- Met: the conversation, or the agent’s internal actions, prove it.
- Not met: the agent did the thing the criterion forbids, or failed to do the thing it requires. Read the reasoning, then the conversation, and share both with your team; the run page link is enough for a developer to investigate.
- Inconclusive: the judge did not find evidence either way. For criteria about internal actions, this usually means the agent’s traces did not arrive; ask your developer to check the connection with the Connect your agent guide.
Make it a habit
- Run your run plan before every release. The history on the run plan page shows the pass rate over time, so a regression is visible the moment it happens.
- After every incident or complaint, add a scenario for it. The library becomes the collective memory of everything your agent must never do again.
- Keep scenarios short and focused: one situation, a handful of criteria. Ten small scenarios find more than one large one.