The idea of a Go-to is for you to command a bot dialog to go to another dialog immediately.
What a Go-to looks like in your chatbot conversation.
You can create Go-to's from many places in your conversation, which makes sense since it's a nice way to keep the conversation nice and flowing. It might be confusing at first sight but using Go-to's is actually very simple.
There are 2 main ways of creating Go-to's in Chatlayer:
You can go to any dialog type to any other dialog type in your conversation.
Go to another dialog from a button within a Bot Message
To do that, find the Go To ribbon at the bottom of your dialog and expand it to fill it in.
Go to any other dialog by filling in the Go to section at the bottom of your dialog type.
To pass a variable, click on
+Add Variableand define your variable name and value.
Link two dialogs and pass a variable by using the Go to section at the end of a Bot Message or Action dialog.
Go To bot dialogs themselves enable your bot to redirect the user to another dialog depending on the conditions of the session variables. This is the easiest way of introducing simple if-then logic to your bot.
By enabling the "Case sensitive" toggle capitalization of letters is taken into account when comparing the value of a variable.
In this case the user will be redirected to "first class" if the class variable equals "first". Otherwise, the user will go to the "other class" bot dialog