from where to get toolCallId that needs to be retu...
# support
m
Vapi accepting toolCallId with result in webhook response { "results": [ { "toolCallId": "X", "result": "Y" } ] } but from where to get this toolCallId?
v
@mukul The
toolCallId
is a unique identifier for a specific call to a tool made through VAPI. When you make a request to a tool via VAPI, the response you receive should include this
toolCallId
. It's used to correlate the tool invocation with its result, ensuring that the response is matched to the correct request. If you're developing a server to handle requests from VAPI, you should extract the
toolCallId
from the incoming HTTP request that VAPI sends when it calls your tool. This ID will be part of the request payload, and you should use it in your response to ensure that VAPI can match your response to the original request. If you're unsure where exactly to find the
toolCallId
in the request, or if you're having trouble with the implementation, please ask support for more info on this.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
m
found this line in docs Make sure to add “Tools Calls” in both the Server and Client messages and remove the function calling from it. but in which message we need to add "Tools Calls"?
s
to the server messages.
m
and from where to get this toolCallId?
s
7 Views