use*_*947 6 permissions actions-on-google dialogflow-es
1)askForUpdatePermission没有找到意图
我在Github -dialogflow-updates-nodejs上关注了Update Sample 并获得了更新权限.
但是当我将app.askForUpdatePermission("get.next.reminder")添加到我自己的代码中时,模拟器说我的代理没有响应.我没有得到更新权限的问题.
在模拟器错误选项卡中,我看到一个错误:
MalformedResponse
expected_inputs[0].possible_intents[0].input_value_data: The intent the app is asking for permission to send updates for is not found..
Run Code Online (Sandbox Code Playgroud)
所以我在我的代理中再次检查了意图名称(get.next.reminder),它显然在那里并映射到一个动作.我还测试了这个意图可以由用户输入触发.
响应选项卡显示如下响应:
{
"conversationToken": "[\"_actions_on_google_\"]",
"expectUserResponse": true,
"expectedInputs": [
{
"inputPrompt": {
"richInitialPrompt": {
"items": [
{
"simpleResponse": {
"textToSpeech": "PLACEHOLDER_FOR_PERMISSION"
}
}
]
}
},
"possibleIntents": [
{
"intent": "actions.intent.PERMISSION",
"inputValueData": {
"@type": "type.googleapis.com/google.actions.v2.PermissionValueSpec",
"permissions": [
"UPDATE"
],
"updatePermissionValueSpec": {
"intent": "get.next.reminder"
}
}
}
]
}
],
"responseMetadata": {
"status": {
"message": "Success (200)"
},
"queryMatchInfo": {
"queryMatched": true,
"intent": "d7edc1c1-1c67-49af-89bb-37e17ed35025"
}
}
}
Run Code Online (Sandbox Code Playgroud)
我PLACEHOLDER_FOR_PERMISSION在响应文本中看到的位置.
不知道为什么没有找到意图.有人可以帮忙吗?
2)如何删除权限?
另外,一个单独但相关的问题:一旦你给予许可,你怎么能删除它?这对于能够测试非常重要.
| 归档时间: |
|
| 查看次数: |
1163 次 |
| 最近记录: |