ema
05/10/2024, 1:18 PMVapi Support
05/10/2024, 1:18 PMVapi Support
05/10/2024, 1:18 PMVapi Support
05/10/2024, 1:18 PMema
05/10/2024, 1:22 PMVapi Support
05/10/2024, 1:22 PMVapi Support
05/10/2024, 1:23 PMcurl
command or the inclusion of curl
syntax within the Vapi server URL or function setup is not directly supported or mentioned within the provided documentation.
For executing a POST request that includes JSON data (like {"data": "x"}
) from within Vapi to an external URL or service, you should design your function to accept JSON payloads and then extract the data server-side. When calling this function from within Vapi, you would use the function calling or server URL mechanism to trigger this request, passing along any necessary parameters as part of the request body.
Given the requirement to send data to https://function.modal.run/?
with a JSON payload, you would:
1. Define a function or set up a server URL in Vapi that is triggered during a conversation or upon a specific event.
2. Ensure your external function/service is capable of handling POST requests and extracting the JSON payload.
3. Within Vapi, use the assistant or workflow setup to make a POST request to your external URL, passing parameters as needed.
Remember, the specifics of how you configure the assistant to make a POST request to your function would depend on the details of your Vapi setup and how you've designed your external function to process incoming requests. If you're looking for a way to programmatically construct and send these requests based on dynamic user input (like a name), consider utilizing Vapi's capabilities for function calling with dynamic variables that can be captured during a conversation.
Due to the lack of direct examples in the provided documentation about embedding a curl
command or itsVapi Support
05/10/2024, 1:23 PMMason
05/10/2024, 1:24 PMMason
05/10/2024, 1:24 PMMason
05/10/2024, 1:25 PMema
05/10/2024, 1:25 PMema
05/10/2024, 1:26 PMMason
05/10/2024, 1:27 PMMason
05/10/2024, 1:35 PMema
05/10/2024, 1:59 PMema
05/10/2024, 1:59 PMema
05/10/2024, 2:02 PMema
05/10/2024, 3:01 PMVapi Support
05/10/2024, 3:01 PMVapi Support
05/10/2024, 3:01 PMSahil
05/10/2024, 3:21 PMema
05/10/2024, 3:23 PMSahil
05/10/2024, 3:23 PMema
05/10/2024, 3:25 PMema
05/10/2024, 3:25 PMSahil
05/10/2024, 3:25 PMSahil
05/10/2024, 3:26 PMSahil
05/10/2024, 3:26 PMjson
"tools": [
{
"type": "function",
"async": false,
"server": {
"url": "Your Webhook URL"
},
"function": {
"name": "get_current_time",
"parameters": {
"type": "object",
"properties": {}
},
"description": "Provide the current time."
},
"messages": [
{
"type": "request-response-delayed",
"content": "It is taking a little longer time to get the content please wait."
},
{
"type": "request-start",
"content": "Making an HTTP Request Please Wait"
},
{
"type": "request-complete",
"content": "Here is the Response Sir"
},
{
"type": "request-failed",
"content": "Something went wrong."
}
]
}
]
ema
05/10/2024, 3:26 PMSahil
05/10/2024, 3:27 PMema
05/10/2024, 3:29 PMSahil
05/10/2024, 3:30 PMema
05/10/2024, 3:30 PMema
05/10/2024, 3:31 PMSahil
05/10/2024, 3:36 PMema
05/13/2024, 2:16 PMVapi Support
05/13/2024, 2:16 PMema
05/13/2024, 2:16 PMVapi Support
05/13/2024, 2:16 PMema
05/13/2024, 2:17 PMVapi Support
05/13/2024, 2:17 PM