https://discord.gg/botpress logo
how to build a go-back choice pattern
# 🤝help
f
i'm new to botpress and i'm stuck on building this pattern, any suggestions would be very much appreciated
l
Hey Stefan. There’s a bunch of ways to enact go-back patterns, so the trick is finding the one that works for your use case. I like to break down my bots’ different functions into different workflows. Then within the Main workflow, I’ll have an autonomous node that understands the user’s intent, and routes the user to the appropriate workflow.
 Within each of these workflows, if the user ever wants to ‘go back’ (which we can discern through an Autonomous Node or a menu choice), we simply send the user to that workflow’s ‘Exit’ node. That will throw us to the corresponding exit point on the autonomous node we used for routing. We can simply feed that path back into the router. I attached a screenshot, so you can see what this routing node looks like. Hopefully that makes sense! https://cdn.discordapp.com/attachments/1407705498295210044/1407716205824966798/Screenshot_2025-08-20_at_9.16.48_AM.png?ex=68a71d61&is=68a5cbe1&hm=24b06ff33210c439bca130fc462cc6d3684d85c0666bfc942ec3610b08fd873d&
f
thanks, helped me a lot!