LexModelsV2 / Client / list_intent_paths
list_intent_paths#
- LexModelsV2.Client.list_intent_paths(**kwargs)#
- Retrieves summary statistics for a path of intents that users take over sessions with your bot. The following fields are required: - startDateTimeand- endDateTime– Define a time range for which you want to retrieve results.
- intentPath– Define an order of intents for which you want to retrieve metrics. Separate intents in the path with a forward slash. For example, populate the- intentPathfield with- /BookCar/BookHotelto see details about how many times users invoked the- BookCarand- BookHotelintents in that order.
 - Use the optional - filtersfield to filter the results.- See also: AWS API Documentation - Request Syntax- response = client.list_intent_paths( botId='string', startDateTime=datetime(2015, 1, 1), endDateTime=datetime(2015, 1, 1), intentPath='string', filters=[ { 'name': 'BotAliasId'|'BotVersion'|'LocaleId'|'Modality'|'Channel', 'operator': 'EQ'|'GT'|'LT', 'values': [ 'string', ] }, ] ) - Parameters:
- botId (string) – - [REQUIRED] - The identifier for the bot for which you want to retrieve intent path metrics. 
- startDateTime (datetime) – - [REQUIRED] - The date and time that marks the beginning of the range of time for which you want to see intent path metrics. 
- endDateTime (datetime) – - [REQUIRED] - The date and time that marks the end of the range of time for which you want to see intent path metrics. 
- intentPath (string) – - [REQUIRED] - The intent path for which you want to retrieve metrics. Use a forward slash to separate intents in the path. For example: - /BookCar 
- /BookCar/BookHotel 
- /BookHotel/BookCar 
 
- filters (list) – - A list of objects, each describes a condition by which you want to filter the results. - (dict) – - Contains fields describing a condition by which to filter the paths. The expression may be understood as - name- operator- values. For example:- LocaleId EQ en– The locale is “en”.
- BotVersion EQ 2– The bot version is equal to two.
 - The operators that each filter supports are listed below: - BotAlias–- EQ.
- BotVersion–- EQ.
- LocaleId–- EQ.
- Modality–- EQ.
- Channel–- EQ.
 - name (string) – [REQUIRED] - The category by which to filter the intent paths. The descriptions for each option are as follows: - BotAlias– The name of the bot alias.
- BotVersion– The version of the bot.
- LocaleId– The locale of the bot.
- Modality– The modality of the session with the bot (audio, DTMF, or text).
- Channel– The channel that the bot is integrated with.
 
- operator (string) – [REQUIRED] - The operation by which to filter the category. The following operations are possible: - CO– Contains
- EQ– Equals
- GT– Greater than
- LT– Less than
 - The operators that each filter supports are listed below: - BotAlias–- EQ.
- BotVersion–- EQ.
- LocaleId–- EQ.
- Modality–- EQ.
- Channel–- EQ.
 
- values (list) – [REQUIRED] - An array containing the values of the category by which to apply the operator to filter the results. You can provide multiple values if the operator is - EQor- CO. If you provide multiple values, you filter for results that equal/contain any of the values. For example, if the- name,- operator, and- valuesfields are- Modality,- EQ, and- [Speech, Text], the operation filters for results where the modality was either- Speechor- Text.- (string) – 
 
 
 
 
- Return type:
- dict 
- Returns:
- Response Syntax- { 'nodeSummaries': [ { 'intentName': 'string', 'intentPath': 'string', 'intentCount': 123, 'intentLevel': 123, 'nodeType': 'Inner'|'Exit' }, ] } - Response Structure- (dict) – - nodeSummaries (list) – - A list of objects, each of which contains information about a node in the intent path for which you requested metrics. - (dict) – - An object containing information about the requested path. - intentName (string) – - The name of the intent at the end of the requested path. 
- intentPath (string) – - The path. 
- intentCount (integer) – - The total number of sessions that follow the given path to the given intent. 
- intentLevel (integer) – - The number of intents up to and including the requested path. 
- nodeType (string) – - Specifies whether the node is the end of a path ( - Exit) or not (- Inner).
 
 
 
 
 - Exceptions- LexModelsV2.Client.exceptions.ThrottlingException
- LexModelsV2.Client.exceptions.ValidationException
- LexModelsV2.Client.exceptions.PreconditionFailedException
- LexModelsV2.Client.exceptions.ServiceQuotaExceededException
- LexModelsV2.Client.exceptions.InternalServerException