Update – Building & Debugging Custom Components for the Oracle Digital Assistant in Minutes!

Previously, i had summarized the steps to create and pack custom component to be deployed on the local container in ODA.

As for custom components built for ODA 19.4.1 and beyond, few changes were made. Here are the steps to create a CC.

  1. Globally install the Bots-node-sdk in your computer
npm install -g @oracle/bots-node-sdk

2. Create the custom component folder and cd into it, then;

bots-node-sdk init


3. Package the custom component.

bots-node-sdk pack


How do you debug CC code from your computer before deploying?

To run the code locally, you use;

 npm start

You have to create a tunnel to expose your localhost server to the internet. You can use ngrok or local tunnel to achieve this.

ie. If you use ngrok: >>> $ngrok http 3000

Now your url should be like below:

https://<your tunnel host>/components

Navigate to the components section in ODA select + Service button.

Select external as the deployment option as shown below: The username and password you write “none

This image has an empty alt attribute; its file name is Cc1-1024x604.png

Once connected you can now debug your code using your favorite code editor.

Happy Coding!

References:

Author: Labanish

I am a Senior Cloud Solutions Architect at Oracle. Am interested in Cloud Automation, Cloud Native Applications dev and Emerging Tech. I have over 6 years work experience handling different tech roles in East Africa, Romania & now in United Kingdom. All views are mine.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: