https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> my node function isnt worki...
# ❓・ai-evy-support
g
@AI Evy my node function isnt working, its not timing out, its not failing its justy waits, even when i tell it not to
a
Thanks for tagging me @graham152. I'll look through relevant sources and get back to you shortly.
### Answer Based on the function node behavior you're describing, there are several settings that control when transitions happen [(1) ]() . The Wait for Result setting is key here - when enabled, the agent will wait for the function to finish executing before attempting to transition to any other node [(2) ]() . Here's what controls the timing behavior: If wait for result is turned off [(1) ]() : - If speak during execution is turned on, the agent will transition once done talking - If speak during execution is turned off, the agent will transition immediately after function gets invoked, which is right upon entering the node - If the user interrupts the agent, the transition can also happen once user is done speaking If wait for result is turned on : - If speak during execution is turned on, the agent will transition once function result is ready and agent is done talking - If speak during execution is turned off, the agent will transition once function result is ready - If the user interrupts the agent, the transition can also happen once function result is ready and user is done speaking The request will timeout in your specified timeout period, or 2 minutes if not specified [(3) ]() . When request fails, it will be retried up to 2 times . Check your function node settings to ensure Wait for Result is configured as intended for your use case [(2) ]() . If you're still experiencing issues similar to the caching problem mentioned in the Discord thread [(
4) ]() , you might need to contact support directly.
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[3] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[4] Node FUNCTION, it doesn't let me change json](https://discord.com/channels/1186424376300679209/1375881722956349672) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.