https://retellai.com/?utm_source=discord&utm_medium=seo logo
Asynchronous Function implementation node
# ❓・bug-report
j
Let's say I have these nodes {xyz} --> {function node calling getSchedule and saving it in {{schedules}} } --> {abc} --{pqr} Now, abc doesn't immediately need {{schedules}}, so is there a way we can call getSchedule in a way that doesn't impede the flow of the coversation while waiting for the function to retun? I turned off wait for result, but the function node only transfers to abc once the function returns something, anything. I want it running in the background.
Sorry for so many questions!
@AI Evy
a
Thanks for tagging me @jsdknvm_92719. I'll look through relevant sources and get back to you shortly.
### Answer Based on the documentation, when you turn off "Wait for Result" in a function node, the transition timing depends on the "Speak During Execution" setting [(1) ]() : - If "Speak During Execution" is on, the agent transitions once done talking - If "Speak During Execution" is off, the agent transitions immediately after the function gets invoked, which is right upon entering the node However, the documentation indicates that even with "Wait for Result" off, the function node still controls when transitions can happen . The behavior you're describing—where the node waits for the function to return something before transitioning—suggests the function node architecture doesn't support true "background execution" where the conversation continues completely independently of the function call. The transition will occur based on these conditions, but the function node itself must be entered and its transition logic evaluated . There isn't a documented way to have a function execute completely asynchronously in the background while the conversation flow continues through multiple subsequent nodes without any dependency on that function node's completion. If you need
{{schedules}}
available later in node
pqr
but not in
abc
, you might need to restructure your flow so the function node appears just before where the data is actually needed, rather than trying to pre-fetch it earlier in the conversation.
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
Appreciate the feedback! Feel free to ask me again with additional guidance or context.
Thanks for the follow-up, @jsdknvm_92719. I'll get back to you soon.
j
This is false. I can verify that when I set execution message off and wait for result off, it still waits for a response from the custom function. @AI Evy This is incorrect documentation.
a
### Answer Thank you for the clarification about the actual behavior you're experiencing. Based on the official documentation, when "wait for result" is turned off and "speak during execution" is turned off, the agent should transition immediately after the function gets invoked, which is right upon entering the node [(1) ]() . However, you're reporting that this is not what's happening in practice—the function node still waits for a response from the custom function before transitioning. There was a known issue documented in the status page from July 2024 where "Conversation Flow agent potentially stay silent after function node" due to a message order issue [(2) ]() . While that specific incident was marked as resolved, your experience suggests there may be ongoing behavior that doesn't match the documented transition timing. I recommend reaching out to Retell AI support directly to report this discrepancy between the documented behavior and what you're observing. You can: - Visit [Contact Sales]() - Visit [) This will help ensure the team is aware of the issue and can either update the documentation or fix the behavior to match what's documented.
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Conversation Flow agent potentially stay silent after function node](https://retell.discourse.group/t/conversation-flow-agent-potentially-stay-silent-after-function-node/135) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
uncheck it for your case
j
Hi @User , we don't see in multi-prompt node setup at all. We do have speak during execution turned off. How can we check this specific check? https://cdn.discordapp.com/attachments/1436155558192480317/1436424934028087398/image.png?ex=690f8e77&is=690e3cf7&hm=48eb12bd3520cef99824482e95b9a882147c01faa79c957de2d44f0658556ea9&
It's not in function definition either
o
Hello @jsdknvm_92719 , in the image is Conversation flow do you meant that , or do mean multi prompt
anyway it will be on the function it self
j
Conversation flow! Sorry! The one with many nodes and stuff I still can't find it in the functions @Omar Ashraf | Community Lead 🙁 https://cdn.discordapp.com/attachments/1436155558192480317/1436429928127008778/image.png?ex=690f931e&is=690e419e&hm=a3053a2bd2da954d7bc83116cdf25bc9a247d78af351b7f4656f2490120d8847&
Still stuck
o
Did you test it on chat or voice ?
j
Chat
o
Try the voice it will work
j
Worked haha
o
Great
j
@Omar Ashraf | Community Lead Stopped working
Sorry to bug again
o
Hello @jsdknvm_92719 , can you share a screenhost of what you mean