Learn how to host an Oracle Digital Assistant Web Channel in the OCI Object Storage

Sharing chatbots with others during development or even before (demo stage) is always a challenge as we don’t have any channel setup for it, nor do we have access to customer’s internal sites/channels.

With the Oracle Cloud Infrastructure (OCI) Object Storage we have an easy solution that allows us to expose the chatbot to the public 🙂

Pre-Requisite

You must have access to OCI Object Storage.

OCI

In the OCI console, create a Bucket, and change the visibility to Public.

Upload WebSDK files

This can be done in several different ways, but I choose to maintain the default folder structure. That means we have dedicated folders for images, scripts and styles, where I upload all the files.

At root level we have index.html

The important thing is to look to all of the file references in both index.html and settings.js. You can choose to have the proper relative path, or provide the full path.

<script src='https://objectstorage.eu-frankfurt-1.oraclecloud.com/n/<namespace>/b/ODA/o/scripts/settings.js'></script>

<script src='https://objectstorage.eu-frankfurt-1.oraclecloud.com/n/<namespace>/b/ODA/o/scripts/web-sdk.js' onload="initSdk('Bots')"></script>

<img src="https://objectstorage.eu-frankfurt-1.oraclecloud.com/n/<namespace>/b/ODA/o/images/front.JPG">


That’s all there is to it. Then we can use the URL Path to access to chatbot.

Note: It’s much easier to covert the link into a bit.ly one