https://retellai.com/?utm_source=discord&utm_medium=seo logo
If a function node is entered but we don't need th...
# ❓・ai-evy-support
s
@AI Evy If a function node is entered but we don't need the result right away, we turn off the "wait for result" option. But then what do we set as the transition condition(s)?
a
Thanks for tagging me @skitrobot. I'll look through relevant sources and get back to you shortly.
### Answer When you turn off "wait for result" in a function node, the transition timing changes significantly [(1) ]() . With "wait for result" turned off, the agent will transition based on these conditions : - 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 the function gets invoked, which is right upon entering the node - If the user interrupts the agent, the transition can also happen once the user is done speaking For transition conditions in this scenario, you can use standard transition conditions just like any other node [(2) ]() : Prompt conditions such as : -
User said something about booking a meeting
-
User said something about cancelling a meeting
-
User claims to be over 18
Equation conditions such as :
Copy code
- {{user_age}} > 18
- {{current_time}} > 9 AND {{current_time}} < 18
- {{user_location}} == "New York"
- {{name}} exists
Since the function node doesn't wait for the result, you won't be able to write transition conditions based on the function result [(1) ]() . Instead, focus on user input, dynamic variables, or other conversation context for your transition logic [(2) ]() .
​ To learn more, see the sources I considered: [[1] Function Node Overview](https://docs.retellai.com/build/conversation-flow/function-node) [[2] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.