Oracle Magazine, July/August 2019
Mobile APPLICATION DEVELOPER The solution is similar to the departure date prompt you added in line 45 Note To verify your solution or to skip this challenge on a lazy day you can find the correct expression in the returnDate_ prompt txt file located in the strings folder of the extracted resources for this article With this addition you have completed the first part of this hands on exercise All skill bot prompts and text responses should now use alternating messages and appear less robotic You can find a completed solution OraMagTravel_ Completed 10 zip in the completed folder of the extracted downloads for this article ABOUT COMPOSITE BAG ENTITIES Composite bag entities are like business domain objects and encapsulate multiple entities and variables into a single object A composite bag entity for example could represent an order an account a product and more Besides being business oriented the benefit of composite bag entities is that they resolve themselves at runtime by generating the dialog boxes needed for a user to provide required entity information Because composite bag entities generate the bot conversation flow at runtime you dont build dialog flow states which has an impact on how you define prompts In the next sections you will learn how to define prompts for composite bag entities and how to define them so they display alternating responses GETTING READY To start working with composite bag entities first import the composite bag skill 52 If you are in the OraMagTravel bot click left arrow in the header see Figure 3 ORACLE MAGAZINE JULY AUGUST 2019 51 to exit skill editing
You must have JavaScript enabled to view digital editions.