Updating the Custom Component Package of a Skill
You would have to update the component package of a skill to interface with ODA's custom component service. This service is an active connection from the skill to the host server.
Note that you will have to perform this procedure for any new skills that you add to the digital assistant in the future.
-
Make sure you have these software:
-
Oracle Digital Assistant Bots Node.js software development kit (SDK) (bots-node-sdk), which you can get from GitHub.
-
Node.js 8.11.4, which you can get from https://nodejs.org. Install this for global access. Node Package Manager (npm) is distributed with Node.js.
-
-
To test if Node.js and npm are installed, open a terminal window and type these commands:
node –v npm –v -
To verify your Oracle Digital Assistant Bots Node.js SDK installation, type the following command:
bots-node-sdk -vThe command should print the Oracle Digital Assistant Bots Node.js SDK version.
-
Log in to your ODA instance.
-
Click
, then select .
-
Select the digital assistant to open its page. You will see the first skill on the list selected.
-
From the selected skill, click Go to Skill.
-
Click
.
-
Download the package (.tgz) file, then update the
environments.jsonfile.-
Look for the package (.tgz) file you downloaded.
-
Extract the contents of the file to your local drive.
-
Extract the .tar file in the same folder that the package file is in.
A
packagefolder will appear. -
From the
packagefolder, navigate to . -
Open environments.json.
-
Update the server, port, and node values in baseURL using the information from your PIA server.
"baseURL": "http://<server>:<port>/PSIGW/RESTListeningConnector/<node>/PTCB_APPL_SVC.v1"So, if your PIA URL looks like this:
http://server.com:8000/psp/s17cbguix/?cmd=login&languageCd=ENG&Then your baseURL value will look like this:
Field Value <server>
server.com
<port>
8000
<node>
S17CBGUI (this alphanumeric text should be capitalized)
If your PIA URL uses
http, then the baseURL should also usehttp. If it useshttps, then usehttps. -
From your computer, launch the command prompt.
-
Go to the directory where the package folder is stored, then from the command prompt enter npm pack.
This creates a package with the updates you made and a new TGZ file is saved in the same package folder.
In the future, if you wish to update the component package file, make sure you delete the existing .tgz file before you run the
npm packcommand.
-
-
Upload the package (.tgz) file you updated.
-
Go back to your browser where you have your ODA instance open.
-
From the Components page of the digital assistant (the one you accessed from step 8), make sure you're on the page of the skill you downloaded the package file from.
-
In Package File, click the Change package file icon, then locate the .tgz file you created to upload it to the skill.
The upload is complete when the Status indicates
Ready.
-
-
Repeat steps 7 to 10 for the other skills.
Note:
Skip the Small Talk skill.