Go Tobot dialog enables the bot to redirect the user to a bot dialog, depending on conditions of the session variables. You can define conditions with operators like
smaller than, etc. You can also combine multiple conditions with
I want to book a train from Paris to London in first class please.
Go Tobot dialog with the name
selected first classbot message
class,which we already created. Here, the traveler will be asked explicitly in which class they want to travel.
departure dateInput Validation.
selected first classbot dialog. We are going to create buttons and save that information in a variable. Click on 'buttons' and create similar buttons as in the
classInput Validation, to ask the user if they want a window seat. Make sure to save this to a variable. Add a Go To that redirects the user to
selected second classbot dialog. Add a text message saying 'Second class confirmed' and go to
departure dateInput Validation, change the Go To to
classInput Validation. Change buttons so that both choices are redirected to the Go To
class redirect. Change the parent to
class redirectwe check if the class has already been given in the expression by the user. If that is the case, we confirm second class or give extra options for first class. If class has not been given yet, the user can choose this in the
classInput Validation. If the user chooses their class in the Input Validation, then they are redirected to the class options.