Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.86 KB

README.md

File metadata and controls

38 lines (30 loc) · 1.86 KB

Dialogflow Fulfillment Weather Sample Python (Flask)

Setup Instructions

WWO Weather API Setup

  1. Get a WWO API key, by going to https://developer.worldweatheronline.com/api/ and following the instructions to get an API key that includes forecasts 14 days into the future
  2. Paste your API key for the value of the WWO_API_KEY varible on line 28 of config.py

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. Deploy fulfillment to App Engine
  2. Download and authenticate the Google Cloud SDK
  3. Run gcloud app deploy, make a note of the service URL, which will be used in the next step
  4. Set the fulfillment URL in Dialogflow to your App Engine service URL
  5. Go to your agent's fulfillment page
  6. Click the switch to enable webhook for your agent
  7. Enter you App Engine service URL (e.g. https://weather-10929.appspot.com/) to the URL field
  8. 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.