https://retellai.com/?utm_source=discord&utm_medium=seo logo
booking function only working when I test it with ...
# ❓・ai-evy-support
d
@AI Evy booking function only working when I test it with chat- it does not book when I test with voice and just hovers on the booking node.
a
Thanks for tagging me @dannykimes. I'll look through relevant sources and get back to you shortly.
### Answer This issue where booking functions work in chat but not in voice calls is a known problem. Several users have reported similar experiences with the booking function [(1) ]() [(2) ]() [(3) ]() . Here are the key troubleshooting steps to check: 1. Verify Function Call Invocation Check if the function call is actually being invoked during voice calls by examining the transcript [(1) ]() . Look for the booking function call in the logs to see if it's being triggered at all. 2. Check Required Parameters A common cause is missing required parameters like email . If you have email set as a required parameter in your Cal.com event settings but the agent didn't collect one, the booking will fail. You can either collect the email in your prompt or disable the email requirement in your Cal.com event settings . 3. Verify Configuration Ensure your API key, event type ID, and timezone settings are correctly configured [(4) ]() [(3) ]() . The event type ID should be a 6-7 digit number found in your Cal.com URL [(5) ]() . 4. Check Tool Call Response Look at what response you're getting from the tool call [(3) ]() . Sometimes the tool executes but returns an error that prevents the actual booking. 5. Prompt Engineering Make sure your prompt explicitly defines when to invoke the booking function [(4) ](
cs.retellai.com/build/book-calendar) . For example:
Copy code
When user selected a slot, please book the appointment by calling the `book_appointment` function.
If the issue persists, I'd recommend checking your call transcript to see exactly where the function call is failing and what error messages are being returned.
​ To learn more, see the sources I considered: [[1] Booking does not function unless the agent hangs up the phone first.](https://discord.com/channels/1186424376300679209/1349843379881508955) [[2] Discord message from @habsington on 2024-09-11](https://discord.com/channels/1186424376300679209/1186462578310910112/1283545757873602651) [[3] calendar appointment booking through retell](https://discord.com/channels/1186424376300679209/1250814023067500657) [[4] Book Calendar](https://docs.retellai.com/build/book-calendar) [[5] Booking appointment function is not working](https://discord.com/channels/1186424376300679209/1314040297193209916) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.