From 6ebcf56a7afa7725b98886dda72fc5a7899ce25f Mon Sep 17 00:00:00 2001 From: Ryder Date: Sat, 20 Oct 2018 20:27:32 -0400 Subject: [PATCH] adding new request --- tests/data/sample_dialogflow_request.json | 157 +++++----------------- 1 file changed, 33 insertions(+), 124 deletions(-) diff --git a/tests/data/sample_dialogflow_request.json b/tests/data/sample_dialogflow_request.json index 8469112..cf3c977 100644 --- a/tests/data/sample_dialogflow_request.json +++ b/tests/data/sample_dialogflow_request.json @@ -1,129 +1,38 @@ { - "originalRequest": { - "source": "google", - "version": "2", - "data": { - "isInSandbox": true, - "surface": { - "capabilities": [ - { - "name": "actions.capability.MEDIA_RESPONSE_AUDIO" - }, - { - "name": "actions.capability.WEB_BROWSER" - }, - { - "name": "actions.capability.AUDIO_OUTPUT" - }, - { - "name": "actions.capability.SCREEN_OUTPUT" - } - ] - }, - "inputs": [ - { - "rawInputs": [ - { - "query": "cyxu", - "inputType": "VOICE" - } - ], - "arguments": [ - { - "rawText": "cyxu", - "textValue": "cyxu", - "name": "text" - } - ], - "intent": "actions.intent.TEXT" - } - ], - "user": { - "lastSeen": "2018-03-28T22:06:51Z", - "locale": "en-CA", - "userId": "ABwppHE-EUZzAWsd7VfEtFOUGN8vy1A6wTljQQ1oweBD5qp_F87DgBBk-eiuk1zb58jNkOWleEI-3LjGeFU" - }, - "conversation": { - "conversationId": "1522274838069", - "type": "ACTIVE", - "conversationToken": "[\"1063cece-4522-4faa-9e7f-a4e8981d7e79_id_dialog_context\",\"actions_capability_audio_output\",\"actions_capability_media_response_audio\",\"actions_capability_screen_output\",\"actions_capability_web_browser\",\"get_weather_dialog_context\",\"get_weather_dialog_params_airport\",\"google_assistant_input_type_voice\",\"google_assistant_welcome\"]" - }, - "availableSurfaces": [ - { - "capabilities": [ - { - "name": "actions.capability.AUDIO_OUTPUT" - }, - { - "name": "actions.capability.SCREEN_OUTPUT" - } - ] - } - ] + "responseId": "e10d110e-29b4-48b2-9764-f08ec9ca7ba4", + "queryResult": { + "queryText": "Hey", + "parameters": { + "airport": { + "name": "London", + "city": "London", + "country": "Canada", + "IATA": "YXU", + "ICAO": "CYXU" } - }, - "id": "b1033440-f404-42ef-93a2-6cb2577fe8ed", - "timestamp": "2018-03-28T22:07:23.168Z", - "lang": "en-ca", - "result": { - "source": "agent", - "resolvedQuery": "cyxu", - "speech": "", - "action": "", - "actionIncomplete": false, - "parameters": { - "airport": { - "name": "London", - "city": "London", - "country": "Canada", - "IATA": "YXU", - "ICAO": "CYXU" - } - }, - "contexts": [], - "metadata": { - "matchedParameters": [ - { - "required": true, - "dataType": "@sys.airport", - "name": "airport", - "value": "$airport", - "prompts": [ - { - "lang": "en", - "value": "What's your airport code?" - }, - { - "lang": "en", - "value": "What's the airport code you're looking for?" - } - ], - "isList": false - } - ], - "intentName": "get_weather", - "isResponseToSlotfilling": true, - "intentId": "1063cece-4522-4faa-9e7f-a4e8981d7e79", - "webhookUsed": "true", - "webhookForSlotFillingUsed": "false", - "endConversation": true, - "nluResponseTime": 9 - }, - "fulfillment": { - "speech": "", - "messages": [ - { - "type": 0, - "speech": "" - } + }, + "allRequiredParamsPresent": true, + "fulfillmentMessages": [ + { + "text": { + "text": [ + "" ] - }, - "score": 1 + } + } + ], + "intent": { + "name": "289374928347293847298347928347923874928374928334", + "displayName": "get_weather" + }, + "intentDetectionConfidence": 1, + "diagnosticInfo": { + "end_conversation": true + }, + "languageCode": "en" }, - "status": { - "code": 200, - "errorType": "success", - "webhookTimedOut": false + "originalDetectIntentRequest": { + "payload": {} }, - "sessionId": "1522274838069" -} \ No newline at end of file + "session": "23984729384723947298374" + } \ No newline at end of file