How to test a Vapi agent
How many test calls would it take to find out your Vapi agent talks over its callers?
For us, it took three. We pointed simulated callers at a debt-collection agent, including one who kept cutting in. Those three calls turned up a 7-second latency spike and up to six moments per call where the agent talked over the caller.
In this guide, I'll show you how to connect a Vapi assistant to RubricHQ, generate test scenarios from its own prompt, run simulated callers against it and read the scores. Then we'll pull in your real Vapi calls, so they're scored the same way.
The example: Nora
Every screenshot here uses one assistant. Nora is a debt-collection agent for ABC Bank, built on Vapi. She confirms who she's talking to, explains the balance and takes a card payment.
That flow has two weak spots. Callers who interrupt make it hard for her to finish a sentence. And card numbers, dates and amounts have to survive being read out loud. Most of the tests below aim at those two things.
What you need before you start
You'll need four things from Vapi:
- Your Vapi private API key (Vapi dashboard → Organization → API Keys). Use the private key, not the public one.
- The Assistant ID of the assistant you want to test. It's a UUID, shown on the assistant's page in Vapi.
- The phone number attached to the assistant, if you want to test over the phone as well as over web calls
- Credit on your Vapi account. Test calls are real Vapi calls, so they bill your Vapi wallet.
Step 1: Connect your Vapi account
You only do this once per workspace. Every Vapi assistant you add later reuses the same key.
- Open Settings → Integrations.
- Under Voice Platforms, find the Vapi card and click Connect.
- Paste your Vapi private key and click Save. The field is masked, so the key never shows on screen.

RubricHQ checks the key with Vapi straight away. If you see a green Connected badge, it worked.
The card also gives you three links for later. Test re-checks the key, Edit lets you rotate it and Disconnect removes it.

Here's the catch. A connected key isn't the same as a funded account. If your Vapi wallet is empty, the key still checks out, but every test call fails.
We hit exactly this. Vapi rejected our calls with "Your Wallet Balance is -0.06. Please Purchase More Credits…" So top up your Vapi wallet before you run a batch.
Step 2: Add your Vapi assistant and sync its prompt
A test agent in RubricHQ points at one Vapi assistant. You don't copy the prompt across by hand. RubricHQ fetches it from Vapi for you.
- Go to Test Agents → Create Agent.
- Name it (ours is
ABC Bank – Nora (Vapi)) and under Agent Type, pick Vapi. The right-hand panel confirms Vapi connected to this workspace. - Paste the Assistant ID from Vapi.
- Click Sync instructions from vendor. This pulls the assistant's system prompt into Agent Instructions and pre-selects the Opening Prompt from the assistant's config.
- Fill in Agent Phone Number (the Vapi number, used for phone tests) and Primary Language.
- Under Auto-sync, turn on Sync instructions to re-pull the prompt every 24 hours. Turn on Fetch calls to import production calls (more on that in Step 5).
- Click Create Agent.

Why does the synced prompt matter so much? Because the scenarios in Step 3 are generated from it, and so is what each scenario expects your agent to do. If the prompt in RubricHQ is a week old, you're testing last week's assistant. That's what Sync instructions is for.
Who speaks first?
The Opening Prompt decides who talks first when a test call connects. You get three options:
- Our test bot speaks first with a defined message. The simulated caller opens with a line you type, like "Hi, I got a letter about my account." Use it when you want every test to start the same way.
- Our test bot speaks first with a generated message. The simulated caller opens with a line written from its scenario, so each test starts in character.
- Your agent speaks first — our test bot waits. The caller stays quiet until your agent greets it. Use it for agents that open with a greeting.
The option is pre-selected from the assistant's config when you sync. Still, check it before you run anything.
Check it against Vapi's First Message Mode
This mistake is easy to make, and nothing tells you when you've made it. So check it before your first run.
Every Vapi assistant has a First Message Mode. If it's set to assistant-waits-for-user, the assistant says nothing until the caller does. Now say your test agent's Opening Prompt is also set to wait. Both sides sit there in silence.
That's exactly what happened on our first run. All three calls connected, then ended after 32 seconds with silence-timed-out — no conversation detected (dead air).
Why 32 seconds? Vapi has a Silence Timeout setting that ends a call after a set number of seconds without activity, and that's what cut these calls off. So if you see a batch of calls that all end at the same short length, check who's supposed to speak first.
The fix took one dropdown change. Here's how to match the two settings:
| Vapi First Message Mode | Test agent Opening Prompt |
|---|---|
| Assistant speaks first | *Your agent speaks first — our test bot waits* |
| Assistant speaks first with a model-generated message | *Your agent speaks first — our test bot waits* |
| Assistant waits for user | *Our test bot speaks first with a generated message* (or *with a defined message*) |
The rule is simple. Exactly one side should speak first. If Vapi's mode has the assistant speaking first, in either form, your test bot waits. If the assistant waits, your test bot opens.

After the change, the same three scenarios ran for 2:16 to 2:58 each.
Step 3: Generate test scenarios from the prompt
A scenario is one simulated caller with a job to do. It has a persona, written instructions for how to behave and an expected outcome, which is what your agent should do with that caller.
It isn't a script your agent gets graded against line by line. The caller follows its instructions, but it reacts to what your agent actually says. And you don't write scenarios from scratch. They're generated from the prompt you synced in Step 2.
- Go to Live Simulations, select the Vapi agent and click Generate by AI.
- Set Number of Scenarios (up to 10 at a time).
- Pick a Caller Personality.
- Choose Standard or Red Team, and one or more Caller moods.
- Click Generate Scenarios.
Which personality should you start with? Pick the caller most likely to break your agent. Vapi assistants run their own turn detection, so interruption handling is worth testing early. We used Constant Interrupter, with three moods: Happy, Impatient and Skeptical.

About 30 seconds later, three scenarios were ready, one per mood:
- Happy Full Payment Resolution: an eager caller who talks over the agent out of enthusiasm and pays in full by card.
- Impatient Full Payment via Card: a rushed caller who interrupts every prompt and reads out all the card details in one breath.
- Skeptical Inquiry & Supervisor Request: a doubtful caller who questions whether the call is real, gives the SSN reluctantly and refuses to pay until they reach a supervisor.

Notice that all three interrupt, but for different reasons. The happy caller is excited. The impatient one wants it over with. The skeptical one doesn't trust Nora. Each one puts pressure on her turn-taking in a different way.
Each scenario has caller instructions you can edit, an expected outcome and four default metrics: Response Latency, AI Interruptions, Logic Accuracy and Comprehension Accuracy.
Step 4: Run a scenario and read the results
- Go to Live Simulations and select the Vapi agent.
- Hover over a scenario and click the ▶ Run Scenario icon at the end of its row.
- Choose a channel. Phone dials the assistant's Vapi number. Web connects through Vapi's API, with no phone carrier involved.
- Click View Batch Run to watch the call. A run takes as long as the conversation, usually two to three minutes, plus a few seconds of scoring.


To run several scenarios at once, tick their checkboxes and click Run Selected.
We ran all three scenarios over Web. Here's what came back:
Scroll sideways to see every column →
| Scenario | Duration | Avg latency | AI interruptions | Comprehension | Metrics passed |
|---|---|---|---|---|---|
| Happy Full Payment Resolution | 2:16 | 2,291 ms | 4 | 30 | 6/6 |
| Impatient Full Payment via Card | 2:43 | 2,306 ms | 6 | 60 | 4/6 |
| Skeptical Inquiry & Supervisor Request | 2:58 | 3,360 ms | 3 | 85 | 4/6 |
Nora talked over the caller in every call, between three and six times. The skeptical call had the highest average latency by about a second. And comprehension scores ran from 30 to 85.
Now look at the first row. Happy Full Payment Resolution passed 6/6 metrics while scoring 30 on Comprehension. If you only read the pass count, you'd call that the best call of the three. It wasn't.
So read the scores, not just the pass count. Then set thresholds on the metrics you care about, so a 30 can't pass.
What the skeptical run showed
The run page for Skeptical Inquiry & Supervisor Request shows why a pass/fail badge isn't enough.
Latency climbed as the call went on. Turns 1–3 sat around 2.5 s. Turns 7 and 8 took about 7 s each, which put the P95 at 7,080 ms. (P95 is the time 95% of turns came in under.) A caller who already thinks the call might be a scam won't wait seven seconds.
The agent also talked over the caller three times (AI interrupting user: 3). On the Impatient run, it was six.
The transcript shows what the caller actually heard. The agent split its replies into fragments, like "No problem at all, Mark. To continue…", while the caller kept interrupting.
And each LLM metric explains its score. Here's Comprehension Accuracy 60 on the Impatient run: "…proceeding with account/balance and payment prompts despite the user's repeated interruptions and requests to just explain why they were calling." That reason tells you what to fix. Nora wasn't mishearing. She was ignoring the caller's question and pushing on with her script.

What happens after you change the assistant in Vapi? Click Rerun all to replay the same scenarios, so you're comparing like with like. If you've only added or edited a metric, click Rerun metrics instead. It re-scores the calls you already have.
Step 5: Fetch production Vapi calls for monitoring
Simulations show you how your agent handles the callers you thought of. Production calls show you the ones you didn't.
So import the calls your Vapi assistant handles and score them with the same metrics you use in testing. There are two ways to do it.
Automatically. In the agent's settings, turn on Auto-sync → Fetch calls. Then set three things. sync calls from is a start date, and only calls on or after it are imported. every is how often to check, 1 hour by default. min call duration skips hang-ups, and it's 10 seconds by default.
On demand. Open Observability → Conversations, select the Vapi agent and click Fetch Calls.
Our fetch brought in six calls from the assistant's Vapi call log. Each row shows the Vapi call ID and Vapi's own end reason. Calls start as Pending while they're analysed, then move to Pass or Fail.

The end reason alone is a useful monitor. Three of the six calls ended with silence timed out after 33 seconds.
Look familiar? Those were the dead-air calls from the first-message mismatch in Step 2. Our test calls ran through Vapi, so they sat in the same Vapi call log as everything else, and the fetch picked them up.
That's also why it's worth watching this end reason. Vapi's docs treat silence-timed-out as an expected way for a call to end, not an error. So Vapi won't flag it for you.
In production, a cluster of silence timed out calls is an early sign that something upstream is broken. It could be a first-message setting, a failing tool or a voice provider outage.
Open any imported call to see the same analysis as a test run: per-turn latency, recording, conversation stages, transcript and scored metrics. From there, you've got two buttons.
Create Replay Scenario turns the real call into a reusable test scenario. Say a real caller reads out a card number in two chunks and Nora jumps in after the first. You'd turn that call into a scenario, so every future change gets tested against it. That's how a production failure becomes a regression test.
Rerun runs the analysis on the call again.
One thing to watch: every imported call is analysed, and that uses credits. Set the start date and minimum duration before you turn on auto-fetch for a busy assistant.
FAQ
Which Vapi key do I use? The private API key. The public key can't read assistant config or call logs.
Do test calls cost Vapi credits? Yes. They're real calls through your Vapi account. If the wallet is empty, calls fail with a 400 from Vapi, even though the integration shows Connected.
Why did my test calls end in silence after about 30 seconds? Both sides were waiting for the other to speak. Switch the Opening Prompt to Our test bot speaks first, or set the Vapi assistant to speak first.
Web or phone? Use Web for everyday regression runs. It's faster, with no phone carrier involved. Use Phone before a release, to cover the telephony path.
Building on Retell instead? See how to test a Retell agent.
AI agents fail quietly.
RubricHQ catches it before your callers do.



