Google 更改表面的助手不工作

Google Assistant changing the surface not working

大家好,

我目前正在尝试使用 Dialogflow 为 Google 助手构建一个应用程序。在特定意图期间,我想将用户重定向到他的 phone (使用扬声器时),因为意图需要精确的键盘输入。 如文档中所述,我在我的 webhook 中调用 askForNewSurface()。在动作模拟器中,这是显示的内容(截断)

"agentToAssistantJson": {
  "conversationToken": "[\"_actions_on_google_\",\"some-context\"]",
  "expectUserResponse": true,
  "expectedInputs": [
    {
      "inputPrompt": {
        "richInitialPrompt": {
          "items": [
            {
              "simpleResponse": {
                "textToSpeech": "PLACEHOLDER_FOR_NEW_SURFACE"
              }
            }
          ]
        }
      },
      "possibleIntents": [
        {
          "intent": "actions.intent.NEW_SURFACE",
          "inputValueData": {
            "@type": "type.googleapis.com/google.actions.v2.NewSurfaceValueSpec",
            "context": "To show you an image",
            "notificationTitle": "Check out this image",
            "capabilities": [
              "actions.capability.SCREEN_OUTPUT"
            ]
          }
        }
      ]
    }
  ],
  "responseMetadata": {
    "status": {},
    "queryMatchInfo": {
      "queryMatched": true,
      "intent": "####",
      "parameterNames": [
        "date"
      ]
    }
  },
  "expectedInput": {
    "requestedIntent": {
      "intent": "####"
    }
  }
}

}

根据文档,这似乎是有效的,但是 Google 助手只是返回“抱歉,我没有收到任何响应”(在模拟器和实际设备上)。

那么如何让助手真正要求用户改变界面呢?

德语可能根本不支持这种方法吗?此外,关于 actions.intent.NEW_SURFACE 作为系统意图的存在,文档有些不一致...

在此先感谢大家,感谢任何提示:)

编辑:注意到这个问题已经被问到

好的,我联系了 AoG 支持。原来我们需要一点耐心。

Hi Jan,

Thank you for your interest in Actions on Google. askForNewSurface is indeed only available for English locales. We are in the process of changing the documentation to reflect those restrictions. Sorry for the confusion. We do not have any set date for the release of this feature in other locales.

Kind Regards,

Jean-Charles,

Actions on Google Support Team.