https://retellai.com/?utm_source=discord&utm_medium=seo logo
Everytime I test a custom function componenet in m...
# ❓・ai-evy-support
j
@AI Evy Everytime I test a custom function componenet in my conversation flow I get an error "Failed to get LLM responseError: Internal Server Error" - do you know what would cause this?
a
Thanks for tagging me @Jeremy. I'll look through relevant sources and get back to you shortly.
### Answer This "Failed to get LLM response Error: Internal Server Error" when using custom functions inside components appears to be a known issue that other users have reported. [(1) ]() Based on community reports, this error specifically occurs when defining a function inside a component rather than in the main flow. Users have noted that the same function works fine when placed in the main flow, but errors out when placed inside a component. Potential workarounds to try: 1. Move the function to the main flow - If possible, define your custom function in the main flow instead of within the component. 2. Check your function parameters - Ensure your custom function parameters are valid. A common mistake is not adding
"type": "object",
to the top level of the JSON schema. [(2) ]() 3. Verify your endpoint URL - Make sure the URL is valid and accessible. 4. Check dynamic variables - If you're using dynamic variables in query parameters, ensure you're using double curly braces
{{variable_name}}
not single braces. [(3) ]() Since this appears to be a platform-level issue with functions in components, I'd recommend reaching out to Retell support with your specific call ID and agent ID so they can investigate further.
​ To learn more, see the sources I considered: [[1] components error:"Failed to get LLM responseError: Internal Server Error" in component L1](https://discord.com/channels/1186424376300679209/1428397581133807668) [[2] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[3] Issue with Global Variables Not Passing in Query Parameters for Custom Function Tool](https://community.retellai.com/t/issue-with-global-variables-not-passing-in-query-parameters-for-custom-function-tool/773) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.