I have a voice agent on callin.io that sends data to callin.io via a webhook. It then performs some processing and utilizes a webhook response to send data back to callin.io. Everything appears to be functioning correctly within callin.io, but the callin.io tool response indicates a “no result returned” error. I've reviewed the common error scenarios.
The webhook response JSON:
json
{
“results”: [
{
“toolCallId”: “X{{1.message.toolCalls<span class="chcklst-box fa fa-square-o fa-fw"></span>.id}}”,
“result”: “The preferred date and time is available”
}
]
}
The toolCallId aligns with the ID from the custom webhook at the beginning of the workflow.
I've thoroughly examined the documentation and cannot identify the source of the issue. Any suggestions?
json
{
"results": [
{
"toolCallId": "{{2.message.toolCalls<span class="chcklst-box fa fa-square-o fa-fw"></span>.id}}",
"result": "The time you requested is available."
}
]
}
Please use the code I've provided.
I'm not entirely sure as I don't have callin.io credentials to test... but I believe there are a couple of modules within the callin.io app that are intended for Tool scenarios.
If my understanding is correct, the Watch Tool Call Request
trigger can be utilized to capture the Tool Webhook and present the parameters in a readily consumable format.
Additionally, I think the Respond to a Tool Call
module offers parameters for toolCallId
and result
.
Furthermore, they will appear more visually appealing in your scenario list, scenario builder, and in Grid, as they will incorporate the callin.io icon.