nicksi0555
05/09/2024, 10:38 AMVapi Support
05/09/2024, 10:38 AMVapi Support
05/09/2024, 10:39 AM"name"
under the "function"
object to match your specific function.
- Adjust the "parameters"
object to include the data your function requires.
- Modify the "messages"
array to contain the messages you want the AI to communicate to the user at different stages of the tool's execution.
- Set the "async"
value based on whether you want the function call to be synchronous or asynchronous.
- Replace the URL in the "server"
object with your server's endpoint URL.
Here's an example modification based on the template:Vapi Support
05/09/2024, 10:39 AMjson
{
"type": "function",
"messages": [
{
"type": "request-start",
"content": "Checking the weather forecast. Please wait..."
},
{
"type": "request-complete",
"content": "The weather in location is"
}
],
"function": {
"name": "sendEmail",
"parameters": {
"type": "object",
"properties": {
"emailAddress": {
"type": "string"
}
}
},
"description": "Sends an email to the specified address."
},
"async": false,
"server": {
"url": "https://your-server.com/send-email"
}
}
This modification aligns with the structure you're looking to achieve. Note that "messages"
and other parts of the payload should be filled out according to your application's logic and requirements.
Remember, the payload structure and modifications are usually handled within your code that interacts with Vapi, whether it's for setting up assistants or defining specific voice AI behaviors. Ensure to test your configurations thoroughly to confirm that the behavior aligns with your expectations.nicksi0555
05/09/2024, 10:41 AMVapi Support
05/09/2024, 10:41 AMSahil
05/09/2024, 11:10 AMnicksi0555
05/09/2024, 11:44 AMnicksi0555
05/09/2024, 12:06 PMSahil
05/09/2024, 12:11 PMnicksi0555
05/09/2024, 12:13 PMnicksi0555
05/09/2024, 12:15 PMSahil
05/09/2024, 12:19 PMnicksi0555
05/09/2024, 12:48 PMnicksi0555
05/09/2024, 12:50 PMnicksi0555
05/09/2024, 12:51 PMSahil
05/09/2024, 2:24 PMnicksi0555
05/10/2024, 11:00 AMSahil
05/10/2024, 11:29 AMnicksi0555
05/10/2024, 11:33 AMnicksi0555
05/10/2024, 11:34 AMSahil
05/10/2024, 11:40 AMSahil
05/10/2024, 11:41 AMnicksi0555
05/10/2024, 11:43 AMnicksi0555
05/10/2024, 11:44 AMSahil
05/10/2024, 11:56 AMnicksi0555
05/10/2024, 11:57 AMSahil
05/10/2024, 11:58 AMnicksi0555
05/10/2024, 8:20 PMkolaposki
05/10/2024, 8:26 PMSahil
05/10/2024, 8:32 PMSahil
05/10/2024, 8:32 PMnicksi0555
05/10/2024, 8:42 PMSahil
05/10/2024, 8:43 PMSahil
05/10/2024, 8:44 PMSavannah
05/14/2024, 12:16 PMSahil
05/14/2024, 2:33 PMSahil
05/14/2024, 2:37 PMSahil
05/14/2024, 2:37 PMSavannah
05/14/2024, 2:37 PM{
"message": [
"assistant.model.each value in tools.function.property server should not exist"
],
"error": "Bad Request",
"statusCode": 400
}
Savannah
05/14/2024, 2:38 PMSahil
05/14/2024, 2:40 PMSavannah
05/14/2024, 2:49 PM