Google Google 助理 - 操作未获批准

Google Assistant - Action not approved

我最近创建了一个动作并在网络模拟器和我的 Pixel 2 设备上对其进行了测试。它对我来说很好用。但在审查过程中,Google 的团队提到,他们在审查时发现错误提示我的应用程序现在没有响应。稍后重试。 (附截图)。社区中的人可以帮助我解决这个问题吗?

下面是完整的代码,如果对您有帮助的话。



    '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 的日志以确保没有问题。

一般来说,如果您没有发现任何错误并且一切正常,最简单的做法是:

  1. 重新提交

  2. 回复并告诉他们您正在使用 Dialogflow,应该会有回复。