2
嗨,大家好,谷歌助理改變不工作
我目前正試圖建立一個應用程序的谷歌助手使用Dialogflow表面。在特定的意圖期間,我想將用戶重定向到他的手機(當使用揚聲器時),因爲意圖需要精確的鍵盤輸入。 正如在文檔中所說,我打電話給我的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": "####"
}
}
}
}
這根據文檔,似乎有效,不過谷歌剛剛助理回來與「對不起,我沒有得到任何響應'(在模擬器和實際設備上)。
那麼,如何讓助手實際要求用戶更改表面?
這種方法可能根本不支持德語嗎?另外,文檔是關於actions.intent.NEW_SURFACE
作爲一個系統的意圖存在有些不一致......
在此先感謝球員,任何提示讚賞:)
編輯:注意到這個問題已經被問here
我也試過,但不適合我 – Sukh