My Tool is getting executed, But not sharing detai...
# support
e
Hi One of my tool is getting executed, response is also getting. But, Agent is not sharing the data in the conversation. below is my tool response.. our agent should share Program_Interested_in value back into the conversation once the tool is executed. But, agent is failing to bring it into conversation irrespective of any number of times that I ask the question. Can anyone help? { "results": [ { "result": { "first_name": "Eswara", "Flow__InterviewGuid": "1079e6fd96f1c053dc6d5f5ee4519a3a1f4610-3c78", "Flow__InterviewStatus": "Finished", "program_interested_in": { "value": "B.Sc. in Artificial Intelligence & Data Science" } }, "toolCallId": "call_DCmvBnKt1NRhGxHq6TwhXErK" } ] }
p
Hi @Eswara Naidu I can help you with any kind of difficulty you're facing here, this is truly my area of specialization. Let's have a chat now and proceed with your project. Thanks
message has been deleted
c
Hi, could you please provide a call id where you experienced this issue? We would like to review the logs to identify the cause.
e
Its happening with all calls in all orgs.
c
Could you please provide any call IDs where this issue occurred? Having even one example will significantly speed up our investigation.
e
here are the details you requested: Tools are not fetching information into the call even though execution is successful. Synchronous tools are failing, even though a 30-second timeout has been set. Both of these issues can be seen in the following call: Call ID: 019a97ce-f1a0-733e-91da-52837a0819e0 The tool is successfully executing in both the below scenarios, but the agent is not able to bring the returned values into the conversation. Synchronous mode: Responding with tool failed message Asynchronous mode: no response received Below is the tool response for your technical team: { "results": [ { "result": { "Flow__InterviewGuid": "5279328ad9c4bf5ec3db7231318419a9611b32c-2804", "Flow__InterviewStatus": "Finished", "program_interested_in": "M.Sc. in Clinical Psychology" }, "toolCallId": "call_whcwh532T6DPJrZlvk22SMLk" } ] }
issue is happening with below type of tool response aswell. { "results": [ { "result":"interested program is M.Sc. in Clinical Psychology", "toolCallId": "call_whcwh532T6DPJrZlvk22SMLk" } ] }
technical issue is not resolved despite following all the different steps mentioned in the documentation. Here is another callId for tech teams reference. callId : 019ab5f3-a4fa-7ffd-824c-1ba4a88583f7 You can find 2 tools executing in the above call one with one working and other not working. - whether_tool (working) : created a sample tool on a personal website as a test. { "results": [ { "result": { "FlowInterviewGuid": "5279328ad9c4bf5ec3db7231318419a9611b32c-2804", "FlowInterviewStatus": "Finished", "WhetherInformation": "Whether in visakhapatnam is 23 degrees" }, "toolCallId": "call_Bj7jhTTGfqwp5BrUlWvsdXYs" } ] } - program_interest (not working) : This tool is executing directly in our products related server, all tools coming from the server(conversekit.ai) mentioned in this tool are failing. { "results": [ { "toolCallId": "call_7IVfcBA7faPfXhYtoPKIniOZ", "result": "program of interest is Msc in physcology" } ] }
Team, Issue with voice calls is sorted (when removed async). But, somehow issue in chat is still remained the same.
can you please check and let us know where its going wrong?
chat id: 1480e0bc-1357-4206-ab48-aedd3fb71ecb session id: b0a57859-b666-4d81-8bc6-a86d259a3680 org-id: c2d70e40-e9cd-4277-a020-42f8b1350919
@User this request is open for close to a month can you please look into this?
k
It looks like the toolCallId you’re returning does not match the one we sent in the request. When our server sends a tool call like: [{ "role": "assistant", "tool_calls": [{ "id": "call_ng31KQMaOwcahkgcv7bo1uwr", // id from request "type": "function", "function": { "name": "program_interest", "arguments": "{\"mobile\": \"+918686686985\"}" } }] }] Your server must return the exact same id in your response. But your tool response is returning a different one: { "results": [ { "toolCallId": "call_7IVfcBA7faPfXhYtoPKIniOZ", // id from response "result": "program of interest is Msc in physcology" } ] } Because the IDs don’t match, the assistant can't map your result back to the correct tool call — so it never injects the data into the conversation. Please update your tool to return the same toolCallId that Vapi sends, and it should start working.