Tool returns a 200 status, but tool plays error me...
# support
s
I have a tool that i made for testing purposes, it connects to make. the scenario runs well and no issues there, but vapi still plays the error message for some reason. Call id: 0a07be49-81e6-4a5c-8c63-400e5b62029f Tool id: 7aab2bf5-0dae-4e4c-967d-8f807670f739 https://cdn.discordapp.com/attachments/1342188078437236916/1342188078579585175/image.png?ex=67b8b98e&is=67b7680e&hm=b5cb6e79693f45e92146a60624d7a62ea089c55692a5c0c02d438f56789f18ac&
v
Hey you need to return the response in required format your tool call response was
Accepted
which is not correct.
s
Solved
v
Marking this ticket as solved.
s
Sorry, can you confirm for me what exactly it is that I am doing wrong, I thought I understood you message which actually doesn't make a lot of sense to me now that I'm trying to fix it
@Shubham Bajaj
m
I have the exact same problem, I've also added the webhook response module with "200" status and the message success json included but still getting the error message in the call
v
When making a tool call response, you need to return a specific format to get VAPI to play the success message. Here's how to properly format the response: { "results": \[ { "toolCallId": "<your-tool-call-id>", "name": "<your-function-name>", "result": "Success" // Or any success message } \] } If you return just "Accepted" or response in wrong format, it will be treated as an error. Note: The result must be a single-line string without any line breaks, as the result field only accepts a continuous text string.
s
@Shubham Bajaj Thank you
v
Marking this ticket as solved.
Assistant is not playing success message
Call ID 87b59c66-a7a0-497c-9865-66c8aaa24164 Assistant ID 000e990a-cd22-41a8-9d14-b89f88bb1ec4
v
Marking this ticket as Solved ✅