jit
09/20/2024, 10:28 AM{
results: [
{
message: [
{
type: "request-complete",
role: "assistant",
content: "Next monday at 5 pm is available",
},
],
toolcallId: "call_1pKJtgLbpRFh62GneSHKnlvT",
name: "eb46446a-4d83-4ac1-b8e6-375f58bc0ebe",
},
]
}
But didn't succeed
The result in call logs looked something like this
{
"name": "eb46446a-4d83-4ac1-b8e6-375f58bc0ebe",
"role": "tool_call_result",
"time": 1726827031345,
"result": "No result returned for call_1pKJtgLbpRFh62GneSHKnlvT.",
"toolCallId": "call_1pKJtgLbpRFh62GneSHKnlvT",
"secondsFromStart": 16.665
}
2. Tried the 2nd way as per the way mentioned here https://docs.vapi.ai/tools-calling#server-response-format-providing-results-and-context
{
results: [
{
toolcallId: "call_tQkt0YJ4Yc1ENiMPf1V0zWUS",
result: "Next monday at 5 pm is available",
},
]
}
{
"name": "eb46446a-4d83-4ac1-b8e6-375f58bc0ebe",
"role": "tool_call_result",
"time": 1726827154782,
"result": "No result returned for call_tQkt0YJ4Yc1ENiMPf1V0zWUS.",
"toolCallId": "call_tQkt0YJ4Yc1ENiMPf1V0zWUS",
"secondsFromStart": 11.738
}
Both didn't work for me.
Would be grateful if someone could help me outVapi
09/20/2024, 10:29 AMVapi
09/20/2024, 10:29 AMjson
{
"results": [
{
"toolCallId": "call_tQkt0YJ4Yc1ENiMPf1V0zWUS",
"result": "Next monday at 5 pm is available"
}
]
}
Please ensure that you're using double quotes and that the toolCallId matches the one you received in the HTTP request. Once you've made these changes, try sending the response again. If you continue to encounter issues, please ask support for more info on this.Vapi
09/20/2024, 10:29 AMjit
09/20/2024, 10:43 AMjit
09/20/2024, 1:20 PMShubham Bajaj
09/20/2024, 4:51 PMjit
09/20/2024, 4:51 PMShubham Bajaj
09/22/2024, 8:08 AMjit
09/23/2024, 5:10 AM