get_contact_metrics
async
¶
get_contact_metrics(
instance_id: InstanceIdOrArn,
contact_id: InstanceIdOrArn,
metrics: ContactMetrics,
*,
config_overrides: Optional[AsyncConnectClientConfig] = None,
) -> GetContactMetricsResponse
Retrieves contact metric data for a specified contact.
Use cases
Following are common use cases for position in queue and estimated wait time:
-
Customer-Facing Wait Time Announcements - Display or announce the estimated wait time and position in queue to customers before or during their queue experience.
-
Callback Offerings - Offer customers a callback option when the estimated wait time or position in queue exceeds a defined threshold.
-
Queue Routing Decisions - Route incoming contacts to less congested queues by comparing estimated wait time and position in queue across multiple queues.
-
Self-Service Deflection - Redirect customers to self-service options like chatbots or FAQs when estimated wait time is high or position in queue is unfavorable.
Important things to know
-
Metrics are only available while the contact is actively in queue.
-
For more information, see the Position in queue metric in the Connect Customer Administrator Guide.
Endpoints: See Connect Customer endpoints and quotas.
Parameters:
-
instance_id(InstanceIdOrArn) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
contact_id(InstanceIdOrArn) –The identifier of the contact in this instance of Connect Customer.
-
metrics(ContactMetrics) –A list of contact level metrics to retrieve.Supported metrics include POSITION_IN_QUEUE (the contact's current position in the queue) and ESTIMATED_WAIT_TIME (the predicted time in seconds until the contact is connected to an agent)
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/async_connect.py
12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 | |