A Webhook for handling calls from the SteelConnect API.AI Agent
Hosted on Google Cloud Platform App Engine at https://steelconnect-api-ai.appspot.com/
Go to https://console.developers.google.com/apis/dashboard Select 'Select a project' in the top left Create a new project using the '+' button The projects id will be used as its address (app-id.appsport.com). Note your project's id down as you will need it later.
Install and configure the Google Cloud SDK by following the instructions here - https://cloud.google.com/sdk/docs/ On Windows this will install the Google Cloud SDK Shell which can be used to deploy the app, on OSX and Linux simply use the terminal. Install the app engine python extension by entering 'gcloud components install app-engine-python' into the Google Cloud SDK Shell if on Windows or the terminal for OSX and Linux
You can either clone the repository using git or download a zip
If git is not already installed get it here https://git-scm.com/ Clone this project using 'git clone https://github.com/finnhartshorn/apiai_webhook.git'
Use this link https://github.com/finnhartshorn/apiai_webhook/archive/master.zip
Fill out 'default-auth.json' with the details of your test account and organisation
To deploy the app open Google Cloud SDK Shell/terminal switch to the apps directory via 'cd /path/to/apiai_webhook/' and run 'gcloud app deploy'
In API-AI under fullfillment enable the webhook and use 'https://your-project-id.appspot.com/webhook/' as the url.
You can now use API-AI to the test out the intents on your realm and organisation.
Click the settings icon next to your agents name Click 'Export and Import' and then select 'Restore from Zip' Upload the 'SteelConnect-API-AI.zip' file from the repository.