Oracle Magazine, March/April 2019
Mobile APPLICATION DEVELOPER 43 Select the OrderPizza intent 44 Click the Entity button at the top right 45 In the New Entity list enter PizzaOrder to search for the PizzaOrder entity and ORACLE MAGAZINE MARCH APRIL 2019 51 select it Figure 2 Intent tester with PizzaOrder entity resolved from the user message 46 Train the bot by clicking the link at the top right 47 After training the skill bot click the icon on the same line as the Description label to test the composite bag entity extraction in the embedded intent tester 48 In the intent tester type I like to order a pizza salami into the Message field and click Send 49 You should see the PizzaOrder entity getting resolved from the user message as shown in Figure 2 50 Click the X icon in the upper right to close the intent tester What you just did In this part of the hands on instructions you created a composite bag entity to hold the pizza order information The order in which entities are added as bag items to a composite bag entity is the default order in which the entities are resolved at runtime You can also change the order by changing the configuration Finally you associated the entity with the OrderPizza intent and tested the entity extraction through NLP in the embedded tester Next add the use of the composite bag entity to the dialog flow REFERENCING THE COMPOSITE BAG ENTITY IN THE DIALOG FLOW To use the PizzaOrder composite bag entity in the pizza order skill bot you need to associate it first with a context variable The variable is then referenced from a dialog flow state with the System ReferenceEntities
You must have JavaScript enabled to view digital editions.