Skip to content

Instantly share code, notes, and snippets.

@yhdesai
Created September 15, 2017 09:29
Show Gist options
  • Save yhdesai/2d875fab50f22cf31aedf7b90cafa200 to your computer and use it in GitHub Desktop.
Save yhdesai/2d875fab50f22cf31aedf7b90cafa200 to your computer and use it in GitHub Desktop.
JSON request
{
"id": "ec078e30-f2e6-4f0d-9fc8-4f2a2ce89851",
"timestamp": "2017-09-15T09:27:59.441Z",
"lang": "en",
"result": {
"source": "agent",
"resolvedQuery": "turn the light on",
"action": "smarthome.lights.switch.on",
"actionIncomplete": false,
"parameters": {
"all": "",
"color": "",
"device": "",
"room": ""
},
"contexts": [
{
"name": "schedule",
"parameters": {
"all": "",
"color": "",
"room.original": "",
"device.original": "",
"all.original": "",
"device": "",
"room": "",
"color.original": ""
},
"lifespan": 3
},
{
"name": "brightness",
"parameters": {
"all": "",
"color": "",
"room.original": "",
"device.original": "",
"all.original": "",
"device": "",
"room": "",
"color.original": ""
},
"lifespan": 5
},
{
"name": "check",
"parameters": {
"all": "",
"color": "",
"room.original": "",
"device.original": "",
"all.original": "",
"device": "",
"room": "",
"color.original": ""
},
"lifespan": 3
},
{
"name": "color",
"parameters": {
"all": "",
"color": "",
"room.original": "",
"device.original": "",
"all.original": "",
"device": "",
"room": "",
"color.original": ""
},
"lifespan": 3
},
{
"name": "switch",
"parameters": {
"all": "",
"color": "",
"room.original": "",
"device.original": "",
"all.original": "",
"device": "",
"room": "",
"color.original": ""
},
"lifespan": 3
},
{
"name": "room",
"parameters": {
"all": "",
"color": "",
"room.original": "",
"device.original": "",
"all.original": "",
"device": "",
"room": "",
"color.original": ""
},
"lifespan": 3
}
],
"metadata": {
"intentId": "e3acf680-4ebe-48c4-9e02-cc4c9bec5d37",
"webhookUsed": "false",
"webhookForSlotFillingUsed": "false",
"intentName": "smarthome.lights.switch.on"
},
"fulfillment": {
"speech": "",
"messages": [
{
"type": 0,
"speech": ""
}
]
},
"score": 1
},
"status": {
"code": 200,
"errorType": "success"
},
"sessionId": "6683c116-a549-4c0b-b70a-a59686594fc7"
}J
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment