ArturoGonzalezSPS / oda_customcomponents_demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

For Hands-On Lab

This repository is an example of the capabilities of using custom components in oracle digital assistant. The original author of this repository is @rsantrod, you can follow the Katakoda Scenarios in order to understand how this skill is built.

As a prerequisite for follow this scenario:

Set-up Custom Component example

Clone this repo:

git clone https://github.com/agonzalezsp/oda_customcomponents_demo.git

From the root folder:

Install dependecies:

npm install

Replace on /components/query.js file your API key from OpenWeatherMap API: https://home.openweathermap.org/api_keys

Start service:

bots-node-sdk service -P 3000

Tunnel service:

ngrok http 3000

Copy the Forwarding HTTPS URL from the ngrok output:

Forwarding     https://this_url.ngrok.io -> http://localhost:3000

Create new external service at ODA. Fill the dialog with the values below:

  • Name: WeatherService
  • Metadata URL: https://this_url.ngrok.io/components
  • User Name: test (or any value, since it is executed from local, does not have security implementation.)
  • Password: test (or any value, since it is executed from local, does not have security implementation.)

Set Up ODA SKILL

Follow the instructions on Katakoda Scenarios to create, and configure a new skill at the ODA console, set up intents and define the flow.

If you want to skip thease steps import the skill prepare to this example on route:

skill/test_cc(1.0).zip

About


Languages

Language:JavaScript 98.4%Language:Dockerfile 1.6%