Oracle Magazine, May/June 2019
Mobile APPLICATION DEVELOPER insist on a pizza type that is not in the menu the behavior of the bot is not such that it provides sufficient information For example the System CommonResponse component that is used in the askPizzaType state supports page ranging to display a reduced list of values when the potential list of values is too long to display without requiring users to scroll In this case the user assumption that salami is a valid pizza type may appear to be correct So you need to provide a bit more guidance in the prompts which is what you will do next Note Selecting a value from the list or typing a value contained in the list would navigate the user to the next state which is to specify a size for the pizza But we are not at that point yet ASSIST USERS WITH PROMPTS Using Apache FreeMarker expressions in Oracle Digital Assistant you can display text messages conditionally So for the next user experience adjustment after the first failed user input attempt you are going to tell the user that the provided pizza type is not valid and that only a pizza from the menu list can be chosen 44 Edit the text property in line 39 and change it from ORACLE MAGAZINE MAY JUNE 2019 49 text What pizza do you like to all in a single line text if system invalidUserInput true Sorry system message messagePayload text is not a valid pizza type Please choose a value from the menu if What pizza do you like
You must have JavaScript enabled to view digital editions.