Using the Menu Option function, you can make the chatbot present multiple clickable options to the user. Based on the user’s selection, the chatbot will execute the corresponding dialog or action.
NOTE: The option selected by the user for this function will not be stored anywhere as it only acts as the input for executing a dialog or action.
In a particular scenario, you want to greet the user along with asking them to select the kind of support the user is looking for – IT Support, HR Support, etc. The user can then select an appropriate option, which will further take them to the respective dialog flow to carry on with the chatbot.
Let us see how you can configure the Menu Options function:
1.Select Menu Option from the list of functions.
2. In the Menu Option window, enter the question you want to ask with the options. You can also select context variables as shown below.
3. Add the Option and it’s Value.
Here, Value represents the value to be recognized in the conditions of the corresponding dialogs (sub-dialogs for each option). Ideally, the values in both the places should match for the Menu Option function to work properly.
4. Click Add More to add the second option and so on.
5. When you’re ready, click Save.
Once saved, a sub-dialog for each option will be created. You have to configure the condition for the dialog including the same Value as entered above for each option.