howwy
06/04/2024, 12:09 AMVapi Support
06/04/2024, 12:09 AMVapi Support
06/04/2024, 12:09 AMresult
property to communicate the outcome back to the assistant, allowing it to handle the flow correctly based on the response [(1)]() .
Here is an example of how you might configure the server response to handle failure:
json
{
"result": "The appointment time is unavailable, please try another time."
}
This example ensures that the function calling mechanism in Vapi gets a clear response indicating that the time slot isn't available, which should prevent it from triggering the webhook again under the same circumstances.
For more detailed guidance on handling function calls and designing robust error handling within your Vapi assistant, you can refer to the function calling documentation.howwy
06/04/2024, 12:11 AMVapi Support
06/04/2024, 12:11 AMhowwy
06/04/2024, 12:12 AMhowwy
06/04/2024, 1:08 AMSahil
06/04/2024, 5:42 AMSahil
06/04/2024, 5:42 AMSahil
06/04/2024, 5:42 AMhowwy
06/04/2024, 1:23 PM