嗨,大家好,
我目前正在尝试使用 Dialogflow 为 Google Assistant 构建一个应用程序。在特定意图期间,我想将用户重定向到他的手机(使用扬声器时),因为该意图需要精确的键盘输入。
正如文档中所说,我正在打电话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 Assistant 只是返回“抱歉,我没有得到任何响应”(在模拟器和实际设备上)。
那么如何让助手真正要求用户更改表面呢?
德语可能根本不支持这种方法吗?此外,这些文档对于是否存在有些不一致actions.intent.NEW_SURFACE
作为系统意图...
预先感谢大家,任何提示表示赞赏:)
编辑:注意到问题已经被问过here https://stackoverflow.com/questions/47403159/getting-sorry-i-didnt-get-any-response-message-when-i-tried-hand-off-featur