1. Create an Assistant.
1. Create an Assistant.
1. Create an Assistant
We’ll create an assistant withPOST /assistant endpoint. This is no different than creating an assistant for other transports.2. Create a SIP Phone Number.
2. Create a SIP Phone Number.
2. Create A SIP Phone Number
We’ll create a SIP phone number withPOST /phone-number endpoint.sipUri is the SIP URI of the phone number. It must be in the format sip:username@sip.vapi.ai. You are free to choose any username you like.3. Start a SIP call.
3. Start a SIP call.
4. Send SIP Headers to Fill Template Variables.
4. Send SIP Headers to Fill Template Variables.
4. Send SIP Headers to Fill Template Variables.
To fill your template variables, you can send custom SIP headers.For example, to fill thefirst_name variable, you can send a SIP header x-first_name: John.The header name is case insensitive. So, X-First_Name, x-first_name, and X-FIRST_NAME are all the same.5. Use a Custom Assistant For Each Call.
5. Use a Custom Assistant For Each Call.
5. Use a Custom Assistant For Each Call.
You can use a custom assistant for SIP calls same as phone calls.Set theassistantId to null and the serverUrl to the URL of your server which will respond to the assistant-request.PATCH /phone-number/:idassistant-request event.
