afritzler / search-conversion

SAP Conversational AI Skill to access the SAP Help Portal Search API
Apache License 2.0
3 stars 9 forks source link
chatbot cloudfoundry conversational-ai google-appengine skill

search-conversion

The search-conversion service transforms an SAP Help Portal Search API response into an SAP Conversational AI readable format.

Installation

To run the service locally, first either get it via go get

go get -u github.com/afritzler/search-conversion

or clone the repository.

git clone https://github.com/afritzler/search-conversion.git
cd search-conversion

Usage

Build the app via make and start the service

cd search-conversion
make
./search-conversion

The service will be exposed via http://localhost:8080. The default port 8080 can be changed by setting the PORT environment variable.

export PORT=5000
./search-conversion

Adjust the examples/request.json to your needs and run a curl against either localhost or your corresponding service URL.

curl -vX POST https://YOUR_SERVICE_URL/search -d @examples/request.json \
--header "Content-Type: application/json"

Deploy to CloudFoundry

To deploy the service to a CloudFoundry environment

git clone https://github.com/afritzler/search-conversion.git
cd search-conversion
cf push

Deploy to Google AppEngine

To deploy the service to the Google AppEngine

git clone https://github.com/afritzler/search-conversion.git
cd search-conversion
gcloud app deploy