dialogflow/fulfillment-webhook-nodejs

Name: fulfillment-webhook-nodejs

Owner: Dialogflow

Description: null

Forked from: xVir/apiai-webhook-sample

Created: 2016-03-08 05:43:06.0

Updated: 2018-05-24 13:36:13.0

Pushed: 2018-04-02 18:03:18.0

Homepage: null

Size: 32

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.