Vapi Support
06/04/2024, 5:49 PMWill
06/04/2024, 5:49 PMVapi Support
06/04/2024, 5:49 PMserverUrl where the function call information is sent, and the response from your server can influence the subsequent actions or prompts of the assistant [(1)]() , [(2)]() .
Here's an example of how a function might be set up to send an email and act based on the response:
json
{
"functions": [
{
"name": "sendEmail",
"description": "Used to send an email to a client.",
"parameters": {
"type": "object",
"properties": {
"emailAddress": { "type": "string" }
}
}
}
]
}
When this function is triggered, Vapi sends the function call to the specified serverUrl. The assistant can then process the server’s response to determine the next steps in the conversation.
This setup is particularly useful for creating dynamic and responsive voice applications where real-time decision making is crucial based on external data or operations.Vapi Support
06/04/2024, 6:00 PMWill
06/04/2024, 6:00 PMSahil
06/05/2024, 3:39 AMWill
06/05/2024, 4:31 PM