Voice SDK v2

Voice SDK: an AI voice agent you can build into your site

Voice SDK v2 powers natural, low-latency voice agents, sub-300ms responses, native multilingual switching and the tools to embed voice anywhere.

Start free Book a demo
Sub-300ms latency14+ languagesBarge-in & turn-takingCustom client toolsCRM loggingHuman hand-off
01

Talks like a human

Sub-300ms first response with natural turn-taking and barge-in, no robotic pauses.

02

Switches languages natively

Detects and switches language mid-call, so every caller is understood.

03

Embeds anywhere

Drop voice into calls, your app or the web with a clean SDK and client tools.

04

Acts on your data

Books, qualifies and logs to your CRM through the same agent brain as every channel.

What Voice SDK is and who it is for

Voice SDK is the browser version of the MyChatBot Calls channel. Instead of a phone number or carrier, you choose the Web SDK provider, and visitors click a button on your site to talk to your AI agent through their own microphone and speakers.

It is the same agent that answers your chats: it follows your instructions and Knowledge Base, speaks in the voice you choose, and each call becomes a conversation with a transcript and a recording.

Typical uses:

  • a Talk to us voice button on your site;
  • an assistant on your product pages;
  • demos of your product or service;
  • a voice storefront, where the agent searches products and fills the cart while the shopper speaks.

It suits businesses that want voice on the web without telephony, and developers who want the agent in their own interface. If you need an agent that answers or places phone calls, see AI Voice Agent, which runs on the same Calls channel with SIP Trunk or Twilio.

How a Voice SDK call works in MyChatBot

  1. You create an SDK agent. In the Calls channel, set Provider to Web SDK and click Create SDK Agent to get an Agent ID.
  2. You paste the embed. Two script tags add a floating microphone button to your page.
  3. A visitor starts a call. They click the button, allow microphone access and hear the agent’s first message.
  4. The agent talks and acts. It answers from your instructions and Knowledge Base and, if you allow it, calls functions on your page, for example to search a catalogue or apply a discount code.
  5. The call becomes a chat. When the call ends, the transcript is added to the client’s thread as agent and caller messages, and the recording can be played in the browser, with seeking and download.

Each visitor’s browser gets its own caller identity, so conversations from different visitors never merge. During the call, the button becomes a compact bar showing who is speaking, with mute, end call and a live transcript button.

Key capabilities

Voice and language settings

In the Calls panel you choose a Voice with preview, the LLM behind the answers, Speech Speed from 0.7 to 1.2, the First Message and a Max Call Duration, which is 10 minutes by default. The voice also sets the agent’s primary language. Additional languages adds languages the agent can switch to mid-call, with an optional greeting for each, and Automatic language switching detects the caller’s language.

Client tools: the agent acts on your page

With client_tools you expose page functions the agent may call while it talks. Each tool has a definition the agent reads, with a description and parameters of type string, number or boolean, and a handler you write. Whatever the handler returns is spoken back, so a short confirmation works best.

Ready-made button or your own UI

The embed brings its own styles. You can set the agent’s name, an accent colour, a bottom-right or bottom-left position, render the control inside a chosen element, and show the transcript collapsed, open or off. The onCallStart and onCallEnd callbacks tell your code when a call connects and ends, with the reason and duration in seconds. For JavaScript builds, the npm package @mychatbot/client lets you start calls from your own button and interface.

Channels, data and integrations involved

Voice SDK is one of three providers of the Calls channel, next to SIP Trunk and Twilio Account. Web calls show up on the Chats screen just like text conversations, so your team reviews them in one place.

Knowledge. The voice agent is built from your agent’s instructions and Knowledge Base when you connect the channel. Load your catalogue into the Knowledge Base, and the agent can answer stock, price and product questions during the call. Because the caller talks to a sales assistant, the conversation can also create a lead to nurture later.

CRM. If you configure Post-Call Functions, they run actions after a call, such as writing a lead to your CRM. The CRMs MyChatBot connects to, including KeyCRM, Bitrix24, Kommo and HubSpot, are listed on the integrations page.

Claude. If you set up your agent through the MyChatBot connector in Claude, ask it for the embed code, and Claude returns the snippet with your real Agent ID.

When a human takes over, and the limits

Web SDK calls run in the visitor’s browser, with these limits:

  • No live transfer. Transfer to human operator works for phone calls only. On the web, your team picks up from the conversation in Chats, with its transcript and recording. See how human hand-off works across channels.
  • No outbound calls or auto-recall. The Web SDK cannot dial anyone; it answers when a visitor clicks the button. For call campaigns and retries, connect SIP Trunk or Twilio.
  • Open page and microphone. A call works only while the page is open and the visitor has granted microphone access.
  • One SDK channel per assistant. Each assistant can have one Web SDK Calls channel.
  • Keeping in sync. After you change the instructions, click Sync Agent. The Knowledge Base is a snapshot from channel creation, so changing which integrations feed the agent means recreating the channel.
  • Tool format. Tool parameters are a flat map, not a JSON Schema. A JSON Schema is rejected without any error on the page: the call connects, but the agent never gets the tool.

How to set up Voice SDK

  1. Open Channels, select your agent and open Calls.
  2. Set Provider to Web SDK.
  3. Pick a Voice and tune the first message, LLM, speed, max duration and languages.
  4. Click Create SDK Agent and copy the Agent ID from Connection Details.
  5. Turn on Connect agent to this channel. New Calls channels start switched off.
  6. Paste the embed into your site with your Agent ID, and add client tools if the agent should act on the page.

For a guided start, choose Create a voice agent for my website in the Sales Platform Quick start. Give it your site or product feed URL and a short brief. It sets up a sales assistant with a voice and a Web Voice channel, and returns the Agent ID and an embed snippet with sample page actions: searchItem, navigateTo, addToCartById and applyDiscountCode.

Web calls are billed by duration in AI messages at the same rates as phone calls: high-quality voices use more AI messages per minute than standard voices, prorated by the second with no per-call minimum. Voice SDK plans are on the pricing page.

Frequently asked questions

Do I need a phone number or a telephony provider for Voice SDK?

No. The Web SDK provider needs no phone number, SIP trunk or Twilio account. You pick a voice, click Create SDK Agent and paste the embed with your Agent ID into your site. Visitors talk to the agent in the browser with their microphone.

How much do Voice SDK calls cost?

Web SDK calls are billed by duration and converted into your plan’s AI messages, at the same rates as phone calls. High-quality voices use more AI messages per minute than standard voices, prorated by the second with no per-call minimum. Adding extra languages moves the agent to the high-quality rate.

Can the voice agent do things on my website?

Yes, through client tools. You describe a page function and write its handler, and the agent can call it mid-conversation, for example to search products, add an item to the cart or apply a discount code. The handler’s return value is spoken back to the visitor.

Can I use my own button instead of the floating microphone?

Yes. The embed can float in the bottom-right or bottom-left corner in your accent colour, or render inside an element you choose. For full control, the npm package @mychatbot/client lets you start and manage calls from your own interface.

Which languages can the agent speak?

The voice you choose sets the primary language. You can add languages the agent switches to mid-call, each with an optional greeting, and turn on automatic language switching to detect the caller’s language. Additional languages use the higher-quality v3 Conversational model, which bills at the higher rate.

Where do web voice conversations end up?

Each call is written into the client’s chat with a full transcript and a playable recording, on the Chats screen alongside your text conversations. Every visitor’s browser gets its own caller identity, so conversations do not merge.

Can the web voice agent transfer a caller to a manager or call someone back?

No. Transfer to a human operator, auto-recall and outbound dialing are available only for the phone providers, SIP Trunk and Twilio. With the Web SDK, your team follows up from the conversation in Chats.

Build with Voice SDK v2

Grab the SDK, connect your Knowledge Base and tools, and ship a natural voice agent.

Start free