Skip to content

Commit

Permalink
adding new request
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderdamen committed Oct 21, 2018
1 parent 0406b33 commit 6ebcf56
Showing 1 changed file with 33 additions and 124 deletions.
157 changes: 33 additions & 124 deletions tests/data/sample_dialogflow_request.json
Original file line number Diff line number Diff line change
@@ -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"
}
"session": "23984729384723947298374"
}

0 comments on commit 6ebcf56

Please sign in to comment.