https://retellai.com/?utm_source=discord&utm_medium=seo logo
Looking to add a conversation flow node to act as ...
# ❓・ai-evy-support
a
@AI Evy Looking to add a conversation flow node to act as a loop, asking about current medications, for each medication the user says, the agent asks 4 follow up questions before continuing onto the next question. I've implemented this in many different ways and the agent keeps getting stuck and having issues.
a
Thanks for tagging me @ashade_22893. I'll look through relevant sources and get back to you shortly.
### Answer Creating effective loops in Conversation Flow can be challenging. Based on the available documentation, here are some approaches to consider for your medication collection flow: Node Structure Considerations: For complex loops like medication collection, you'll want to use multiple nodes connected with proper transition conditions [(1) ]() [(2) ]() . Each conversation node can handle multi-turn conversations within a single node, so you don't necessarily need to create a new node for every sentence [(1) ]() . Common Looping Issues: The Discord community has reported similar looping problems, particularly with Global Nodes [(3) ]() . Users have experienced issues where flows keep looping unexpectedly, especially when combining Global Nodes with Logic Split Nodes . Potential Solutions: 1. **Break down complex nodes**: Consider breaking down nodes when they handle multiple complex logic paths or when the LLM struggles with consistency [(4) ]() . 2. **Use specific transition conditions**: Make your transition conditions very specific using either prompt-based conditions (like "User provided medication name and answered all 4 follow-up questions") or equation conditions for tracking variables [(2) ]() . 3. **Add fine-tuning examples**: The Retell team has suggested adding transition fine-tune examples to help resolve confusing transitions [(3) ]() . 4. **Avoid Global Node complicati
​ To learn more, see the sources I considered: [[1] Conversation Node](https://docs.retellai.com/build/conversation-flow/conversation-node) [[2] Step 3: Add transition conditions](https://docs.retellai.com/build/conversation-flow/transition-condition) [[3] Conversation Flow Node Looping](https://discord.com/channels/1186424376300679209/1372978630841602078) [[4] Node Overview](https://docs.retellai.com/build/conversation-flow/node) ​
ons**: If you're using Global Nodes in your loop, be aware that there are known issues with Global Nodes causing unexpected looping behavior . Recommended Structure: Instead of trying to create one complex looping node, consider: - One node to collect the medication name - Separate nodes for each of the 4 follow-up questions - A Logic Split Node to determine if more medications need to be collected - Clear transition conditions between each step Would you like me to provide a general approach for structuring medication collection flows, or do you have specific transition conditions that aren't working as expected?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
a
I've tried all of this 🙁 single loop nodes, split into multi question nodes, can't seem to get this to work properly