aws.lexv2_models.list_aggregated_utterances
Example SQL Queries
SELECT * FROMaws.lexv2_models.list_aggregated_utterancesWHERE"bot_id" = 'VALUE'AND "locale_id" = 'VALUE'AND "aggregation_duration" = 'VALUE';Description
Provides a list of utterances that users have sent to the bot.
Utterances are aggregated by the text of the utterance. For example, all instances where customers used the phrase "I want to order pizza" are aggregated into the same line in the response.
You can see both detected utterances and missed utterances. A detected utterance is where the bot properly recognized the utterance and activated the associated intent. A missed utterance was not recognized by the bot and didn't activate an intent.
Utterances can be aggregated for a bot alias or for a bot version, but not both at the same time.
Utterances statistics are not generated under the following conditions:
The childDirected field was set to true when the bot was created.
You are using slot obfuscation with one or more slots.
You opted out of participating in improving Amazon Lex.
Table Definition
| Column Name | Column Data Type |
|---|---|
| aggregation_duration Required Input Column The time period used to aggregate the utterance data. | STRUCT( |
Show child fields
| |
| bot_id Required Input Column The identifier of the bot that contains the utterances. | VARCHAR |
| locale_id Required Input Column The identifier of the language and locale that the utterances are in. | VARCHAR |
| bot_alias_id Input Column The identifier of the bot alias that contains the utterances. If you specified the bot version, the bot alias ID isn't returned. | VARCHAR |
| bot_version Input Column The identifier of the bot version that contains the utterances. If you specified the bot alias, the bot version isn't returned. | VARCHAR |
| filters Input Column Provides the specification of a filter used to limit the utterances in the response to only those that match the filter specification. You can only specify one filter and one string to filter on. | STRUCT( |
Show child fields
| |
| max_results Input Column The maximum number of utterances to return in each page of results. If there are fewer results than the maximum page size, only the actual number of results are returned. If you don't specify the maxResults parameter, 1,000 results are returned. | BIGINT |
| next_token Input Column A token that indicates whether there are more results to return in a response to the ListAggregatedUtterances operation. If the nextToken field is present, you send the contents as the nextToken parameter of a ListAggregatedUtterances operation request to get the next page of results. | VARCHAR |
| sort_by Input Column Specifies sorting parameters for the list of utterances. You can sort by the hit count, the missed count, or the number of distinct sessions the utterance appeared in. | STRUCT( |
Show child fields
| |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| aggregated_utterances_summaries Summaries of the aggregated utterance data. Each response contains information about the number of times that the utterance was seen during the time period, whether it was detected or missed, and when it was seen during the time period. | STRUCT( |
Show child fields
| |
| aggregation_last_refreshed_date_time The last date and time that the aggregated data was collected. The time period depends on the length of the aggregation window.
| TIMESTAMP_S |
| aggregation_window_end_time The date and time that the aggregation window ends. Only data collected between the start time and the end time are returned in the results. | TIMESTAMP_S |
| aggregation_window_start_time The date and time that the aggregation window begins. Only data collected after this time is returned in the results. | TIMESTAMP_S |