根据GCLOUD_PROJECT估算Firebase配置。初始化firebase-admin可能会失败

时间:2019-10-19 12:42:39

标签: javascript firebase dialogflow

'use strict';
const functions = require('firebase-functions');
exports.dialogflowFirebaseFulfillment =
    functions.https.onRequest((request, response)  =>  {
    var chat = "Here is a sample response, this should actually give you real stock information";
    response.setHeader('Content-Type', 'application/json');
    response.send(JSON.stringify({"speech": chat, "displayTest": chat}));
});

我部署了此代码,然后当我向代理人提问时,它应该在对话框响应中回复为:这是示例响应,它实际上应该为您提供真实的库存信息。 但它在对话框响应中显示为:不可用

警告,根据GCLOUD_PROJECT估算Firebase配置。初始化firebase-admin可能会失败

你能帮我吗?

0 个答案:

没有答案