Website
A “Talk to us” button
Let visitors ask about products, plans or pricing in a voice conversation, straight from your landing page.
// npm install @bolna/ web-callimport { BolnaWebCall } from "@bolna/ web-call";const call = new BolnaWebCall({ sessionUrl: "/ api/ bolna-session",});call.on("state-change", (state) => render(state));// Start from the click, so the browser allows audiobutton.onclick = () => call.start({ userData: { name: "Riya" } });A live, two-way voice conversation between a browser tab and your Bolna agent, added to your site with the open-source Web Call SDK, @bolna/web-call.
Teams who want visitors, customers or candidates to talk to their agent from a website, help center, web app or a link, without dialling a number.
A Bolna agent, your API key and one backend route that mints a short-lived call session, so your API key never reaches the browser.
Step 01
Run npm install @bolna/web-call, or add one script tag from jsDelivr if your page has no bundler.
Step 02
Your backend calls Bolna’s session endpoint with your API key and returns the session. Each one is single-use and expires in about 120 seconds.
Step 03
Call call.start() from your button’s click handler. The SDK asks for the microphone, connects the agent and hangs up when the tab closes.
Website
Let visitors ask about products, plans or pricing in a voice conversation, straight from your landing page.
Support
Put the agent in your help center or web app, so customers can talk through a problem without leaving the page.
Personalised
Pass userData such as a name, order or plan when the call starts, and the agent uses it in its prompt and welcome message.
Languages
Start a multilingual agent in Hindi, English or the language the visitor picked on your site.
Your UI
A call state machine and six events drive your own buttons, a mute toggle and an audio meter from the agent’s volume.
Call data
Every web call has an execution ID that matches your Bolna call history and webhooks, just like a phone call.
| A phone call | A web call | |
|---|---|---|
| How it starts | The customer dials a number, or the agent calls them | The visitor clicks a button on your site or app |
| What you set up | A number from Bolna, your telephony provider or a SIP trunk | The Web Call SDK and one backend route |
| Where it works | Any phone | A browser with a microphone |
| What the agent knows | The caller’s number and any user_data you pass | Anything your page knows, passed as userData |
| After the call | Call history, transcripts and webhooks | The same call history, transcripts and webhooks |
| Details | |
|---|---|
| Package | @bolna/web-call on npm, or a script tag from jsDelivr |
| Starter templates | Next.js and plain HTML with Node |
| API key | Stays on your server. The browser gets a single-use session that expires in about 120 seconds |
| Audio | WebRTC with Opus, echo cancellation on by default, encrypted |
| Restrictive networks | TURN relay included in every session |
| Events | state-change, media-permission, call-start, call-end, error, volume-level |
| Methods | start(), stop(), setMuted(), getState(), getRunId() |
Product
Voice agents on your web page that fill forms as visitors talk.
Product
Build and test voice agents without code, then put them on calls or the web.
Product
Voice agents that speak Hindi, English and other Indian languages.
Telephony
Run the same agent on phone calls over your own carrier.
Developer tool
Build and manage voice agents from Claude, Cursor or Windsurf.
Docs
Clone a working Next.js or plain HTML web call and add your agent.