Integrations

Start an AI Outbound Call

Have your AI agent call a customer from your TryVox number, with the customer's details passed in.

Have your AI agent call a customer, and give it what it needs to know about them: name, company, appointment.

How it works

CRM / your app ──▶ your backend ── POST /v1/ai/integrations/{id}/calls ──▶ TryVox
                                                                             │
                     customer ◀── phone call from your TryVox number ◀── AI agent

Your backend sends the customer's details as dynamic_variables. TryVox starts the call through your provider, and the agent uses those values in its prompt.

Before you start

  • A provider connected and a TryVox number bound to an agent: Vapi, ElevenLabs, LiveKit or Bolna. Retell calls are started from Retell instead: see the Retell guide.
  • The integration id. Get it from GET /v1/ai/integrations, or from the dashboard address bar when the integration is open under AI Agents.
  • An agent prompt that uses the variables, for example Hi {{customer_name}}, I'm calling from {{company}} about your appointment {{appointment}}. Use your provider's variable syntax. See where the variables arrive.

Try it

The CRM has a lead:

name        = Rahul
company     = Acme
appointment = Tomorrow 3 PM

Your backend starts the call:

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",
      "company": "Acme",
      "appointment": "Tomorrow 3 PM"
    },
    "client_ref": "lead-1042"
  }'

From Node.js:

ai-call.js
const { TRYVOX_AUTH_ID, TRYVOX_AUTH_TOKEN, INTEGRATION_ID } = process.env;
const auth = 'Basic ' + Buffer.from(`${TRYVOX_AUTH_ID}:${TRYVOX_AUTH_TOKEN}`).toString('base64');

// lead comes from your CRM
async function callLead(lead) {
  const res = await fetch(`https://api.tryvox.io/v1/ai/integrations/${INTEGRATION_ID}/calls`, {
    method: 'POST',
    headers: { Authorization: auth, 'Content-Type': 'application/json' },
    body: JSON.stringify({
      to: lead.phone,
      dynamic_variables: {
        // values must be strings
        customer_name: lead.name,
        company: lead.company,
        appointment: lead.appointment,
      },
      client_ref: lead.id, // your own ID; comes back on the call
    }),
  });
  const body = await res.json();
  if (!res.ok) throw new Error(`${res.status} ${body.error?.code}: ${body.error?.message}`);
  return body; // { conversation_id, status: "initiated", ... }
}

const call = await callLead({ id: 'lead-1042', phone: '+919812345678', name: 'Rahul', company: 'Acme', appointment: 'Tomorrow 3 PM' });
console.log(call.conversation_id, call.status);
FieldRequired
toyesCustomer's number in E.164
dynamic_variablesnoString values only. Your agent reads them during the call.
client_refnoYour own reference, such as a lead or ticket ID. Stored on the call and passed to the agent.
fromnoWhich bound number to call from. Defaults to the binding marked preferred for outbound, else the first.
agent_idnoUse a different agent than the one bound to the number

Expected result

201 Created (this response is not wrapped in data), and the customer's phone rings from your TryVox number:

{
  "conversation_id": "<conversation-id>",
  "integration_id": "1b2c3d4e-5f60-4a7b-8c9d-0e1f2a3b4c5d",
  "provider_call_id": "<provider-call-id>",
  "client_ref": "lead-1042",
  "from_number": "+918045671234",
  "to_number": "+919812345678",
  "status": "initiated",
  "started_at": "2026-10-30T11:00:00Z",
  "direction": "outbound"
}

The agent greets Rahul by name and talks about his appointment.

Get the result

TryVox doesn't push AI call results to you yet. Poll the call until status is completed or failed:

curl https://api.tryvox.io/v1/ai/calls/$CONVERSATION_ID \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN

Once the call has ended, the response adds duration, hangup_cause, transcript, analysis, recording_url and ended_at, when your provider reports them. Save them on the lead using client_ref.

Where the variables arrive

ProviderWhat the agent receives
VapiAssistant variable values, plus client_ref
ElevenLabsConversation dynamic variables, plus client_ref
BolnaThe call's user_data, plus client_ref
LiveKitJob metadata as JSON: {"to": "...", "client_ref": "...", "dynamic_variables": {...}}. Your agent code parses it.

Next step

  • Call many customers: send one request per customer from your own job queue. TryVox has no campaign scheduler. Each integration allows 5 calls at once and 30 per minute by default; you can change this with PATCH /v1/ai/integrations/{id}.
  • Every AI endpoint: AI Agents API.

Troubleshooting

ProblemFix
400 NO_BINDINGNo number is bound to this integration, or from isn't one of its bound numbers.
501 NOT_SUPPORTEDThe integration is Retell. Start the call from Retell.
429 RATE_LIMITEDOver the integration's concurrent or per-minute limit. Retry later.
502 PROVIDER_AUTHThe provider rejected the stored API key. Update it under AI Agents.
The agent doesn't use the valuesThe prompt must reference the same names you send, in your provider's variable syntax. Values must be strings.

On this page