https://retellai.com/?utm_source=discord&utm_medium=seo logo
How to make Cal.com event type ID dynamic?
# ❓・bug-report
s
I am developing an agent that uses the Check Availability on Calendar tool with Cal.com. However, I want to make the event type ID dynamic (as I have multiple clients that would be using this same agent for different events) and the tool on the dashboard only allows a number value to be entered. How can I make this number dynamic? Alternatively, I can write a custom tool function; but I’m not sure which Cal.com API endpoint should be called to check availability for an event type. Thanks!
n
Have you tried to use dynamic variables. You can pass dynamic variables for outbound call or read from a inbound webhook and use that in the tool like you would use in prompt https://docs.retellai.com/retell-llm/dynamic-variables
Also if at all you end up writing a custom function here are the APIs to use https://api.cal.com/v2/docs#/Slots/SlotsController_getAvailableSlots Check out the Slots and bookings sections
z
Same question here, I've tested with dynamic varibales but it seems, they're not interpreted and the tool lokks after {{envent_type_id}} instead of the real value