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.
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