YasH
06/02/2024, 12:21 PMVapi Support
06/02/2024, 12:21 PMVapi Support
06/02/2024, 12:21 PMserverUrl
where Vapi will send the function call information, allowing your functions to be executed as intended [(1)]() .
Here’s an example of how you might configure this in JSON when creating an assistant:
json
{
"model": {
"provider": "custom-llm",
"url": "<YOUR_CUSTOM_LLM_ENDPOINT>",
"functions": [
{
"name": "bookAppointment",
"description": "Book an appointment."
}
]
},
"serverUrl": "https://yourserver.com/functions"
}
This configuration ensures that when specific functions like bookAppointment
are called during a conversation, the requests are directed to the specified server URL, where your custom logic is handled.Vapi Support
06/02/2024, 12:22 PMSahil
06/02/2024, 12:46 PMYasH
06/02/2024, 12:53 PMSahil
06/02/2024, 12:54 PMYasH
06/02/2024, 1:03 PMnaaviii
06/03/2024, 11:52 AM