Skip to main content
This is the recommended way to use Vobiz with Bolna: paste two credentials into Bolna, pick Vobiz on your agent, and Bolna does the rest through the public Vobiz API. For the alternative over SIP, see SIP trunk.

How it works

Nothing is built on either side. Bolna uses the Vobiz Make Call API, VobizXML and the Stream WebSocket protocol.
  1. Outbound: Bolna calls Make Call with your Auth ID and Auth Token, the from number, the to number and an answer_url on api.bolna.ai that identifies this call. Vobiz validates the credentials, the number and your balance, queues the call and rings the destination.
  2. Inbound: the caller dials your Vobiz number. Vobiz finds the voice application Bolna created for that number and fetches its answer_url on api.bolna.ai.
  3. Answer: Bolna returns VobizXML with a <Record> (recordSession="true") and a bidirectional <Stream> pointing at wss://ws.bolna.ai/....
  4. Conversation: Vobiz opens the WebSocket, sends a start event and then the caller’s audio as media events. Bolna transcribes, runs the agent and sends the agent’s voice back as playAudio events, with checkpoint to track playback and clearAudio when the caller interrupts. See Stream events.
  5. End: Bolna sends stop and calls Hang Up, or the caller hangs up and Vobiz closes the WebSocket. Vobiz then notifies Bolna’s recording, stream-status and hangup URLs.
Bolna’s call-duration limit becomes streamTimeout and maxLength in the XML. A call that ends at exactly the same length every time was ended by that Bolna agent setting, not dropped by Vobiz.

Prerequisites

  • Vobiz account with balance and at least one Indian phone number with KYC complete - Create account · Buy a number
  • Bolna account with a saved agent - platform.bolna.ai
  • Your Vobiz Auth ID and Auth Token (shown on the Console Dashboard) and one active Vobiz number that is not linked to a SIP trunk

Connect your account

1

Copy your Vobiz credentials

In the Vobiz Console, the Dashboard shows your Auth ID (MA_XXXXXXXX) and, behind the eye icon, your Auth Token. Copy both.
The Auth Token authorises every API call on your account and signs every webhook Vobiz sends. Paste it only into Bolna’s connect form, never into a prompt, a ticket or a shared document.
2

Connect Vobiz in Bolna

In Bolna, open Settings → Integrations, filter by Telephony and click Connect on the Vobiz card.The Connect Vobiz form has three fields: Auth ID, Auth Token and Phone number, which is any active number on your Vobiz account in E.164 format (+91XXXXXXXXXX). Use a number that is not linked to a SIP trunk. Click Connect Vobiz.Bolna Connect Vobiz form with Auth ID, Auth Token and Phone number fields and a note pointing to the Vobiz Console dashboardThe Vobiz card now shows Status: Connected, and the numbers on your Vobiz account appear under My Numbers → External. Nothing to import.Bolna Settings, Integrations page filtered to Telephony, with the Vobiz card showing Status Connected next to an unconnected Twilio card
3

Set Vobiz as the agent's call provider

Open your agent in Agent Studio, go to the Calling tab and pick Vobiz under Telephony Provider. Click Save agent.Bolna Agent Studio Calling tab with Vobiz selected as the telephony providerEvery outbound call this agent places now comes from your Vobiz number and runs on your Vobiz account.
4

Place a test call

From the agent, place a call to a phone you can answer. Answer it and talk to the agent.The call appears in the Vobiz Console under Call Logs with its CDR (duration, hangup cause and quality metrics), and in Bolna’s Call History with the transcript. Vobiz bills the call at your voice rate; Bolna bills its per-minute agent rate separately.
5

Answer inbound calls

In the same Calling tab, switch on Inbound Calling, open the Inbound number dropdown, pick the Vobiz number that should reach this agent and click Save agent.Bolna Calling tab with the Inbound Calling toggle on and a Vobiz number selected in the Inbound number dropdownBolna creates a voice application on your Vobiz account with its own answer and hangup URLs on api.bolna.ai, and attaches the number to it. You can see it in the Vobiz Console under Voice Applications; leave its URLs unchanged.Call the number from any phone. The agent answers.
Streaming is live. Your Bolna agent places and answers calls on your Vobiz numbers, with call audio streamed between Vobiz and Bolna.

Buy a Vobiz number inside Bolna (optional)

You can also provision an Indian number without leaving Bolna: My Numbers → Buy Phone Number, choose India and Vobiz, then a region and a number. Indian regulation requires KYC first; Bolna shows a KYC required for VoBiz numbers banner with an Apply for KYC link until you complete it under Organisation settings → Vobiz KYC. Bolna Buy phone number dialog with India and Vobiz selected, showing the KYC required banner with an Apply for KYC link and a Subscribe number button
Numbers bought inside Bolna are provisioned and billed by Bolna (USD 5 per month at the time of writing) and managed from Bolna, not from your own Vobiz Console. To keep numbers on your own Vobiz account, buy them in the Vobiz Console and connect the account as above.

Use the Bolna API instead of the dashboard

Set the agent’s input and output provider to vobiz when you create the agent, then place calls with Bolna’s /call API:
agent tools_config
Place a call
Bolna’s provider API uses the keys VOBIZ_AUTH_ID, VOBIZ_AUTH_TOKEN and VOBIZ_PHONE_NUMBER for the connection itself; see Connect your provider credentials.

Troubleshooting

Resources