# Test your agent (/docs/agent/test-and-publish/test-your-agent)

> Talk to your agent by chat, in the browser, or on your own phone before any customer reaches it.

![The agent editor header: Ask AI, then the Test with box with the Chat, Web Call and Phone Call buttons, then the Deploy menu](/docs-images/guides/test-your-agent/editor-header.png)

Every agent has three test buttons in the **Test with** box at the top of the
agent editor. Use them after each change, the way you'd run a quick call
before handing a script to a new hire.

| Button | What happens | Needs |
| --- | --- | --- |
| **Chat** | You type, the agent replies in text. | Nothing |
| **Web Call** | You talk to the agent in your browser. | A microphone |
| **Phone Call** | The agent calls a phone number you enter. | A phone you can answer |

On a phone screen the three buttons sit in one **Test your agent** menu.

Chat and Web Call save the agent first, then start the test, so they run what
you see in the editor. Tests always run your draft, even when the agent is
published. Live calls and messages keep using the published version. See
[Agent versioning and publishing](/docs/agent/test-and-publish/agent-versioning-and-publishing).

If the buttons are greyed out, you have view access
only, or you are looking at the published version. Go back to the draft to
test.

## Chat with your agent [#chat-with-your-agent]

Select **Chat**. The editor locks while the test runs, and the agent sends its
welcome message first. The chat panel also shows the variables the agent
extracts and the tools it calls, so you can check a booking or a transfer
without placing a call. Select **End Test** to unlock the editor.

## Talk to it in the browser [#talk-to-it-in-the-browser]

Select **Web Call** and allow the microphone. No phone number is needed. The
dialog shows the conversation live, with buttons to mute and end the call.

The call ends by itself after a long silence, or when your balance runs out.
After it ends, **View Call Logs** opens the agent's **Recent Calls** tab.

If you don't see a Web Call button, web calls aren't turned on for your
account. Use Chat or Phone Call instead.

## Get a call on your phone [#get-a-call-on-your-phone]

![The Call with Agent dialog: Call From, Call To (Phone Number), Start Web Call and Start Phone Call](/docs-images/guides/test-your-agent/phone-call-dialog.png)

### Open the dialog [#open-the-dialog]

Select **Phone Call**. The **Call with Agent** dialog opens.

### Pick the number to call from [#pick-the-number-to-call-from]

If your account has phone numbers, pick one in **Call From**. If it has none,
the call comes from a platform number, and the dialog shows the per-minute
cost, telephony included.

### Enter your number [#enter-your-number]

Enter a real number you can answer in **Call To (Phone Number)**. It starts
with the phone number on your profile.

### Start the call [#start-the-call]

Select **Start Phone Call**. Your phone rings within 2 minutes.

## What a test costs [#what-a-test-costs]

Web and phone test calls use your wallet balance like any other call. A
phone test from a platform number also pays telephony. To avoid that charge,
[import your own number](/docs/telephony). If your balance is low, the test
dialogs show a **Top up wallet** button. See [Billing and wallet](/docs/dashboard-guides/billing).

## Next steps [#next-steps]

- Read finished test calls in [Recent calls](/docs/dashboard-guides/recent-calls).
- Let someone else try the agent with a [demo link](/docs/agent/test-and-publish/share-a-demo-link).