article by Abhay Bhavsar, March 2019

 

The Oracle Digital Assistant Client SDK[1] for JavaScript provides functionality to communicate with a Oracle Digital Assistant from the web. Part of the Client SDK for JavaScript functionality is a JavaScript based web widget that can be added to your web applications or web sites to launch a message window.

In a typical chat conversation, users initiate the conversation by typing a message similar to shown below, assuming the receiving bot has an intent defined so it responds to the request.

Hi
Hello
I would like to make a complaint

The bot replies with a text message or rich UI response (e.g. card layouts or a list) that then is understood by the web client and rendered for the user to make a selection or type a next message.

A problem reported by users is that the chat window initially is empty  leaving the bot users stunning of how to start a conversation. So ideally, the chat windows open with the Oracle Digital Assistant bot to welcome a user with a clear message or menu to choose from.

This article explains how to initiate a bot conversation with Oracle Digital Assistant upon launching the web messenger widget on a website or in a web application. 

Author