https://retellai.com/?utm_source=discord&utm_medium=seo logo
Empty payload for custom function
# ❓・bug-report
o
I am having an issue with a custom function that worked before (last week). Today 11.11.2025 the payload is empty when calling the function. (tool_call_id: tool_call_b14927 {} ). Actually in n8n i see that the args are send but no dynamic variables at all. This is what i have already tried: - I have created a new custom function to try if that works but the same issue persists. - I verified the dynamic variables and they are all filled before i call the custon function. - I ruled out the issue of the function being called in a component. Even in the main flow the issue persists. - I tried to call a similiar function in a different conversation flow in a different workspace and there dynamic variables are part of the payload. still work so it seems that this is not a general behaviour across all workflows or workspaces. Please help asap as this a very critical issue for my customers. https://cdn.discordapp.com/attachments/1437764852058947655/1437764852868452413/tool_invocation.png?ex=69146e5d&is=69131cdd&hm=26f96e616a3c4ee30a2bdb3e79738bbec030671aca1ed873a4d37b50bebaf47e&
o
Hello @oaky_99186 , Can you share the function configuration and what llm are you using ?
o
I attached the screenshot of the function configuration. The parameters are: { "type": "object", "required": [ "startTime", "TimeZone", "name", "email", "location", "topic", "eventID" ], "properties": { "eventID": { "type": "number", "description": "eventID of cal.com" }, "TimeZone": { "type": "string", "description": "The current time zone" }, "name": { "type": "string", "description": "The name of the user" }, "topic": { "type": "string", "description": "The topic for the meeting" }, "startTime": { "type": "string", "description": "The start time in ISO 8601 format (e.g., '2025-02-10T00:00:00Z')." }, "location": { "type": "object", "description": "Details about the meeting location.", "required": [ "value" ] }, "email": { "type": "string", "description": "The email of the user" } } } https://cdn.discordapp.com/attachments/1437764852058947655/1437811763449040927/custom_function.png?ex=69149a0d&is=6913488d&hm=9842616853eb671837e47ca4e3aaa98e4c770726c5955b14c901fc863a1e6345&
LLM is Gemini 2.0 Flash
@Omar Ashraf | Community Lead It is the LLM that makes it happen. Just tried to switch to GPT5 and it works. Funny enough it worked before with Gemini. Is there an overview of what models should be used/avoided for which purpose
o
Hello @oaky_99186 , Yes i was about to tell you to change the llm , gemini used to have some problem with tool calling
GPT5 also not very constant about that , you can try 4.1 is more stable
o
ok. Thx. There should be a cheat sheet for that as im guessing im not the only one running into this issue.
o
You are welcome , and thank you for the suggestion will tell the team about it.
o
Thx for your support