Integrations

Bolna

Put your Bolna agent on a TryVox number. It answers calls, and it can call out.

Use a TryVox number with your Bolna agent. Callers reach the agent, and the agent can call customers from that number.

How the call flows

Inbound:   Caller ──▶ TryVox number ──▶ TryVox ──▶ your Bolna agent

Outbound:  Your app ── TryVox API (or Bolna) ──▶ Bolna agent ──▶ TryVox ──▶ customer

Before you start

  • An active TryVox number, and approved KYC.
  • A Bolna agent.
  • A Bolna API key: Bolna dashboard → Developers → API Keys.

Connect

  1. TryVox dashboard → AI Agents → Connect provider → Bolna. Paste the API key, then Connect.
  2. Open the integration → Connect number. Pick your TryVox number and agent, then Connect.

TryVox creates a SIP trunk in Bolna named TryVox-…, adds your number to it, and switches the agent's telephony to SIP Trunk.

Switching to SIP Trunk moves that agent off any Twilio, Plivo or Exotel number it used before. Use a separate agent if you still need those.

Test inbound

Call your TryVox number. Your Bolna agent answers.

Test outbound

curl -X POST https://api.tryvox.io/v1/ai/integrations/$INTEGRATION_ID/calls \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
  -H "Content-Type: application/json" \
  -d '{ "to": "+919812345678", "dynamic_variables": { "customer_name": "Rahul" } }'

The variables reach the agent as the call's Bolna user_data, along with client_ref. You can also start a call from Bolna with your TryVox number as the from number. More in Start an AI Outbound Call.

Working example: set it up over the API

curl -X POST https://api.tryvox.io/v1/ai/integrations \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN -H "Content-Type: application/json" \
  -d '{ "provider": "bolna", "name": "Collections agent", "api_key": "<bolna-api-key>" }'

curl https://api.tryvox.io/v1/ai/integrations/$INTEGRATION_ID/agents \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN

curl -X POST https://api.tryvox.io/v1/ai/integrations/$INTEGRATION_ID/bindings \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN -H "Content-Type: application/json" \
  -d '{ "tryvox_e164": "+918045671234", "provider_agent_id": "<agent-id>" }'

Common problems

ProblemFix
"This number is already connected to an AI agent"Disconnect it from the other agent in TryVox first.
"This number is registered on another Bolna SIP trunk"Bolna allows a number on only one trunk. Remove it from the other trunk, including any TryVox-… trunk left from a revoked key.
The agent never answersIn Bolna, the agent should show SIP Trunk telephony, with your number on the TryVox-… trunk.
Disconnecting failsIf Bolna can't be reached, nothing is deleted. Try again. Don't delete the TryVox-… trunk by hand while the integration exists.

On this page