Skip to content

Latest commit

 

History

History
executable file
·
26 lines (20 loc) · 1.44 KB

README.md

File metadata and controls

executable file
·
26 lines (20 loc) · 1.44 KB

Dialogflow Fulfillment Webhook Template for Node.js and Cloud Functions for Firebase

This webhook template sets up everything you need to build your fulfillment for your Dialogflow agent.

Setup Instructions

Option #1: Dialogflow Inline Editor (recommended)

  1. Enable the Cloud Function for Firebase inline editor
  2. Copy this code in functions/index.js the index.js file in the Dialogflow Cloud Function for Firebase inline editor.
  3. Copy this code in functions/package.json the package.json file in the Dialogflow Cloud Function for Firebase inline editor.
  4. Click Deploy

Option #2: Firebase CLI

  1. Run git clone https://github.com/dialogflow/fulfillment-webhook-nodejs.git and cd to the functions directory
  2. Run npm install
  3. Install the Firebase CLI by running npm install -g firebase-tools
  4. Login to your Google account with firebase login
  5. Add your project to the sample with firebase use [project ID] find your project ID here
  6. Run firebase deploy --only functions:dialogflowFirebaseFulfillment
  7. Paste the URL into your Dialogflow agent's fulfillment and click Save

License

See LICENSE.

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.