Select only one of three options below.
- Create a Dialogflow Agent.
git clone https://github.com/dialogflow/fulfillment-temperature-converter-nodejs.git
- Go to Settings ⚙ > Export and Import > Restore from zip using the
dialogflow-agent.zip
in this directory.A. - Fulfillment > Enable the Inline EditorB.
- Under Fulfillment > Inline Editor > copy the code from this repo in
functions/index.js
and paste into theindex.js
file. - Under Fulfillment > Inline Editor > add
"dialogflow-fulfillment": "^0.5.0"
to thepackage.json
file'sdependencies
object. - Select Deploy.
- Create a Dialogflow Agent.
git clone https://github.com/dialogflow/fulfillment-temperature-converter-nodejs.git
- Go to Settings ⚙ > Export and Import > Restore from zip using the
dialogflow-agent.zip
in this directory.A. cd
to thefunctions
directory- Run
npm install
- Install the Firebase CLI by running
npm install -g firebase-tools
- Login with your Google account,
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:dialogflowFulfillment
- Back in Dialogflow Console > Fulfullment > Enable Webhook.
- Paste the URL from the Firebase Console’s events column into the URL field > Save.
A.In general, Restore from Zip will overwrite any existing agent.
B.Powered by Cloud Functions for Firebase.
Name | Language |
---|---|
Fulfillment Webhook JSON | JSON |
Dialogflow Console Template | Node.js |
Bike Shop-Google Calendar API | Node.js |
WWO Weather API | Node.js |
Alexa Importer | Node.js |
Temperature Trivia | Node.js |
Human-Agent | Node.js |
Google Translation API | Python |
WWO Weather API | Python |
- Questions? Try StackOverflow or Dialogflow Developer Community.
- Find a bug? Report it on GitHub.
- Dialogflow Documentation.
- For more information on Initializing Firebase SDK for Cloud Functions.
- For more information on Restore from Zip
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.