在我的Google Action中,我尝试让用户获得使用该位置的权限。我发送了权限回复,但Google助理没有问任何问题。...
这就是我发送的json:
function askForPermission() {
return {
"payload": {
"google": {
"expectUserResponse": true,
"systemIntent": {
"intent": "actions.intent.PERMISSION",
"data": {
"@type": "type.googleapis.com/google.actions.v2.PermissionValueSpec",
"optContext": "To address you by name and know your location",
"permissions": [
"NAME",
"DEVICE_PRECISE_LOCATION"
]
}
}
}
}
};
}
这是我的意图:
这是Google动作模拟器中的“响应”标签:
这是Google操作日志:
{
insertId: "5udm8kf1794y2"
labels: {…}
logName: "projects/getspritpreise/logs/actions.googleapis.com%2Factions"
receiveTimestamp: "2019-07-11T07:09:29.288062574Z"
resource: {…}
severity: "ERROR"
textPayload: "MalformedResponse: ErrorId: d05de0e9-1623-4ea5-96f3-4953168f185f. Failed to parse Dialogflow response into AppResponse because of invalid platform response: Could not find a RichResponse or SystemIntent in the platform response for agentId: 07f75abb-c71d-4cf3-a2a2-3709065df8cd and intentId: e53208a2-e45c-4e2d-9ea4-0e3c461797b9"
timestamp: "2019-07-11T07:09:29.280551014Z"
trace: "projects/658995223794/traces/15628289464083777607872"
}
我不知道怎么了,也许你可以帮助我