我最近创建了一个 Action ,并在网络模拟器和我的 Pixel 2 设备上对其进行了测试。它对我来说工作得很好。但在审查过程中,谷歌团队提到,在审查时他们发现了错误,指出我的应用程序现在没有响应。很快再试一次。 (附截图)。社区中的有人可以帮助我解决这个问题吗?
下面是完整的代码,如果有帮助的话。
'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');
// Instantiate the Dialogflow client.
const app = dialogflow({debug: true});
// Handle the Dialogflow intent named 'favorite color'.
// The intent collects a parameter named 'color'.
app.intent('think number', (conv, {nextStep}) => {
conv.close('The result is 9.');
});
// Set the DialogflowApp object to handle the HTTPS POST request.
exports.dialogflowFirebaseFulfillment = functions.https.onRequest(app);
审核小组回复的屏幕截图:
最佳答案
有时,如果他们和 Dialogflow 之间存在网络问题,或者 Dialogflow 没有响应,他们会很快拒绝。确保打开 Dialogflow 的日志以确保没有问题。
一般来说,如果您没有看到任何错误并且看起来一切正常,最简单的做法是:
重新提交
回复并告诉他们您正在使用 Dialogflow,并且应该得到回复。
关于actions-on-google - Google 助理 - 操作未获批准,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51548474/