I've set up the "Get_Calendar" tool and its corresponding webhook workflow. This workflow is indeed triggering during calls. However, I'm encountering an issue where the time slot is shown as available in the callin.io workflow, but my Voice Agent in VAPI is reporting that no time slots are available.
JSON file link: https://drive.google.com/file/d/1sitTm7JhuoSHL4s4t5HCoZNKHAXQsSAq/view?usp=sharing
Could someone please review this and offer some assistance?
Please verify the toolCallId
within the respond webhook node.
Ensure that you are utilizing a JSON body structured as follows:
json
{
"results": [
{
"toolCallId": "{{ $(‘Webhook’).item.json.body.message.toolCalls[0].id }}",
"result": {{ JSON.stringify($json.output) }}
}
]
}
Important Considerations:
- The
toolCallId
is distinct from the assistant ID provided by callin.io. Using the assistant ID here would be an error. - The
toolCallId
is a dynamic identifier that changes with each request. Avoid hardcoding it; instead, use the ID obtained from the preceding webhook node as a parameter.
Yes, that was the problem; I had misspelled "results" without the 's'.
Thank you for your feedback.
However, I've now implemented an AI Agent to handle all of this. The AI Agent manages every scenario and performs all tasks.
Do you believe using an AI Agent is superior, or was the previous approach better for this scenario?