https://retellai.com/?utm_source=discord&utm_medium=seo logo
400 error when adding a function to a conversation...
# ❓・bug-report
s
I am getting a 400 error when trying to add a function to a conversation chat agent. It isn't a payment issue as i've seen in some threads as my account is current and auto-charged. But every time I add it, I save the function and get a 400 error. The rest of the agent works fine, just cannot add these custom functions.
Hi brother, read the document; you must be missing something, that’s why the error is coming.
s
A 400 error usually means the function node payload doesn’t match the expected schema. Please ensure your JSON includes all required fields.
Make sure the JSON is valid (no trailing comma, correct syntax), and that the name, tool_id, and url are properly formatted. If you're using the Retell SDK, your IDE should point out schema mismatches. If you can paste your function JSON (without secrets), I can help pinpoint the error.