X

Developer Partner Community

Using the Local Webview Container to Add a Date Selector Widget to an Oracle Digital Assistant Chatbot Conversation by Frank Nimphius

Juergen Kress
PaaS Partner Adoption

image

You use webviews in Oracle Digital Assistant to integrate web application forms in your chatbot conversations. A reason for using web forms in a conversation is to simplify the input of structured data as in application forms. Another is to assist users with user interface widget that don't exist in messenger clients. As of Oracle Digital Assistant 19.1.5, Webviews can also be deployed as Single Page Applications (SPA) in a local skill container, which opens for many use cases. In this article, I'll explain an example that uses a locally deployed Oracle JavaScript Extension Toolkit (JET) SPA application to provide users with a calendar widget that helps them to enter dates more conveniently in a bot conversation.

About Web Applications Deployed to the Local Web Container in Skills

Locally deployed webviews are single page applications. The application can be built with any JavaScript frameworks you like, not just Oracle JET (https://www.oracle.com/webfolder/technetwork/jet/index.html). A requirement is that the SPA HTML file is named index.html and that it resides in the root folder of the deployment.

The image below shows the architecture and the flow at runtime. The single page application, when uploaded to the skill, is referenced from the System.Webview component in a dialog flow.

When the System.Webview component is called, it launches the web application in a separate browser tab (web) or webview (mobile). By doing this it passes input parameters to the web application. The input parameters are injected to the index.html file's head section and include a callback URL the application uses to pass control and a response payload back to the bot. 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

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.