dialogflow-java-client
dialogflow-java-client copied to clipboard
Support of Arrays in followupEvent
Since introduction of "list" parameters in api.ai it is possible to bind the json array from the response of the followup event (AIEvent) to a "list" variable. This allows to output nice data driven buttons etc.
AIEvent has currently support of parameter map key=value where both key and a value are strings.
We should be able to support JsonElement as a value here, so that more complex types eg. array can be sent in the response.

{
"speech": "some response",
"followupEvent": {
"name": "show-list-success",
"data": {
"running": [
"server1",
"server2",
"server3"
],
"stopped": [
"server7",
"server9"
]
}
}
}