Oracle Magazine, May/June 2018
Mobile APPLICATION DEVELOPER The Explaining the CR Component BotML Settings section below explains what each property is so youll know how to reproduce the bot response in your own bot projects 56 Open the startOrder txt file you find in the starter folder of the extracted download ORACLE MAGAZINE MAY JUNE 2018 56 for this article in a text editor 57 Copy the whole content to the clipboard and make sure you dont miss any leading blank characters 58 In the flow editor delete the startOrder state and all of its content 59 Place the cursor at the beginning of the line that previously held the startOrder state 60 Paste the content from the clipboard The startOrder state label should be aligned with the unresolved state label above 61 Click Validate to ensure proper indenting Again if you dont see an alert with a green icon you need to work on the formatting of the added content What you just did You configured the CR component to display a list of pizzas defined in the pizzaMenu variable The start index for the cards is set to reference the cardsRangeStart variable so only three pizzas are displayed at a time Note that the CR component properties that are not used in this sample were removed from the BotML definition TESTING THE BOT At this point the bot response has been changed from a simple list menu to one that responds with a rich card layout that users can flip through to select a pizza Lets see what it looks like 62 Click the tester icon at the right side of the top menu
You must have JavaScript enabled to view digital editions.