Oracle Magazine, March/April 2019
Mobile APPLICATION DEVELOPER 65 To ensure that your dialog flow is well formatted click the Validate link in the upper right corner If an error is found correct the error and validate again 66 If the dialog flow was validated successfully run the embedded bot tester by ORACLE MAGAZINE MARCH APRIL 2019 54 clicking the test icon from the left menu 67 Type I like to order a pizza into the Message field and press the Enter key 68 You should see a menu listing the pizza types Select a pizza 69 In the next menu select the pizza size 70 Finally select a pizza crust type 71 With the order confirmation displayed click the Reset link at the top of the tester 72 Next type I like to order a thick pizza salami into the Message field to test NLP entity extraction and press the Enter key You provided information about the pizza type and the pizza crust in the input message so the bot asks only for the pizza size 73 Click the Reset link at the top of the tester window 74 Click the Close button at the top right of the tester window What you just did In this section you created a new context variable for the PizzaOrder entity When testing the bot conversation you could see that the user is prompted to provide information that was not contained in the initial user message ADDING THE CHEESETYPE ENTITY TO THE COMPOSITE BAG Besides reducing the lines of code that need to be written for a user bot conversation composite bag entities make it really easy to add or remove information 75 Open the entity editor by clicking the entities icon in the left menu 76 Select the PizzaOrder entity 77 Click the Bag Item button 78 Type Cheese in the Name field
You must have JavaScript enabled to view digital editions.