Tool Call not receiving the result in the response
# support
e
Hi Support. I'm using this JSON in my reply to a tool call. { "results": [ { "toolCallId": "call_Vkycla4BD5ScmJeSCZENDcAi", "result": "Jerry Springer" } ] } The call log shows the following: { "name": "getContactInfo", "role": "tool_call_result", "time": 1727391500288, "result": "Success.", "toolCallId": "call_Vkycla4BD5ScmJeSCZENDcAi", "secondsFromStart": 7.638 } It looks like it's receiving the 200 response but not the body with the results. The callID is: ea962abe-d739-4ff4-b9d4-7324dfc39408 This behavior is happening with all of the tools I've made for this assistant. Please advise.
v
@Edpreble Hello! It seems like there might be an issue with how the response is being processed or returned by your tools. To ensure that the response body is correctly received along with the 200 status code, you might want to check the following: 1. Ensure that the response body is properly formatted as a JSON object and that the
Content-Type
header is set to
application/json
. 2. Verify that the tool's logic is correctly capturing and returning the result in the expected format. 3. Check if there are any intermediary services or proxies that could be stripping the response body before it reaches the intended destination. 4. Review the server logs to see if there are any errors or warnings that could indicate why the response body is not being transmitted. If you've already checked these and the issue persists, please provide more details or any specific error messages you're encountering, and I'll be happy to assist you further. If necessary, we can also escalate this to our technical team for a deeper investigation.
You can continue this conversation by mentioning me in the message.
e
I'm asking for help here becuase when I click the red "Ask for help" button, it says: "This interaction failed".
Vapi Support Bot
Please help!!
t
if you use a webhook response, try to eliminate it and use the outpupt of the last node of your workflow .. and format the ouput to vapi requirement
e
I tried that initially. It didn't work. Right now, I'm just trying to get "anything" to go through in the body of the properly formated JSON webhook response. { "results": [ { "toolCallId": "call_UOYrG9qzTzMVCgzS6llC4NjC", "result": "Jerry Springer" } ] } This should be correct right?
t
yeah that look correct .. are you using Make ?
e
yes
o
HI
I faced this issue and didn't reslove it yet.
Could you please help me with this? @Edpreble , @Talel
We can't use webhook response?
t
I'm sorry it's hard to assist without checking the whole workflow , I'm using n8n , i feel it's more maniable then Make.
e
Looks like I needed to turn OFF the Async toggle. After I did that, it started working just fine.
17 Views