list_intent_paths
async
¶
list_intent_paths(
bot_id: Id,
start_date_time: Timestamp,
end_date_time: Timestamp,
intent_path: AnalyticsPath,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = 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/async_lex_models_v2.py
5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 | |