Simple loop for upper level interact

(Vitaliy Siomochkin) #1

Hi everyone!
How can i make loop through the buttoned choice for interact which was used previously? Remarks: button ‘yes’ - go to order, ‘no’ - loop (Or how can i make “Back” button) ?
Please see the screenshot

1 Like
(Daniel Beckett) #2

Hi @Vitaliy_Siomochkin

You can use Flow labels to achieve this.

You just need to setup a label at the point in your flow that the user needs to jump back to and then have a Flow > Goto Label action to set to the same trigger word. If you need to control when the user should trigger the goto label then you could use filters.

Since there’s a limit of 20 times that you can use Goto a Label in a single interaction it can sometimes help to add a counter attribute to your flow to track how many times it’s passed through the loop that you’ve setup. Once a certain count value is reached you can then handle it and pass the user into another flow or let them know that they can’t jump back again.

Here’s a basic example to show how that works:

Hope that helps. Please let me know if you have any questions.

Thanks,
Dan