i would like to create an action project. I have an issue when i run firebase deploy --only functions
.
Before i run: npm install -g firebase-tools
, firebase login
, firebase init
, npm install actions-on-google
, npm install
Everything is working and it says: Deploy complete. But it doesnt deliver me the function URL in the CMD. Also when i look it up over here : https://console.firebase.google.com/.../functions/list it doesnt show me the URL.
Do you have any idea what i am doing wrong? That is the Tutorial i am doing: https://developers.google.com/actions/tools/fulfillment-hosting
Best regards Luca
You need to export a function otherwise Firebase cannot run/deploy it. You can view some great code examples on how to make Actions on the Google Assistant with Firebase here .
The following code should help you get started.
const {dialogflow} = require('actions-on-google');
const functions = require('firebase-functions');
const app = dialogflow({debug: true});
exports.myFunction = functions.https.onRequest(app);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.