article by Frank Nimphius April 2018
In an earlier TechExchange sample from November 2017 titled "Strategy for Handling Unresolved Intent Resolutions So Users Remain Unstuck" we demonstrated a technique to display a list of intents that got resolved with more than 0% confidence in cases where intent resolution did not succeed passing the confidence threshold set on the System.Intent component.
With the current version of Oracle Intelligent Bots there exists another option to handle the very same use case. In addition, it turned out that customer usually only want to display a specific set of "runner-up" intents as options in a list.
This article is a revised version of the previous publication showcasing an implementation that displays the top-3 intents for an otherwise unresolved intent resolution. If there are no 3 intents to display then the solution shows as many as possible. And if there is no intent that gets resolved to above 0% then a single help item is shown for the user to find the help she may need.
The solution uses the Common Response Component (CR component) for displaying the list along with Apache FreeMarker expressions to conditionally render list items and to sort the list of intents so the top three really have the highest confidence scores.
And there is more for you to learn. Intent names usually don't make good names to display in a list of values. This sample shows you how the intent names can be used as a key in a resource bundle that allows you to display user-friendly list option labels and to internationalize the solution.
The figure below shows the solution in the Oracle Intelligent Bots tester. As you will learn by reading the full article and by trying the sample bot, the list shows two resolved intents plus a help option that is always shown (but that can be changed to show conditionally as well)
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 THE FULL ARTICLE (PDF)
DOWNLOAD AND INSTALL THE SAMPLE BOT
Note: To import and run the bot you at least Oracle Intelligent Bots version 18.2.3 is needed. Though the outlined solution works with any existing bot version, the export file does not allow import to older versions. To import the bot, open the Oracle Intelligent Bots dashboard and use the Import button. Then open the imported bot and press the Train button to train the model. Once done, run the tester with phrases like "how much do I have" or "what money"
Related Articles and Samples
TechExchange: Strategy for Handling Unresolved Intent Resolutions So Users Remain Unstuck
TechExchange – Using Apache Freemarker Expression in Oracle Intelligent Bots