list_intent_paths
¶
list_intent_paths(
bot_id: Id,
start_date_time: Timestamp,
end_date_time: Timestamp,
intent_path: AnalyticsPath,
*,
config_overrides: Optional[LexModelsV2ClientConfig] = None,
filters: Optional[AnalyticsPathFilters] = None,
) -> ListIntentPathsResponse
Retrieves summary statistics for a path of intents that users take over sessions with your bot. The following fields are required:
-
startDateTimeandendDateTime– 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 theintentPathfield with/BookCar/BookHotelto see details about how many times users invoked theBookCarandBookHotelintents in that order.
Use the optional filters field to filter the results.
Parameters:
-
bot_id(Id) –The identifier for the bot for which you want to retrieve intent path metrics.
-
start_date_time(Timestamp) –The date and time that marks the beginning of the range of time for which you want to see intent path metrics.
-
end_date_time(Timestamp) –The date and time that marks the end of the range of time for which you want to see intent path metrics.
-
intent_path(AnalyticsPath) –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(Optional[AnalyticsPathFilters], default:None) –A list of objects, each describes a condition by which you want to filter the results.
Raises:
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
PreconditionFailedException–Your request couldn't be completed because one or more request fields aren't valid. Check the fields in your request and try again.
-
ServiceQuotaExceededException–You have reached a quota for your bot.
-
ThrottlingException–Your request rate is too high. Reduce the frequency of requests.
-
ValidationException–One of the input parameters in your request isn't valid. Check the parameters and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_models_v2/_services/lex_models_v2.py
5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 | |