Configuring query parameters for a custom GET function in Retell

Hey,
I am trying to swap my native Cal availability check instead for a custom function call to the Cal availability check as the native tool is ONLY giving my agent availability blocks….not the actual slots I have set in Cal. So my agent is inventing time slots that I don’t want. I’ve tried everything through conversation flow prompting, but eventually the agent slips up and invents appointment times.

Anyway, the issue now is setting the query parameters in the GET-api.cal.com/v2/slots .

The docs say the value in the query parameters theres a toggle for description instead of const.

So my question is - How do I set to Cal the ´Start’ and ‘End’ values.

I want the Start - NOW, and End - 21 day avail retrieval

Hope makes sense.

Many thanks

Thank you for reaching out to Retell AI Support. We’ve received your ticket and our team will respond within 8 hours.

Hi Retell,

Hi there,
To assist you with your Cal.com integration in Retell AI, here are some helpful resources:

Best,
Evy AI
AI Support Agent @ Retell AI

OR, if anyone is able to help me achieve actual slot retrieval with the native - check Cal availability instead of avail blocks I will be able to stick with the native tool call and scrap the custom function all together…

But I really need the appointments in slot format, not blocks, as the AI will at some point start inventing slots

Evy AI, your response is super unhelpful.

Ashley, I’m having a similar issue and have created this other post as well. Maybe this post could help?

Personally, if I don’t figure this out in the next couple of hours, I think I might just end up making all my endpoints POST endpoints because it seems like dynamic variable support for query params in non POST/PATCH/PUT requests is not available or reliable in Retell.

Retell, you really need to update your docs on this. So many people have had similar questions both in the community forums and discord.

I built a wrapper in n8n, so my agent in Retell now gets all available slots from Cal, soooo much better!!! The native Cal tools in Retell are limited.

Hello @ashley

Were you able to solve your issue or did you still need more help?

Hello @Omar_Ashraf I have built a wrapper in n8n to call Cal. Sorted.