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:
Environment variables
.env