How to Test a Voice Agent with Chat Tests
Test a voice agent in seconds without a phone call: save pretend callers with pass checks, run them against your latest saved script, read why each one passed or failed, then make one test call to hear how it sounds.
Chat tests let you check what your voice agent says and does before anyone rings it. A pretend caller chats with your agent in text, following instructions you write, and each conversation is checked against what should happen. A test takes seconds and costs a fraction of a test call, so test this way first and make a real call only at the end to hear how the agent sounds.
Where to find it
- On any agent's page (for example https://app.trustpager.com/auto/voice-agents, then click the agent), click Test Agent. The window opens on the Chat tests tab. The Voice call tab next to it is the browser call you may already know.
- While editing the script at
https://app.trustpager.com/auto/voice-agents/<agent>/settings, click Test in the top bar, next to Save Draft.
Tests always run against your latest saved draft, so you can test a change before you publish it. Save the draft first; unsaved edits are not tested.
Writing a test
Click Add test and fill in three things:
- Test name: a short label, like Busy caller asks for a call back.
- The pretend caller: who they are, what they want and how they behave, written to them. For example: You are Jordan. Only answer what you are asked, one thing at a time. You are driving and can't talk. Ask them to call you back tomorrow afternoon, then say goodbye. Telling the caller to answer one thing at a time stops them rushing ahead and skipping the steps you want to check.
- Passes when: one plain check per line, describing what should happen in the conversation. For example: The agent agrees to call back tomorrow afternoon and The agent does not keep pitching. Every check must be met for the test to pass.
Open a saved test to edit it. Each field saves on its own when you click away. You can also fill in what the agent knows about the caller, one per line (for example first_name=Jordan), for agents that greet people by name.
Nothing real happens during a test
Bookings, emails, review links, messages and CRM updates are pretended during a test: the agent is told they worked, but nothing is saved and nobody is contacted. The calendar check answers with two sample times so a booking conversation can run all the way through. Leave Let tools run for real off unless you are testing in a practice workspace and want the actions to really happen.
Running tests and reading results
- Click Run all, or the play button on one test. Results usually arrive within a minute.
- Each result shows Passed, Failed or Did not finish, the reason, and the full conversation, including every action the agent tried to take. Did not finish means the conversation stopped early (for example the pretend caller stopped replying), so it says nothing about your agent: run it again.
- When a test fails, read the reason, fix that step of the script, save the draft and run the test again. Then run them all once more before you publish.
- AI conversations vary a little from run to run, so before going live it is worth running your tests a second time and checking they still pass.
Each test conversation costs 300 credits. See https://app.trustpager.com/settings/billing for your balance.
Then make one test call
Once your chat tests pass, switch to the Voice call tab and make one call from your browser to hear the voice, the pace and how it handles interruptions. Chat tests check what the agent says; a call checks how it sounds.
Using the API or an AI assistant
Everything here is also available through the TrustPager API and AI tools: list_voice_agent_tests, create_voice_agent_test, update_voice_agent_test, delete_voice_agent_test, run_voice_agent_tests, list_voice_agent_test_runs and get_voice_agent_test_run. See https://docs.trustpager.com for the full reference.