Skip to content

Commit

Permalink
Fix Actions on Google v2 list selection event request JSON sample
Browse files Browse the repository at this point in the history
Change-Id: I780e08f93534f7309396d15bdb7ee1bbee755c5a
  • Loading branch information
Matt Carroll committed Mar 23, 2018
1 parent 3894a8c commit a261cee
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 12 deletions.
2 changes: 1 addition & 1 deletion requests/v2/ActionsOnGoogle/EndConversationEvent.json
Expand Up @@ -13,7 +13,7 @@
],
"intent": {
"name": "projects/${DIALOGFLOW_PROJECT_ID}/agent/intents/1777d616-a5f7-4838-a9a9-870f2956bd14",
"displayName": "Dialogflow action name of matched intent"
"displayName": "Dialogflow intent name of matched intent"
},
"intentDetectionConfidence": 1,
"diagnosticInfo": {},
Expand Down
65 changes: 55 additions & 10 deletions requests/v2/ActionsOnGoogle/ListSelectionEvent.json
@@ -1,12 +1,57 @@
{
"platform": "ACTIONS_ON_GOOGLE",
"query": "actions_intent_OPTION",
"arguments": {
"input": {
"OPTION": "key of selected item"
"responseId": "ea166558-615a-48f3-ae5b-7f55d895784b",
"queryResult": {
"queryText": "actions_intent_OPTION",
"action": "",
"parameters": {},
"allRequiredParamsPresent": true,
"fulfillmentText": "",
"fulfillmentMessages": [],
"outputContexts": [
{
"name": "projects/${PROJECTID}/agent/sessions/${SESSIONID}/contexts/actions_intent_option",
"parameters": {
"OPTION": "key of selected item"
}
}
],
"intent": {
"name": "projects/${PROJECTID}/agent/intents/1777d616-a5f7-4838-a9a9-870f2956bd14",
"displayName": "Dialogflow intent name of matched intent"
},
"list": [
"key of selected item"
]
}
}
"intentDetectionConfidence": 1,
"diagnosticInfo": {},
"languageCode": "en-us"
},
"originalDetectIntentRequest": {
"source": "google",
"version": "2",
"payload": {
"isInSandbox": true,
"surface": {
"capabilities": []
},
"inputs": [
{
"rawInputs": [
{
"query": "Title of selected item",
"inputType": "TOUCH"
}
],
"arguments": [
{
"textValue": "Key of selected item",
"name": "OPTION"
}
],
"intent": "actions.intent.OPTION"
}
],
"user": {},
"conversation": {},
"availableSurfaces": []
}
},
"session": "projects/${PROJECTID}/agent/sessions/${SESSIONID}"
}
Expand Up @@ -20,7 +20,7 @@
"items": [
{
"optionInfo": {
"key": "first title"
"key": "first title key"
},
"description": "first description",
"image": {
Expand Down

0 comments on commit a261cee

Please sign in to comment.