Ian
07/22/2024, 9:27 PMVapi
07/22/2024, 9:28 PMVapi
07/22/2024, 9:28 PMIan
07/22/2024, 9:34 PMIan
07/22/2024, 9:35 PMVapi
07/22/2024, 9:35 PMVapi
07/22/2024, 9:35 PMIan
07/22/2024, 9:37 PMVapi
07/22/2024, 9:37 PMjson
{
"results": [
{
"toolCallId": "call_5zqt",
"result": "The current time is 12:34 PM"
}
]
}
Make sure that the result field contains the actual time value you want to return.
3. **Inspect the HTTP Request and Response**: Check the logs for the HTTP request from Make to your server and the response from your server to Make. This will help you verify that the correct data is being sent and received.
4. **Review Make Configuration**: Ensure that the Make scenario is configured to handle the response correctly and that it's mapping the result back to VAPI as expected.
If you've verified all of the above and the issue persists, there might be a more specific problem with the integration. In that case, please provide more detailed information about the Time tool's implementation and the Make scenario configuration, so I can offer more targeted assistance. If you're unable to share these details here, you may need to reach out to support for further help.Ian
07/22/2024, 9:38 PMVapi
07/22/2024, 9:38 PMtoolCallId. The toolCallId is a unique identifier for each call made to your tool, and it should be dynamically obtained from the incoming request and then included in the response. This ensures that the response is correctly associated with the request that was made.
When your Time tool receives a request from VAPI, it should include a toolCallId. Your tool should process the request, obtain the current time, and then send back a response with the same toolCallId it received. This way, VAPI can match the response to the correct request.
Here's a simplified example of how the response should be structured:
json
{
"results": [
{
"toolCallId": "<DYNAMICALLY_RECEIVED_TOOLCALLID>",
"result": "The current time is 12:34 PM"
}
]
}
In your implementation, make sure to replace <DYNAMICALLY_RECEIVED_TOOLCALLID> with the actual toolCallId you received in the request. This is typically done programmatically within your Time tool's code.
If you need further assistance with the implementation, please provide more details about your Time tool's code or the platform you're using, and I'll do my best to guide you through the process.Shubham Bajaj
07/23/2024, 7:52 PMjson
{
"results": [
{
"toolCallId": "X",
"result": "Y"
}
]
}Shubham Bajaj
07/23/2024, 7:52 PM