Google Assistant更改表面不起作用 [英] Google Assistant changing the surface not working

查看:96
本文介绍了Google Assistant更改表面不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


大家好,

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

I'm currently trying to build an app for the Google Assistant with Dialogflow. During a particular intent I want to redirect the user to his phone (when using a speaker) as the intent requires precise keyboard input. As said in the docs, I'm calling askForNewSurface() in my webhook. In the actions simulator, this is what shows up (truncated)

"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 Assistant刚回来时显示对不起,我没有得到任何回复(在模拟器和实际设备上)。

This seems valid according to the docs, however the Google Assistant just comes back with 'Sorry, I didn't get any response' (on both the simulator and on actual devices).

那么我如何让助手实际要求用户更改表面?

此方法是也许根本不支持德语?此外,文档对于 actions.intent.NEW_SURFACE 作为系统意图的存在有点矛盾...

Is this method maybe not supported at all in german? Also the docs are somewhat inconsistent regarding the existence of actions.intent.NEW_SURFACE as a system intent...

在此先感谢大家,感谢所有提示:)

Thanks in advance guys, any hints appreciated :)

编辑:注意到已经问过这个问题了此处

Noticed the question has already been asked here

推荐答案

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

Okay, I got in touch with AoG support. Turns out we'll need a little patience.


您好,Jan,

Hi Jan,

感谢您关注Google的操作。实际上,askForNewSurface仅适用于英语语言环境。我们正在更改文档以反映这些限制。
对不起,造成混乱。
在其他语言环境中,我们没有发布此功能的任何设定日期。

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.

亲切的问候,

Jean-Charles

Jean-Charles,

Google支持小组的操作。

Actions on Google Support Team.

这篇关于Google Assistant更改表面不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆