Ibrahim
06/03/2024, 9:42 PMVapi Support
06/03/2024, 9:42 PMVapi Support
06/03/2024, 9:42 PMname
, description
, and parameters
. The parameters
specifically are the data that the function expects to receive, such as input values required to execute the function [(1)]() .
As for your second question regarding the payload for a webhook in Make, the payload typically follows the structure defined when setting up the function in your Vapi assistant. Here is an example modification of a payload, which you can adjust according to your specific requirements:
json
{
"type": "function",
"messages": [
{
"type": "request-start",
"content": "Initiating function call. Please wait..."
},
{
"type": "request-complete",
"content": "The function call is complete."
},
{
"type": "request-failed",
"content": "The function call failed."
},
{
"type": "request-response-delayed",
"content": "The response from the function is delayed.",
"timingMilliseconds": 2000
}
],
"function": {
"name": "your_custom_function",
"parameters": {
"type": "object",
"properties": {
"parameter1": {
"type": "string"
},
"parameter2": {
"type": "number"
}
}
},
"description": "Description of your custom function."
},
"async": false,
"server": {
"url": "https://your-server-url.com/path"
}
}
Vapi Support
06/03/2024, 9:42 PM"your_custom_function"
, the parameter structure, and the server URL with the actual details specific to your function in Make.Sahil
06/03/2024, 11:11 PMIbrahim
06/06/2024, 3:20 AM