Get Interaction Multi Aggregates
You need an API key to authenticate. See here for more information about the API keys.
The time range to consider when computing the metrics and analytics to show.
Filters you can use to get data based only on the interactions you are interested in.
You can use group_by filters to aggregate data according to your preferences. This endpoint allows you to get data aggregated in different ways with a single call.
For example, if you want both negative_intent
and intents
in a single API call, you can set the group_by_groups
value to the following list:
[[{kind: user_intent}], [{kind: negative_user_intent}]]
The inner lists can specify additional groupings for splitting your data. Suppose you want to get both intent
and negative_user_intent
further split by topic
. In this case, your request should include the field as:
[[{kind: user_intent}, {kind: topic}], [{kind: negative_user_intent}, {kind: topic}]]
The variables for which values are required. If not specified, all available variables will be computed. The supported variables are
- n_interactions
- n_users
- user_feedback
- cost
- latency_seconds
- n_intents
- retention
Parameter needed for pagination. It indicates the number of rows per page.
Parameter needed for pagination. It indicates the offset to be applied to the first rows returned.
Response
Needed for pagination. The total number of rows available.
Needed for pagination. It indicates the offset to be applied to the first rows returned.
Needed for pagination. It indicates the number of rows per page.
The data aggregated using the given group_by field.