https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can’t book reservations
# ❓・bug-report
z
Hi, I'm experiencing an issue where my agent is failing to execute a specific tool call, and I'm hoping you can help me diagnose the configuration on your platform. My Goal: My agent needs to make a GET request to the Cal.com API to check for availability. The final, working API call (which I have successfully tested in Postman) looks like this: GET https://api.cal.com/v1/availability?apiKey=...&dateFrom=...&dateTo=...&eventTypeId=...&username=... The Problem: My agent is not sending the request. I used Webhook.site to confirm, and no request is being sent from your platform. Troubleshooting I've Already Done: Basic Tool Test: I created a simple tool called test_hello with no parameters. My agent can successfully call this tool. This proves the basic tool-calling functionality is working in my account. Complex Tool Test: When I ask my agent to call my real tool, check_availability_cal, it fails to send the request (nothing appears on Webhook.site). This happens even when I use a simple trigger phrase and hardcode all the parameters in the prompt, so the agent isn't doing any complex logic. Clean Recreation: I have already deleted and completely recreated the check_availability_cal tool from scratch with the GET method and all five required query parameters defined, but it still fails to execute. This seems to indicate an issue within the platform where it is failing to dispatch a GET request with multiple query parameters, even though it can dispatch a simple tool. Could you please look at my agent's configuration for the tool named check_availability_cal and help me understand why it is not being executed? Thank you,
o
Hello @Zak
when you use the tool do you see any tool invocation on the chat and did you use the chat testing or the voice testing ?
z
No tool invocation and I used voice testing
@Omar Ashraf | Community Lead
o
you checked the call transcription on the call history and was no call invocation?
z
None at all
Just knowledge based retrieval
Base*
o
Okay , that is a prompting issue , the ai didn't know when to use the function.
did prompt to use the function and use the function name ?
z
Yes I’ve wrote in the prompt to use check_availability_cal anytime someone wants to book a reservation
It can do everything else but check availability and book reservations
o
share your prompt if it doesn't have anything sensitive on it
z
Can I send it to u via private chat please, it has no sensitive information
o
Sure