article by Frank Nimphius, August 2019
DISCLAIMER (March 2020): The solution in this article works for Oracle Digital Assistant version 19.4.1. In Oracle Digital Assistant 20.x and later, which run on Oracle Cloud Infrastructure (OCI), the solution does no longer work due to the change in the authorization. Authorization in OCI based Oracle Digital Assistant requires request signatures and no longer OAuth2 access tokens.
How to access to conversation logs is common question among Oracle Digital Assistant bot designers, developers and administrators.
Oracle Digital Assistant provides several options for accessing conversation logs. A new option, which was introduced in Oracle Digital Assistant Version 19.1.5, is the ability to access session-specific conversation log information through a protected REST API. This REST API can also be used from a custom component to access the conversation log for a session for further processing.
There are a couple of usecases that come to mind for accessing logs. For illustration purposes, the usecase in the example of this article is to display the bot-conversation to the user before committing the transaction. Similar, you could use the content of the conversation log to send a summary as a mail to the user.
Using many screenshots, this article explains how to access conversation session specific log information from a custom component. The custom component and sample skill used in this article is provided for you to download.
Related content
Custom component development and backend integration hands on tutorial
TechExchange Quick-Tip: Customizing the Oracle Bots Node.js SDK Component Template