apiai-nodejs-webhook-sample

by aloim

GitHub Readme.md

API.AI Webhook Translation Sample for Python (Flask)

========================================================

Setup Instructions

Pre-requisites

  1. API.AI Agent: Create an account on API.AI and import or restore the agent in translation_agent.zip for your agent (or create a new one)
  2. Set the fulfillment URL to the URL of the server on which this sample will be hosted and append /webhook
  3. Get a Google Translate API key, by following the first 4 steps of the getting started guide https://cloud.google.com/translate/docs/getting-started when you get to step 4 (creating credentials) for the credential type choose "API Key" and fill in the API key in API_KEY in app.py

Steps:

  1. Run pip install requirements.txt
  2. Run python app.py
  3. Test the responses in API.AI

Documentation

References and How to report bugs

  • If you find any issues, please open a bug here on GitHub How to make contributions? Please read and follow the steps in the CONTRIBUTING.md License See LICENSE.md

Terms

Your use of this sample is subject to, and by using or downloading the sample files you agree to comply with, the Google APIs Terms of Service and the API.AI's Terms of Use and Privacy Policy.

Deploy to Heroku