This webhook template sets up everything you need to build your fulfillment for your Dialogflow agent.
- Enable the Cloud Function for Firebase inline editor
- Copy this code in
functions/index.js
theindex.js
file in the Dialogflow Cloud Function for Firebase inline editor. - Copy this code in
functions/package.json
thepackage.json
file in the Dialogflow Cloud Function for Firebase inline editor. - Click
Deploy
- Run
git clone https://github.com/dialogflow/fulfillment-webhook-nodejs.git
andcd
to thefunctions
directory - Run
npm install
- Install the Firebase CLI by running
npm install -g firebase-tools
- Login to your Google account with
firebase login
- Add your project to the sample with
firebase use [project ID]
find your project ID here - Run
firebase deploy --only functions:dialogflowFirebaseFulfillment
- Paste the URL into your Dialogflow agent's fulfillment and click
Save
See LICENSE.
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.