How-to assign keyword shortcuts to static and dynamic lists created with the System.CommonResponse component in Oracle Digital Assistant by Frank Nimphius


The conversation interface is not just about text messaging. Most messengers support a list of values, and many even support card layouts. Chatbot users select a value from a list by either tapping the list item or typing the displayed list item label into the message field. In this article I explain how to assign keywords as shortcuts to list items (and card layouts, as it is the same code) for users to select an item. With card layouts, when not all cards are displayed in a horizontal carousel (so when some are hidden), then, using predictable keywords, keyword shortcuts allow users to select an item even if it is not visible*

* the restriction is when you use page ranging, in which case a card is not hidden but not available at all. In this case you can only access those cards that belong to the current displayed range of cards.

Keywords in static lists

The Oracle Digital Assistant dialog flow state definition shown in the image below defines a static list of values for airports. The airports itself are defined in a value-list entity that is referenced by the “airport” variable. The OBotML (markup language used in the dialog flow builder) code in the image below shows the list defined using the System.CommonResponse component. Each selectable item in the list is defined by an action (postback), which defines the label to display on the item, as well as the variables and values that are getting updated when the user taps on a list item. Read the complete article here.

Developer Partner Community

For regular information become a member in the Developer Partner Community please register here.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic Community,Oracle,OPN,Jürgen Kress


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.