https://retellai.com/?utm_source=discord&utm_medium=seo logo
How are prompt conditions evaluated
# ❓・ai-evy-support
m
@AI Evy How are prompt conditions evaluated? Are they all evaluated independently, or are they evaluated in sequence in order?
a
Thanks for tagging me @momsramen. I'll look through relevant sources and get back to you shortly.
### Answer Conditions in Retell AI's Conversation Flow (such as transition conditions between nodes) are evaluated based on the configuration of your flow. Each condition (for example, equation conditions like {{user_location}} == "New York" or {{user_email}} exists) is checked to determine if it returns true, and transitions usually happen after the user speaks, depending on the current node type. The documentation does not specify that conditions are evaluated strictly independently or strictly in sequence, but it does indicate that you should cover all possible cases to ensure smooth transitions and avoid agents getting stuck [(1) ]() .
​ To learn more, see the sources I considered: [[1] 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.