Skip to content

Commit 56eb09c

Browse files
Add files via upload
1 parent 9343a94 commit 56eb09c

File tree

4 files changed

+4834
-0
lines changed

4 files changed

+4834
-0
lines changed

firebase.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"functions": {
3+
"predeploy": [
4+
"npm --prefix \"$RESOURCE_DIR\" run lint"
5+
]
6+
}
7+
}

index.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'use strict';
2+
3+
// Import the Dialogflow module from the Actions on Google client library.
4+
const {dialogflow} = require('actions-on-google');
5+
6+
// Import the firebase-functions package for deployment.
7+
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

Comments
 (0)