Hi everyone 👋
I’m struggling with returning an error in Vapi from a Make scenario.
The issue is with the toolCallId:
• In Make, the toolCalls object comes as an array.
• Vapi requires the toolCallId to be a plain string, not an array reference.
• No matter what I try (toolCalls[0].id, toolCallList[0].id, using Set Variable, etc.), the webhook response is still treated as success instead of error.
Here’s the JSON I’m trying to send back:
{
"results": [
{
"toolCallId": "{{...}}",
"error": "Sorry, this time is not available."
}
]
}
But I can’t figure out how to correctly reference the toolCallId as a string in Make.
Has anyone already solved this in Make? Any advice would be super helpful!
https://cdn.discordapp.com/attachments/1211484481848873020/1418962113065521203/IMG_9167.png?ex=68d006f2&is=68ceb572&hm=bc581ed1642db59f84146974b4016dd6b80bdf5423828d488eef1b2a7c3839f3&