Oracle Magazine, March/April 2019
Mobile APPLICATION DEVELOPER 21 Type I like to order a thick pizza salami into the Message field and press ORACLE MAGAZINE MARCH APRIL 2019 48 the Enter key 22 In the displayed menu select a size for the pizza 23 Note that the pizza order was completed within a single bot user interaction 24 Click the Reset link at the top of the tester window 25 Click the Close button at the top right of the tester window 26 Open the dialog flow builder by clicking the dialog flow builder icon in the left menu 27 Note the use of the nlpResultVariable property in lines 31 41 and 50 The component property checks whether the requested information is contained in the initial user message If it is the component will not render and navigation will continue to the next state CLEANING UP THE DIALOG FLOW Composite bag entities help reduce the overall number of dialog flow states needed for a task such as ordering pizza To prepare to use a composite bag entity in the pizza order skill bot you first need to clean up the current dialog flow 28 In the dialog flow builder select and delete lines 25 52 Ensure that the intent and done states are kept as they are 29 Change the value of the OrderPizza transition action line 21 to getOrder Figure 1 shows the intent state with this change What you just did You prepared the dialog flow for adding a composite bag entity variable state The OrderPizza transition action is followed when the NLP engine understands the user message as a pizza order The value of this action needed to change because you removed the getCrust state You will create the getOrder state later in the hands on instructions
You must have JavaScript enabled to view digital editions.