https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> , how can i pass api key an...
# ❓・ai-evy-support
a
@AI Evy , how can i pass api key and event Type id for book_appointment_cal function as variables, for different calls i may need to use different api key and event id.
a
Thanks for tagging me @akashcoast_36360. I'll look through relevant sources and get back to you shortly.
### Answer The built-in Cal.com integration in Retell AI currently requires specifying the API key and event type ID during function setup/configuration and doesn't support dynamic variables for these parameters [(1) ]() . For dynamic event type IDs, you'll need to implement a custom function instead of using the built-in Cal.com integration [(2) ]() [(1) ]() . This would involve creating your own backend solution that can handle different API keys and event type IDs based on your call requirements [(1) ]() . The current Cal.com integration workflow requires you to: 1. Add the "Check Availability" and "Book Appointments" functions to your agent [(3) ]() 2. Connect to a Cal.com account by entering the API key and event ID in the function configuration 3. Configure time zone settings on both Cal.com and Retell AI dashboard If you need to use different API keys and event IDs for different calls, you would need to build a custom function using your own backend that can dynamically handle these parameters [(1) ]() .
​ To learn more, see the sources I considered: [[1] cal.com Integration: Agent can specify event type id dynamically](https://discord.com/channels/1186424376300679209/1388617797491359915) [[2] Discord message from @rohansarda on 2025-05-13](https://discord.com/channels/1186424376300679209/1294891368505937952/1371800738006700092) [[3] Automate Scheduling with AI Appointment Booking | Retell AI](https://www.retellai.com/features/book-appointments) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
looks like retell should consider developing this. this is a really valid use case, we cant create multiple agents for just this simple change.