Open codinghusi opened 4 years ago
If I want to get all contexts with
$agent->getContexts()
I get an array of empty objects.
Google made this request:
{ "responseId": "xxx", "queryResult": { "queryText": "whats going on today?", "parameters": { "date": "2019-11-13T12:00:00+01:00", "timespan": "" }, "allRequiredParamsPresent": true, "fulfillmentMessages": [ { "text": { "text": [ "" ] } }, { "payload": {} } ], "outputContexts": [ { "name": "xxx", "parameters": { "date": "2019-11-13T12:00:00+01:00", "date.original": "today", "timespan": "", "timespan.original": "" } }, { "name": "xxx", "parameters": { "date": "2019-11-13T12:00:00+01:00", "date.original": "today", "timespan": "", "timespan.original": "" } }, { "name": "xxx", "parameters": { "date": "2019-11-13T12:00:00+01:00", "date.original": "today", "timespan": "", "timespan.original": "" } }, { "name": "xxx", "parameters": { "date": "2019-11-13T12:00:00+01:00", "date.original": "today", "timespan": "", "timespan.original": "" } }, { "name": "xxx", "parameters": { "date": "2019-11-13T12:00:00+01:00", "date.original": "today", "timespan": "", "timespan.original": "" } } ], "intent": { "name": "xxx", "displayName": "Statistics" }, "intentDetectionConfidence": 0.57797676, "languageCode": "en" }, "originalDetectIntentRequest": { "source": "google", "version": "2", "payload": { "user": { "accessToken": "xxx", "locale": "en-US", "lastSeen": "2019-11-13T14:10:44Z", "userVerificationStatus": "VERIFIED" }, "conversation": { "conversationId": "xxx", "type": "ACTIVE", "conversationToken": "[]" }, "inputs": [ { "intent": "actions.intent.TEXT", "rawInputs": [ { "inputType": "VOICE", "query": "whats going on today?" } ], "arguments": [ { "name": "text", "rawText": "whats going on today?", "textValue": "whats going on today?" } ] } ], "surface": { "capabilities": [ { "name": "actions.capability.SCREEN_OUTPUT" }, { "name": "actions.capability.ACCOUNT_LINKING" }, { "name": "actions.capability.MEDIA_RESPONSE_AUDIO" }, { "name": "actions.capability.AUDIO_OUTPUT" } ] }, "availableSurfaces": [ { "capabilities": [ { "name": "actions.capability.AUDIO_OUTPUT" }, { "name": "actions.capability.SCREEN_OUTPUT" }, { "name": "actions.capability.WEB_BROWSER" } ] } ] } }, "session": "xxx" }
If I want to get all contexts with
I get an array of empty objects.
Google made this request: