Select only one of the options below.
To create this agent from our template:
- Get a WWO Local Weather REST API key from https://developer.worldweatheronline.com/api/
- Replace <ENTER_WWO_API_KEY_HERE> with your WWO API key on line 20 of
functions/index.js
- Select Deploy.
- In Dialogflow Console > Settings ⚙ > select Google Cloud link in Project ID section. From Google Cloud Platform > menu ☰ > Enable Billing.
- Create a Dialogflow Agent
git clone https://github.com/dialogflow/fulfillment-weather-nodejs.git
- In Dialogflow console under Settings ⚙ > Restore from Zip using the
weather-agent.zip
in this directory. - Get a WWO Local Weather REST API key from https://developer.worldweatheronline.com/api/
- Replace <ENTER_WWO_API_KEY_HERE> with your WWO API key on line 20 of
functions/index.js
cd
to thefunctions
directory- Run
npm install
- Install the Firebase CLI with
npm install -g firebase-tools
- Login to your Google account with
firebase login
- Add your project to the sample with
firebase use [project ID]
- In Dialogflow console under Settings ⚙ > General tab > copy Project ID.
- Run
firebase deploy --only functions:dialogflowFulfillmentLibAdvancedSample
- When successfully deployed, visit the Project Console link > Functions > Dashboard
- Copy the link under the events column.
- For example:
https://us-central1-<PROJECTID>.cloudfunctions.net/<FUNCTIONNAME>
- Back in Dialogflow Console > Fulfullment > Enable Webhook.
- Paste the URL from the Firebase Console’s events column into the URL field > Save.
- In Dialogflow Console > Settings ⚙ > select Google Cloud link in Project ID section. From Google Cloud Platform > menu ☰ > Enable Billing.
Name | Language |
---|---|
Fulfillment & Regex Validation | Node.js |
Weather: Fulfillment & WWO API | Node.js |
Bike Shop: Fulfillment & Google Calendar API | Node.js |
Temperature Trivia: Fulfillment & Actions on Google | Node.js |
Fulfillment & Actions on Google | Node.js |
Fulfillment & Firestore Database | Node.js |
Multi-language/locale | Node.js |
Basic Slot Filling | Node.js |
Alexa Importer | Node.js |
For Fulfillment Webhook JSON Requests & Responses.
- Questions? Try StackOverflow or Dialogflow Developer Community.
- For bugs, please report an issue on Github.
- Dialogflow Documentation.
- Dialogflow Classes Reference Doc.
- For more info about billing.
Please read and follow the steps in the CONTRIBUTING.md.
See LICENSE.md.
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.