Transfer an active call to any E.164 phone number or department via SIP REFER from a LiveKit AI agent.Documentation Index
Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt
Use this file to discover all available pages before exploring further.
View on GitHub
Clone and run the full working example
Getting started
Overview
The AI agent handles the conversation and, when instructed, performs a cold SIP REFER transfer to any phone number. The agent constructs the SIP URI dynamically - the caller is transferred and the agent disconnects.How it works
- Caller requests a transfer (e.g. “Transfer me to sales” or “Transfer me to +1 555 000 1234”).
- The agent calls the
transfer_callfunction tool. - The agent sends a SIP REFER to
sip:+15550001234@your-vobiz-domain. - Vobiz routes the call to the destination.
- The agent leaves the room - the transfer is complete.
Agent function tool
Preset department transfers
Configure preset destinations in.env and map them to named tools:
| Command | Destination |
|---|---|
| ”Transfer to billing” | BILLING_NUMBER |
| ”Transfer to support” | SUPPORT_NUMBER |
| ”Transfer me to [number]“ | Any E.164 number |
Environment variables
.env