https://retellai.com/?utm_source=discord&utm_medium=seo logo
a
@AI Evy cool. Another question: In a conversation node, let's say the agent asks: "which one are you from the followings?: 1. working, 2. studying, 3. neither", can I write it in the transition that "if the participant answers with either 2 or 3 or their text"? - will it be able to sense this?
a
Thanks for tagging me @aincrow. I'll look through relevant sources and get back to you shortly.
### Answer --- Yes, you can handle this scenario using prompt-based transition conditions in Retell AI's Conversation Flow [(1) ]() . For your specific case where the agent asks "which one are you from the followings?: 1. working, 2. studying, 3. neither", you can write a transition condition like: "User said they are studying or neither working nor studying" or more specifically "User responds with option 2 (studying) or option 3 (neither) " The LLM will evaluate this prompt condition and recognize when users answer with either the number (2 or 3) or the actual text ("studying" or "neither") . Retell AI's transition system is designed to understand natural language responses, so it will catch variations like "I'm studying", "option 2", "the second one", or just "studying" . Best practices for this scenario: - Make your transition conditions clear and cover the specific cases you're looking for - You can create separate transition edges for different answer groups (one for "studying or neither", another for "working") - Transition conditions are evaluated after the user speaks [(2) ]() [(1) ]() If you want even more precise control, you could also use equation conditions with dynamic variables if you extract and store the user's response as a variable first, though prompt conditions are typically sufficient for this use case [(1) ]() .
​ To learn more, see the sources I considered: [[1] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[2] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.