в моем действии Google я пытаюсь попросить пользователя получить разрешение на использование местоположения. Я отправляю ответ разрешения, но помощник 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"
}
Понятия не имею, что не так, может быть, вы можете мне помочь