Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Support of Arrays in followupEvent #38

Description

@aznamier

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.
screen shot 2017-09-11 at 18 07 44
screen shot 2017-09-11 at 18 08 47

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions