How can i ask for permission to Google assistant from kore?


(Tabish Khan) #1

Hi Team,
I want to ask location permission to google assistant which can be done by following if i am using custom webhook
https://developers.google.com/actions/assistant/helpers#nodejs
How can i ask for the permission from kore.
I have tried passing the JSON but it get output as text
{
“expectUserResponse”: true,
“expectedInputs”: [
{
“inputPrompt”: {
“richInitialPrompt”: {
“items”: [
{
“simpleResponse”: {
“textToSpeech”: “PLACEHOLDER”
}
}
]
}
},
“possibleIntents”: [
{
“intent”: “actions.intent.PERMISSION”,
“inputValueData”: {
@type”: “type.googleapis.com/google.actions.v2.PermissionValueSpec”,
“optContext”: “To address you by name and know your location”,
“permissions”: [
“NAME”,
“DEVICE_PRECISE_LOCATION”
]
}
}
]
}
],
“conversationToken”: “{“data”:{}}”,
“userStorage”: “{“data”:{}}”
}

cannot find any documentation on following topic.

waiting for your reply.

Thanks in advance.