Hello, I am not using firebase, but my own java backend.
Vijet Badigannavar
2

You probably need to check this page: https://developers.google.com/actions/assistant/helpers#getting_the_results_of_the_helper

Here is the tldr:

Just check the JSON tab (on the code sample) for these two helpers:

  • app.askForPermission(…)
{
"conversationToken": "{\"state\":null,\"data\":{}}",
"expectUserResponse": true,
"expectedInputs": [
{
"inputPrompt": {
"initialPrompts": [
{
"textToSpeech": "PLACEHOLDER_FOR_PERMISSION"
}
],
"noInputPrompts": []
},
"possibleIntents": [
{
"intent": "actions.intent.PERMISSION",
"inputValueData": {
"@type": "type.googleapis.com/google.actions.v2.PermissionValueSpec",
"optContext": "To deliver your order",
"permissions": [
"NAME",
"DEVICE_PRECISE_LOCATION"
]
}
}
]
}
]
}
  • app.isPermissionGranted(…)
{
"user": {
"userId": "user123",
"profile": {
"displayName": "Jane Smith",
"givenName": "Jane",
"familyName": "Smith"
}
},
"conversation": {
"conversationId": "1494884577894",
"type": "ACTIVE",
"conversationToken": "{\"state\":null,\"data\":{}}"
},
"inputs": [
{
"intent": "actions.intent.PERMISSION",
"rawInputs": [
{
"inputType": "KEYBOARD",
"query": "yes"
}
],
"arguments": [
{
"name": "PERMISSION",
"rawText": "yes",
"textValue": "true"
}
]
}
],
"surface": {
"capabilities": [
{
"name": "actions.capability.AUDIO_OUTPUT"
},
{
"name": "actions.capability.SCREEN_OUTPUT"
}
]
},
"device": {
"location": {
"coordinates": {
"latitude": 37.422366,
"longitude": -122.084406
},
"formattedAddress": "1600 Amphitheatre Parkway, Mountain View, CA 94043, United States",
"zipCode": "94043",
"city": "Mountain View"
},
"locale": "en-US"
},
"isInSandbox": false
}

Let me know if you need more help.

Like what you read? Give Wassim Chegham a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.