We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9343a94 commit 56eb09cCopy full SHA for 56eb09c
firebase.json
@@ -0,0 +1,7 @@
1
+{
2
+ "functions": {
3
+ "predeploy": [
4
+ "npm --prefix \"$RESOURCE_DIR\" run lint"
5
+ ]
6
+ }
7
+}
index.js
@@ -0,0 +1,15 @@
+'use strict';
+
+// Import the Dialogflow module from the Actions on Google client library.
+const {dialogflow} = require('actions-on-google');
+// Import the firebase-functions package for deployment.
+const functions = require('firebase-functions');
8
9
+// Instantiate the Dialogflow client.
10
+const app = dialogflow({debug: true});
11
12
13
14
+// Set the DialogflowApp object to handle the HTTPS POST request.
15
+exports.dialogflowFirebaseFulfillment = functions.https.onRequest(app);
0 commit comments