How can i make "back" button?

(Dmitry) #1

Hello, i need your help,i am making my first bot and i need to make button, which allows user go back to the previous questions.

(Daniel Beckett) #2

Hi Dmitry,

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.

Thanks,
Dan

#3

Hello Daniel,

Great answer, but what if you want to give user leeway to go back to any point and possibly alter the response given earlier and continue with the flow?

(Daniel Beckett) #4

That’s a little more complicated.

A combination of Attributes and Flow labels can be used to allow your users to select a point in the flow and then later on jump back to another part of the flow if needed.

I have an example Flow that you can take a look at where the user selects a question, is shown what they selected at the end and then offered the opportunity to jump back to another part of the flow.

Hope that helps :slight_smile:

1 Like
#5

Wow this is just perfect!

#6

Hello Daniel,

I’ve been trying to use the GoTo and Edit question but i find i’m a bit limited in the labels I can put in place. I read somewhere in community here that there is a limit of 20 and form my trials that barely accommodates 3 questions/interactions. What happens when you have a flow with close to 20 questions/interactions?

Thanks

(Daniel Beckett) #7

Hi @Omoshx78

The GoTo Label action can be used a maximum of 20 times per interaction. This means that if you’re going to exceed those 20 uses you would need to either restart the current flow or trigger another flow.

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: