In a recent Oracle TechExchange article, Upload Documents in an Oracle Digital Assistant Conversation with Messengers like Facebook or the Oracle JavaScript Client SDK, I explained how to upload documents in a messenger client through Oracle Digital Assistant. In this article I now explain the opposite, which is how to download of documents like audio, video, image and document files within a bot conversation.
Basically, to download documents in Oracle Digital Assistant conversations, you have three implementation options available:
· Using the System.CommonResponse component attachment response type, you navigate to a dialog flow state that returns the download URL along with the document type (audio, video, image, file) to the messenger client to download the content. The rendering of the document, whether it is in place within the messenger conversation, or in an external browser or webview window, is not in the control of Oracle Digital Assistant but the messenger used.
· Using a custom component, you use the JavaScript MessageModel object available in the Oracle custom component SDK. Using a custom component is what you would use if the document URL and type is accessed dynamically from a remote service call. The rendering location, in-place within the messenger client, or external in a web browser or webview, depends on the messenger client used. Oracle Digital Assistant , like any other chatbot too, does not control the messenger client. Read the complete article here.
For regular information become a member in the Developer Partner Community please register here.
Blog
Twitter
LinkedIn
Facebook
Meetups
Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic