article by Frank Nimphius, June 2018
Using the Common Response component (CR component) in Oracle Intelligent Bots, bot conversation designers can build arbitrary complex bot responses declaratively. A very popular bot response is the card layout that displays multiple cards in a vertical or horizontal order with each card displaying a title, a description, an imagen an optional URL and one or more action items for the user to tap on.
While the recommended conversation design strategy is to use the CR component whenever possible, there exist use cases in which a custom component must render its own UI. Still displaying data in cards remains a popular layout.
In this article I explain how to display a card layout from a custom component and how you handle post back actions (buttons on a card) and user text entries. The article also contains the complete code listing of the example used in the article.
Update note:
Oracle Intelligent Bots has been rebranded Oracle Digital Assistant to better describe its capabilities beyond a standard chatbot. To learn more, visit cloud.oracle.com/digital-assistant
READ FULL ARTICLE (PDF)
Download Custom Component (TGZ, unzip it to see the code)
Related TechExchange Articles
TechExchange – Real World Insight into KeepTurn and Transition in Intelligent Bots
TechExchange – Custom Component Development in OMCe – Getting Up and Running Immediately