Skip to content

Test AI agents before launch with synthetic scenarios and simulated users

Synthetic test scenarios let you run simulated users against your agent before launch, surfacing the failures that only appear in real conversations.

By Arun Prasad · Published · Last updated

On this page

Why synthetic test scenarios matter for AI agents

AI agents don't fail like normal software. A tool can return a 200 and the task can still fail. Standard monitoring shows the request went through, not whether the answer was right.

That gap is what makes pre-launch testing with simulated users worth doing. When you wait for production traffic to surface failures, real users absorb the cost. A customer-facing agent that confidently answers outside its knowledge, ignores a user's intent mid-conversation, or calls the wrong tool in sequence will fail in ways no latency dashboard will catch.

Systematic pre-launch testing with realistic simulated users catches the category of failures that only appear when conversations get complicated: changing intent, missing details, out-of-knowledge questions, and tool calls that execute correctly but produce the wrong outcome.

Synthetic scenarios give you a repeatable way to find those failures before launch and to prove they are fixed before you ship again.

Step 1: Give your agent a Knowledge Base it can be tested against

Start by uploading the documents that define what your agent should and should not do, PRISM grades every simulated conversation against them.

Upload .txt, .md, .pdf, .docx, .html, .csv or .json files up to 50 MB each, or paste text directly, and assign each document to your agent. PRISM needs at least one document before it can write tests.

What you upload arrives as "Not reviewed". PRISM checks nothing against a document until you approve it, so you control what counts as ground truth for the test. Adding a document costs 1 credit; if your balance is at zero, the document is still added at no charge.

For a customer support agent, the right documents are your product FAQ, your policy pages, and anything that defines the boundaries of what the agent should and should not do. The more precisely those documents reflect the agent's actual job, the more precisely the test will find the gaps.

Step 2: Point PRISM at your agent's public chat endpoint

Give PRISM the public https address your app's chat sends messages to. PRISM will then test your agent by talking to it.

Before writing any tests, PRISM sends one message to check the endpoint is reachable. That check is free. Once it confirms a connection, it generates tests from your Knowledge Base and waits for you to say go.

If your agent calls tools such as looking things up, creating records, or moving money, the Action check runs those conversations against fake copies of your tools, so nothing real is touched during testing. The setup requires no changes to your code: you give PRISM the address, and PRISM does the rest.

If you are testing a voice agent, test the text endpoint that sits behind it. PRISM tests text chat.

Step 3: Choose which checks to run

PRISM offers four checks. You can run all of them or pick the ones that fit your agent's job.

Boundary check Tests whether your agent answers what your documents cover, says it does not know what they do not cover, and stays within its defined role. Writing the tests costs 1 credit per 10 tests kept. Each test your agent answers costs 1 credit; a test with no answer is free.

Conversation check Simulated customers hold whole multi-turn conversations with your agent, graded against your documents. This is where changing intent, follow-up questions, and mid-conversation course corrections get tested. Each conversation costs 2 credits.

Reading accuracy Your agent reads practice documents and returns the right fields, useful for agents that extract data, summarize records, or fill structured outputs. Each practice document costs 2 credits.

Action check Grades what your agent did in the Conversation check conversations, against fake copies of its tools. It adds no extra credits to what you have already spent on conversations.

PRISM shows you the full cost before running anything and will refuse to start a test if your credit balance cannot cover it. As a rough guide, a first Boundary check of about 19 tests costs about 21 credits.

The number of questions, conversations and documents per test varies by plan. The Action check requires Growth or above. Free and Builder plans include a sample of conversations and documents to start with.

Step 4: Review the verdict and the failing conversations

When the test finishes, PRISM gives you a single verdict for the whole run: Ready, Nearly ready, Not ready to launch, or Not checked.

Along with the verdict, you get the specific replies that went wrong and instructions to paste into your agent's prompt to fix them. You do not have to work out what broke. PRISM points at the conversation, the rule it broke, and the change that should fix it.

Every mistake the test found is filed on the Issues page, so the failures become a tracked backlog rather than a list you have to manage yourself.

Step 5: Turn failures into regression tests and re-run

A failing scenario automatically becomes a regression test. The goal is not just to fix the failure once, but to make sure it does not come back.

Re-test the same tests re-runs the identical set of conversations so your before-and-after results compare fairly. You are not generating a new batch of tests that happen to cover the same area; you are running the exact same inputs again, which makes the comparison meaningful.

On Growth and Scale, failures from the last run carry forward automatically into the next one, so the test suite grows to reflect every failure your agent has had, not just the ones from the most recent run.

For simulated users specifically, Run these users again re-tests the same simulated people after you change the application, the same personas and the same starting conditions, so you can confirm the fix held.

How this looks in production

Here is what PRISM does when you run simulated users against a real agent.

You describe your app. PRISM generates simulated users from that description and your Knowledge Base: 7 user types specific to your application, the kinds of people most likely to use it, plus 3 that actively try to break it, pushing edge cases, contradictions, and out-of-scope requests.

Each simulated user is given a realistic situation: changing intent partway through, leaving out details you would expect them to have, running into tool problems, or asking questions your documents do not cover. PRISM then has each one hold a full conversation with your agent.

After each conversation, PRISM asks the simulated user how it went and grades the exchange against your Knowledge Base. For agents that take actions such as tool calls, data writes, or money movement, PRISM also grades what the agent did, not only what it said.

Creating the simulated users costs 1 credit per user. Each conversation that finishes costs 1 credit.

The verdict PRISM returns covers the whole run: Ready, Nearly ready, Not ready to launch, or Not checked. Each failure includes the conversation that caused it, the specific rule it violated, and instructions to paste into your prompt to fix it. Every rule your application broke becomes an Issue filed on the Issues page, with severity, a suggested fix and expected impact tracked in one backlog.

Run these users again re-runs the same set after you apply the fix, so you can confirm the issue is closed before it reaches a real user.

The failures surface before launch. The regression test exists before anyone has to file a bug report.

Common mistakes

1. Running tests without a Knowledge Base

PRISM grades every conversation against your documents. Without at least one document it has no ground truth, cannot write meaningful tests, and cannot tell whether an answer is right or wrong. The fix: upload the files that define your agent's job before you run anything. A FAQ and a policy page are enough to start.

2. Treating the first run as a pass/fail gate

The first test run is a baseline, not a verdict. Almost every agent will have failures on its first run; that is the point. The useful question is not whether it passed but which failures matter most and whether they are the same ones next time. Treat the first run as a snapshot to improve against.

3. Not re-running the same test set after a fix

Re-test the same tests runs the identical inputs again so the comparison is fair. If you generate a new test batch after a fix, you do not know whether the original failures are gone or just not covered this time. Use the re-test feature so the before and after are genuinely comparable.

4. Testing only happy-path conversations

An agent that handles the easy cases perfectly can still fail badly when a user changes their mind mid-conversation, leaves out a key detail, or asks something just outside the agent's knowledge. PRISM generates situations that include changing intent, missing information, tool problems, and edge cases. Run the Conversation check, not just the Boundary check, to find these.

5. Checking the final answer but ignoring what the agent did

For agents that call tools, the right answer in the chat window does not mean the right action was taken. An agent can say done and have called the wrong tool, written to the wrong record, or skipped a required step. The Action check grades what the agent did in those conversations against fake copies of its tools, so nothing real is touched, but you get a verdict on the behavior that actually matters.

How do you test an AI agent before launch?

Give the agent a document set that defines its job: what it should answer, what it should refuse, and what it should do. Point a testing tool at its chat endpoint. Run simulated conversations graded against those documents. Treat every failing conversation as a regression test rather than a one-time fix.

PRISM checks it can reach your agent, writes tests from your Knowledge Base, runs them when you say go, and hands you a verdict, the replies that went wrong, and instructions to paste into your prompt to fix them. The whole loop runs before any real user is involved.

What makes a good evaluation framework for agent testing?

A good framework covers two categories of checks: deterministic rules that give the same verdict for the same input every time and run on 100% of sessions with no sampling, and an LLM judge that reads the full exchange and grades intent, quality and boundary behavior.

Beyond that, it covers both single-turn and multi-turn conversations, grades what the agent did and not just what it said, and ties each failure to a reproducible test so you can confirm the fix held. See how to build an evaluation framework for AI agents for a fuller treatment.

How do you catch agent failures in realistic scenarios?

Realistic scenarios include the situations happy-path tests miss: a user who changes their mind partway through, a question the agent's documents do not cover, a tool call that returns a valid response but produces the wrong outcome, or a detail the user forgot to provide.

PRISM generates simulated users from your app description and Knowledge Base: 7 types specific to your application and 3 that actively try to break it. Each one is given a situation that includes changing intent, missing details, tool problems, and edge cases, and PRISM judges whether the user got what they came for, not just whether the agent returned a 200.

Find out if your agent is ready to launch

Run simulated users against your agent, get a verdict, and turn every failure into a regression test before a real user finds it.

Free plan available.