https://retellai.com/?utm_source=discord&utm_medium=seo logo
My function in manual chat is working but not in t...
# ❓・bug-report
t
Hello team, I have two function with check_availability and Book_appointment. The agent keep using [1] even though the prompt have explicit instruction to use this number 3903436. Tool Invocation: check_availability tool_call_id: tool_call_59df29 { "startsAt": "2025-11-13T14:43:32-06:00", "eventTypeIds": [ 1 ] } same with my book appointment function, also it makes up service ID and put in text. tool_call_id: tool_call_da5028 { "customerAddress": "123 Main Street, Dallas, Texas, 75201", "customerPhone": "214-780-6112", "eventTypeId": 1, "customerEmail": "", "startsAt": "2025-11-14T09:00:00-06:00", "serviceId": "drain_cleaning", "customerName": "John Smith" } Here's an example from manual chat Tool Invocation: check_availability tool_call_id: tool_call_7490fd { "startsAt": "2025-11-13T15:53:28", "eventTypeIds": [ 3903435, 3903436 ] } Please help, Thanks.
f
I can help! 😊 It looks like the agent is defaulting to [1] instead of using the specific event/service ID because the prompt or tool input isn’t being explicitly passed or recognized. Can you clarify if the ID 3903436 is always fixed, or should it dynamically come from the user’s input?
t
Hello @Flashtum, The id is always fixed it is in prompt and knowledge base
o
Hello @tvuinvenboost_28160 , Can you share the agent id.
t
Hello @Omar Ashraf | Community Lead , Agent id: agent_d6cfd3bf7241d4218e9ea699dc
f
Thanks for confirming! Since the ID is fixed, the agent is likely ignoring it due to how the instructions or tool schema are structured. I can take a look and help you fix the prompt/tool definitions so the agent always uses 3903436 correctly. If you’d like, I can message you and walk you through the exact setup or handle the full fix for you. Want me to reach out? 😊
t
Yes please that will be great!
o
Hello @tvuinvenboost_28160 , I see you your description is "Event type assigned to the service" , you need to be more specific and mention what event type you want here in the description not only on the main prompt