Skip to content

Instantly share code, notes, and snippets.

@passy
Created January 20, 2018 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save passy/937aa2a50b87ccb9b2791a3b19962218 to your computer and use it in GitHub Desktop.
Save passy/937aa2a50b87ccb9b2791a3b19962218 to your computer and use it in GitHub Desktop.
{
"originalRequest": {
"source": "google",
"version": "2",
"data": {
"isInSandbox": true,
"surface": {
"capabilities": [
{
"name": "actions.capability.MEDIA_RESPONSE_AUDIO"
},
{
"name": "actions.capability.AUDIO_OUTPUT"
}
]
},
"inputs": [
{
"rawInputs": [
{
"query": "yes",
"inputType": "VOICE"
}
],
"arguments": [
{
"textValue": "true",
"name": "PERMISSION",
"boolValue": true
}
],
"intent": "actions.intent.PERMISSION"
}
],
"user": {
"userStorage": "{\"data\":{}}",
"lastSeen": "2018-01-20T10:50:01Z",
"permissions": [
"DEVICE_COARSE_LOCATION"
],
"locale": "en-GB",
"userId": "<redacted>"
},
"device": {
"location": {}
},
"conversation": {
"conversationId": "<redacted>",
"type": "ACTIVE",
"conversationToken": "[\"_actions_on_google_\"]"
},
"availableSurfaces": [
{
"capabilities": [
{
"name": "actions.capability.AUDIO_OUTPUT"
},
{
"name": "actions.capability.SCREEN_OUTPUT"
}
]
}
]
}
},
"id": "<redacted>",
"timestamp": "2018-01-20T13:27:32.938Z",
"lang": "en-gb",
"result": {
"source": "agent",
"resolvedQuery": "actions_intent_PERMISSION",
"speech": "",
"action": "carbon.read",
"actionIncomplete": false,
"parameters": {},
"contexts": [
{
"name": "_actions_on_google_",
"parameters": {
"requestedPermission": "DEVICE_COARSE_LOCATION"
},
"lifespan": 99
},
{
"name": "actions_intent_permission",
"parameters": {
"PERMISSION": true
},
"lifespan": 0
},
{
"name": "google_assistant_input_type_voice",
"parameters": {},
"lifespan": 0
},
{
"name": "actions_capability_audio_output",
"parameters": {},
"lifespan": 0
},
{
"name": "actions_capability_media_response_audio",
"parameters": {},
"lifespan": 0
}
],
"metadata": {
"intentId": "<redacted>",
"webhookUsed": "true",
"webhookForSlotFillingUsed": "false",
"nluResponseTime": 0,
"intentName": "handle_permission"
},
"fulfillment": {
"speech": "This is strange! I could not read your mind! I must rest and practice using my powers!",
"messages": [
{
"type": 0,
"speech": "This is strange! I could not read your mind! I must rest and practice using my powers!"
}
]
},
"score": 1
},
"status": {
"code": 200,
"errorType": "success",
"webhookTimedOut": false
},
"sessionId": "<redacted>"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment