Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

dialogflow/fulfillment-translate-python

Repository files navigation

Dialogflow Fulfillment Translation Sample for Python (Flask)

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

Setup Instructions

Dialogflow Setup

  1. Create an account on Dialogflow
  2. Create a new Dialogflow agent
  3. Restore the dialogflow-agent.zip ZIP file in the root of this repo
  4. Go to your agent's settings and then the Export and Import tab
  5. Click the Restore from ZIP button
  6. Select the dialogflow-agent.zip ZIP file in the root of this repo
  7. Type RESTORE and and click the Restore button

Fulfillment Setup

  1. Click on the Google Cloud project ID in your agent's setting to open the Google Cloud console
  2. Enable the Google Cloud Translation API
  3. Create an API key and copy the value into the API_KEY varible in main.py and save the file
  4. Run pip install -r requirements.txt
  5. Deploy fulfillment to App Engine
  6. Download and authenticate the Google Cloud SDK
  7. Run gcloud app deploy, make a note of the service URL, which will be used in the next step
  8. Set the fulfillment URL in Dialogflow to your App Engine service URL
  9. Go to your agent's fulfillment page
  10. Click the switch to enable webhook for your agent
  11. Enter you App Engine service URL and append /webhook (e.g. https://translate-10929.appspot.com/webhook) to the URL field
  12. Click Save at the bottom of the page

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 Dialogflow's Terms of Use and Privacy Policy.

Releases

No releases published

Packages

No packages published

Languages