This is the backend for two different skills you can add to your bot on SAP Conversational AI.
To start the API after cloning the project:
npm install
npm start
Since this API relies on external services, you can setup your tokens for Open Weather Map and The Movie Database either in ./config.js
or as environment variables : OPENWEATHER_TOKEN
and MOVIEDB_TOKEN
.
You can also change the port of the API in ./config.js
(it listens on port 5000
by default)
Then you need to go to the settings of your bot on SAP Conversational AI and change the field Bot base URL
to the URL of your server.
Ngrok could come in handy if you just want to try out the API without having to host this code on a public server :)
v6.0 or higher required