Aishik
11/22/2024, 2:03 PMVapi
11/22/2024, 2:06 PM/call/phone endpoint and specify a temporary assistant with the desired transfer settings in the assistant field. This temporary assistant would have the transfer numbers configured just for that call.
Unfortunately, without direct access to the specific API documentation or endpoints for VAPI, I cannot provide you with the exact API calls or parameters. However, the general approach would be to dynamically set the transfer numbers either in the assistant configuration or as part of the call setup.
If you need the exact API endpoints and parameters, you would need to refer to the VAPI documentation or contact support for more detailed information on how to implement this feature. If there's anything else I can assist you with, please let me know!Vapi
11/22/2024, 2:06 PMShubham Bajaj
11/23/2024, 3:17 PMcurl -X POST https://api.vapi.ai/call \
-H "Authorization: Bearer " \
-H "Content-Type: application/json" \
-d '{
"assistant": {
"model": {
"provider": "openai",
"model": "gpt-4o-2024-08-06",
"tools": [
{
"type": "transferCall",
"async": false,
"function": {
"name": "transientTransferCall"
},
"destinations": [
{
"type": "number",
"number": "insert-number-here",
"description": "insert-description-here",
"message": "insert-message-here"
}
]
}
]
}
}
}'
@Aishik you can use transient tools along with the transient assistants and decide numbers to transfer the call to right before the call. Do let me know if you require further help.Aishik
11/25/2024, 12:54 PMShubham Bajaj
11/25/2024, 3:40 PMrequest-assistant , your supposed to return the assistant to be used for the call. Note this all will be done right before the call.Shubham Bajaj
11/25/2024, 3:40 PMrequest-assistant.