Voice AI Testing
End-to-end test automation for AI voice agents
Overview
Voice Testing is an end-to-end feature that automates testing of your AI voice agents. Our platform simulates a call from an AI tester that interacts with your voice agent by following a pre-defined call script. After the call, the transcript is sent to a language model (LLM) along with your evaluation rubric. The LLM then determines if the call met the defined objectives.
Creating a Test Suite
Begin by creating a Test Suite that organizes and executes multiple test cases.
Step 1: Create a New Test Suite
- Navigate to the Test tab in your dashboard and select Test Suites.
- Click the Create Test Suite button.
Step 2: Define Test Suite Details
- Enter a title for your Test Suite.
- Select a phone number from your organization using the dropdown.
- Make sure the phone number has an assistant assigned to it (if not, navigate to Phone Numbers tab to complete that action).
Step 3: Add Test Cases
- Once your Test Suite is created, you will see a table where you can add test cases.
- Click Add Test to add a new test case (up to 50 can be added).
Step 4: Configure Each Test Case
- Script: Define how the testing agent should behave, including a detailed multi-step prompt to simulate how the customer should behave on the call.
- Rubric List one or more questions that an LLM will use to evaluate if the call was successful.
- Attempts: Choose the number of times (up to 5) the test case should be executed each time the Test Suite is run.
Step 5: Run and Review Tests
- Click Run Tests to execute all test cases one by one.
- While tests are running, you will see a loading state.
- Upon completion, a table displays the outcomes with check marks (success) or x-marks (failure).
- Click on a test row to view detailed results: a dropdown shows each attempt, the LLM’s reasoning, the transcript of the call, the defined script, and the success rubric.
Test Execution and Evaluation
When you run a Test Suite, the following steps occur:
- Call Simulation: An AI voice agent dials your voice agent, executing the pre-defined script.
- Transcript Capture: The entire conversation is transcribed, capturing both the caller’s behavior and your voice agent’s responses.
- Automated Evaluation: The transcript, along with your Success Criteria, is processed by an LLM to determine if the call was successful.
- Results Display: Each test case outcome is shown with details. Clicking on a test case reveals:
- The number of attempts made.
- The LLM’s reasoning for each attempt.
- The complete call transcript.
- The configured script and rubric.
Example Test Cases
Below are three example test cases to illustrate how you can configure detailed simulation scripts and evaluation rubrics.
Example 1: Billing Support
In this example, we will simulate a customer who is frustrated and calling about a billing discrepancy.
Script:
Rubric:
Example 2: Account Inquiry
Unlike in the previous example, this time we will provide a more free-form script for the test agent to follow.
Script:
Rubric:
Example 3: Appointment Scheduling
This time, we will spin up an even more detailed personality for the test agent. By showing these varied styles of scripts, we hope to show the flexibility of the Voice Testing feature and how you can use it to meet your testing needs.
Script:
Rubric: