# Test your agent before it calls anyone Try a voice agent with a sample caller in your browser, or have it ring your own phone. A browser test uses your microphone. A phone test is a real call, billed like any other, so it needs consent for your number first. _Takes about 10 minutes for the first test._ ## Before you start > **Save first** > > A test runs the saved version of the agent. If you have unsaved edits, save them first. The Test agent button in the editor says the same thing when there are unsaved changes. > > [Open Voice agents](/wani) > **A phone test rings a real phone** > > Calling your own phone is a real call. It is billed like any other call and passes the same consent and calling-window checks. Have the consent basis and its evidence ready before you start. ## 1. Open the test In the editor, press Test agent in the top bar, or open the Test tab. The Test tab lists sample callers. Each one has a difficulty, easy, medium or hard, and a use case. Press Simulate Call next to a caller. The test opens with that caller already chosen, so the agent greets that person by name. You can also press the Test button on the agent's card in the Voice agents list. ## 2. Run a browser call Choose Browser call, then press Call agent. Allow the microphone when your browser asks. The agent speaks through your speakers and listens through your microphone. A timer shows how long the call has run. The call screen has a microphone mute button and an End button. If the browser does not allow the microphone, the agent can still speak but cannot hear you, and the screen says so. Allow the microphone from the address bar, then call again. A browser test reserves credits for up to the longest call your agent allows, and it is charged only for the time the call was connected. > **If test calls are not switched on** > > If the platform's voice engine is not set up, the test does not start. The screen says that test calls are not switched on for this platform yet, and no credits are reserved. ## 3. Ring your own phone Choose the phone option, labelled Call my phone via Vobiz, or via Sarvam where it is shown. A provider button is switched off when that carrier is not set up for the platform, and the line under the button says what is missing. Type your phone number with the country code. For India, start with plus 91. The screen says the call rings a real telephone and is billed like any other call. Fill in the consent section. Choose a consent basis, say where the consent came from, and give the evidence, as you would for any call. There is no default basis. The screen first reads any consent already on file for your number, so an existing record is not re-dated by accident. Press Call my phone via, then wait. The steps show one by one: the consent check, the queue and the dispatch. > **A draft can be phoned** > > The phone test calls the agent as it is stored right now, not a frozen published version. The screen says so when the agent is still a draft. ## 4. Read the result The result shows the queue status, the provider the call was routed to, the call state and the duration once there is one. When a carrier takes the call, the screen also shows the credits reserved for up to the call's minutes. Those are reconciled against the carrier's own record afterwards. If the call did not happen, the screen gives the reason in the carrier's words, or the reason code for a refusal, and any reservation is returned. If the call is still running when the screen stops checking, the screen says its outcome will appear in Call logs. ## 5. Look at past tests Below the sample callers on the Test tab, Past tests lists the test calls you have made with this agent. Use it to compare how the script behaved before and after an edit. Each test shows its transcript when one was recorded. Nothing is graded for you. The sample caller's expected actions are shown beside the transcript so you can check it yourself. ## 6. What you will see During a browser call the top of the stage shows the state of the call: Starting, Connecting, In call with the timer, or Call ended. When the call ends, the screen says why it ended, in plain words. During a phone test the screen shows the steps, then the result, and a Check again button if the call is still running after the screen has stopped checking. ## 7. If something goes wrong If the microphone is blocked, the agent can speak but cannot hear you. Allow the microphone in the browser and call again. If a phone test shows a refusal, the screen gives a reason code and what it means. For example, the recipient has no consent on file, has opted out, is on your do-not-call list, or the time is outside the calling window. The compliance guide explains each reason. If the screen says a call is deferred, the next allowed attempt and the time zone it was worked out in are shown. The call waits for that time. It is not lost. ## 8. Questions people ask Does a browser test cost credits? Yes. A browser test reserves credits for up to the longest call your agent allows, and it is charged only for the time the call was connected. Do I need a phone for a browser test? No. A browser test uses your computer's microphone and speakers. Why is one of the provider buttons greyed out? That carrier is not set up for this platform yet. The line under the button says what is missing. What does Refused while recording consent mean? The screen could not record the consent for your number, so it did not go on to queue or dial the call. Check the consent basis and the evidence you entered, then try again. Is a phone test checked the same way as a real call? Yes. A phone test goes through the same queue, consent and calling-window checks as any other call, so it can be refused for the same reasons. ## After connecting - Use Past tests on the Test tab to compare runs after each edit. - Publish the agent once the test sounds right, then use Call logs to review real calls. ## Next - [Make a direct call](/docs/wani/guides/make-a-direct-call) - [Recording calls and consent](/docs/wani/guides/record-the-call-and-consent) - [Call logs](/wani/calls) --- Status: reviewed · reviewed by claude-opus-5.5 Author: claude-haiku-5-5