Skip to content

Instantly share code, notes, and snippets.

@antonyharfield
Created December 29, 2018 09:33
Show Gist options
  • Save antonyharfield/c561ec41bc14d8611daf0747098b1c6b to your computer and use it in GitHub Desktop.
Save antonyharfield/c561ec41bc14d8611daf0747098b1c6b to your computer and use it in GitHub Desktop.
A fulfillment web hook for Dialogflow supporting local dev and Firebase Cloud Functions
{
"name": "webhook-demo",
"version": "0.0.1",
"description": "A template for creating web hooks for Dialogflow",
"author": "Antony Harfield",
"main": "src/cloudFuncs.js",
"engines": { "node": "8" },
"scripts": {
"dev": "nodemon --inspect src/server.js",
"start": "node src/server.js",
"tunnel": "ngrok http 8080",
"lint": "standard src/**/*.js",
"deploy-cf": "firebase deploy --only functions"
},
"dependencies": {
"actions-on-google": "^2.5.0",
"dialogflow-fulfillment": "^0.6.1",
"express": "^4.16.4",
"firebase-admin": "^6.4.0",
"firebase-functions": "^2.1.0"
},
"devDependencies": {
"ngrok": "^3.1.0",
"nodemon": "^1.18.9",
"standard": "^12.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment