Skip to content
Learn

Add a voice agent to your website with a web call.

A web call is a voice conversation between a visitor and your agent, started from a page on your site. The visitor allows the microphone, speaks and hears the agent. There is no phone number in the path.

  • 2 min read
  • Updated
  • 5 sections
01

What a web call is for

Web calls suit a 'Talk to us' button, a voice demo, an in-app assistant or a support widget. They are also the quickest way to try an agent, because there is no number or carrier to set up.

02

How a call starts

The flow keeps your API key off the page, which is the part that matters for security.

  • The visitor clicks your button. Browsers only allow sound after a click or tap.
  • Your page asks your own server for a call.
  • Your server uses the API key to create the call and gets back a call ID and a one-use access token.
  • Your server hands the token to the page, and the browser client connects with that token alone.
03

Why the token is safe to give the browser

The token is not the API key. It works for one call, with one agent, once, and expires after 60 seconds. The organization, the agent and the allowed websites are fixed inside the token when your server creates it, so the page cannot choose a different agent or reuse the token.

04

What you build

Two small pieces: one endpoint on your server that creates the call and returns the token, and a page with a button and a place to show the transcript. The web calls guide walks through a working endpoint and page. The call is recorded and appears in your call list like any other, marked as a web call. You can also pass data in, such as the visitor's name, to fill the agent's prompt.

05

What it costs

Web calls pay the platform, voice and language model parts of a minute and no phone line charge, so they are the cheapest calls you can run.

06

Questions

Does a web call need a phone number?

No. The visitor talks through their browser, and there is no carrier in the path.

Is my API key exposed to the browser?

No. Your server holds the key and gives the page a one-use token that works for one call with one agent and expires after 60 seconds.

Create an account, build an agent, and call it from your browser before you connect a number. Add credit when you are ready to take real calls.