https://retellai.com/?utm_source=discord&utm_medium=seo logo
Agent calling function with no args
# ❓・bug-report
g
Hello! One of our agent is continuously calling our book appointment function with no args, leading to no actual booked appointment and a messy backend. The prompting and function calls are not the issue, the agent transitions between nodes and calls the functions when it's supposed to. However when calling the function, Retell is sending no args through the webhook. Our schema is valid and we're using POST. call_c4816cdf1b96c0f417f65588a27 https://cdn.discordapp.com/attachments/1463256919455043707/1463256919652434066/Screenshot_2026-01-20_at_12.39.32_PM.png?ex=6979bd73&is=69786bf3&hm=634266a314006c3f6029203e414fd5f996e80743d7767ff0b18031a45ff58483&
o
Hello @George ‼ , I see you are using GPT 5.1, which is inconsistent with function calling , try to use GPT 4.1 .
g
Is 5.1 known for being generally bad? We've also had multiple occurrences where the agent will just stop speaking randomly, which I've been told is an LLM issue. Swapped to 4.1 and the function was sent properly. Will monitor for future issues. Thank you.
o
You are welcome.
o
Can you share this call id
g
Occuring on multiple calls. call_d6f8bb5239c3bc1b39f1c434607 call_c45303c418d2175189f3433c184 call_e7e41c64b4b72f56debb0ce4977
o
checking with the team , I will get back to you.
Hello @George ‼ , so the issue here that you have to many things as required If the LLM cannot resolve all of them properly, then it might return empty. a better solution is to use dynamic variables to ensure all the info are correctly collected (add extract dynamic variables node after each information collection node) Then just use the dynamic variables as const param. In the meantime, if some attributes are optional, please remove the "required" mark, it would also help with the accuracy.