Jotham
05/15/2024, 5:15 PMVapi Support
05/15/2024, 5:15 PMVapi Support
05/15/2024, 5:15 PMjson
{
"type": "function",
"messages": [
{
"type": "request-start",
"content": "Checking the weather forecast. Please wait..."
},
{
"type": "request-complete",
"content": "The weather in location is"
},
{
"type": "request-failed",
"content": "I couldn't get the weather information right now."
},
{
"type": "request-response-delayed",
"content": "It appears there is some delay in communication with the weather API."
}
],
"function": {
"name": "get_weather",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string"
}
}
},
"description": "Retrieves the current weather for a specified location."
},
"async": false,
"server": {
"url": "https://your-weather-api.com/weather"
}
}
In this configuration:
1. **Function Name and Parameters**: Define the function name and parameters it accepts.
2. **Messages**: Customize the messages for different stages of the function call.
3. **Server URL**: Set the server URL where the POST request will be sent.
Make sure your server at webhook.site
is set up to handle POST requests and not GET requests.Vapi Support
05/15/2024, 5:16 PMSahil
05/15/2024, 5:34 PMJotham
05/16/2024, 2:27 PMSahil
05/16/2024, 3:08 PMJotham
05/16/2024, 4:00 PMJotham
05/16/2024, 4:01 PMSahil
05/16/2024, 5:16 PM