Organizations need the capability to perform advanced analytics on the contact center data and build custom reports for different business needs. With Amazon Connect analytics data lake, organizations easily access and analyze contact center performance metrics using their preferred BI tool. With the analytics data lake, records are de-duped and ready to query; eliminating the need to build and maintain complex data pipelines to perform extract, transform, and load (ETL) operations to access Amazon Connect data to get it ready for analytics and artificial intelligence (AI) workloads.
Organizations use the analytics data lake with Amazon Athena and Amazon QuickSight, or other BI tools, to create customized reports and dashboards leveraging Generative AI. This helps managers track important metrics for improving customer experience and operational efficiency. For example, by visualizing agent performance, managers identify the best performers for lost order calls and optimize routing profiles to staff queues with these agents, leading to desired business outcomes.
In this solution, learn how to use Amazon Connect Data Lake to build advance analytics dashboard with Amazon QuickSight and QuickSight Gen BI (Generative AI capability)
It is assumed that you understand the use of the services below and you have the following prerequisites:
- Amazon Connect
- Amazon QuickSight
- Amazon Athena
- AWS Resource Access Manager
- AWS LakeFormation
- AWS CloudFormation
Note: The screenshots below are taken with randomized synthetic data. Once you deploy, you will see data based on your environment. For example, the user name below appears as an ID, but it will show you the actual user name.
This dashboard provides an overview of Contact Stats, focusing on metrics such as the total number of contacts, average contact duration, agent and contact interaction time, and time spent in the queue. It includes visualizations of these metrics by day, offering insights into contact trends and agent performance. The dashboard also provides average values for callback attempts, hold time, and after-contact work, helping to monitor overall efficiency and identify areas for improvement in contact center operations.
This dashboard focuses on Contact Attributes Analysis, providing insights into contact statistics, average duration, agent interaction times, and various other metrics. It includes details on reasons for disconnects, contacts by endpoint address, and queue-specific metrics. The dashboard also breaks down contact attributes such as initiation method, attribute keys, and attribute values, helping you gain deeper insights into the interactions and behavior patterns of contact center agents and customers.
This dashboard is an Agent Contact Leaderboard that displays key performance metrics for agents, including the greatest and least number of contacts handled, time spent on after-contact work, and agent interaction duration. It highlights agents with the longest and shortest contact durations, highest and lowest number of callback attempts, and longest time on hold. This dashboard provides a comprehensive view of agent performance, helping identify top-performing agents and areas for improvement to optimize contact center efficiency and customer satisfaction.
The Contact Statistics from Contact Lens dashboard shows key metrics such as average customer sentiment, agent sentiment, conversation duration, agent talk speed, and talk duration. The dashboard includes visualizations that break down these metrics by day, providing insights into daily performance trends.
This dashboard focuses on the Category Analysis of contact center interactions. It also categorizes contacts by assigned categories, endpoint addresses, and reasons for disconnects. The dashboard helps in understanding the distribution of contacts across different categories and provides detailed insights into agent and customer interactions, enabling better analysis and optimization of contact center performance.
This dashboard is an Agent Contact Lens Leaderboard that displays various metrics to evaluate agent performance and customer interactions. It includes categories such as highest and lowest customer sentiment, highest and lowest agent sentiment, and longest and shortest conversation durations. Additional metrics, such as talk speed and talk duration, help analyze both agent and customer behaviors during interactions. The dashboard helps identify top and bottom-performing agents and provides insights to optimize agent training and overall contact center performance.
You use Amazon QuickSight's native Generative AI capabilities for your Contact Center with the Amazon Connect data lake.
Note: Generative AI technology delivers accurate responses when paired with effective prompt engineering. Use prompt engineering techniques to provide clear and precise instructions to enhance the quality and relevance of AI-generated responses. Well-crafted prompts lead to better context, improved output, and higher overall accuracy.
The user has asked a natural language question: "how many times caller with email address user12@mail.com called in last 24 hours" and the system has interpreted and analyzed this query.
When a user types a simple question like "What is average agent interaction duration in mins," the system automatically interprets it, identifies the relevant data source, and performs the necessary calculations. The results are then displayed in a clear, easy-to-read format, showing the average duration as 0.04 minutes. You can add this analysis to the QuickSightdashboard.
Users can modify the visualization by simply typing instructions. In this case, the user has requested to "add green color where number of contacts is more than 200" - which explains why queue1 and queue3 are highlighted in green as they exceed the 200-contact threshold. This feature makes data visualization customization intuitive and accessible without requiring technical expertise in chart formatting or coding.
Users can simply prompt the system with instructions like "Create a executive summary for contact center performance last week," and the AI automatically analyzes multiple KPIs to create a comprehensive executive summary. The system intelligently combines these metrics, identifies trends, and presents them in a clear, business-focused narrative without requiring manual data compilation or advanced analytical skills.
This image showcases QuickSight's "Data to insights" generative AI feature, which transforms complex agent performance analysis into automated coaching plans. The user has prompted the system to "Generate a personalized agent coaching plan by analyzing individual metrics against team benchmarks.." for a specific agent (exampleuser2). The AI analyzes multiple performance metrics, including after-contact work duration, total duration per contact, interaction times, sentiment scores, and total contact volume. The system automatically compares these metrics to team averages and provides a structured, step-by-step analysis. This demonstrates how the AI feature can quickly process multiple data points to create personalized performance insights and coaching recommendations, eliminating the need for manual data analysis and making performance management more efficient and data-driven.
In this architecture, Amazon Connect make the data available to you through Amazon Athena. Once you configure the data sharing it creates a RAM invitation to the consumer account. RAM is a service to help you securely share resources across AWS accounts. AWS Lake Formation simplifies the creation, management, and governance of data lakes. By automating data ingestion, cataloging, security, and access control, it helps organizations efficiently manage large volumes of data for analytics, reporting, and machine learning purposes. Amazon Athena lets you analyze the data using standard SQL to run ad-hoc queries and get results. The data in Amazon Athena is visualed with Amazon QuickSignt.
Fig - 1: Architecture diagram
- Search Amazon Connect service

- Add an Amazon Connect Instance

- Enter a globally unique name to access your instance

- Enter admin user details

- Keep the default entires in the subsiquent screen and create the instance
- Click on the Instnace Alias

- Click on Analytics tools

- Click on Add data share

- Copy the AWS account number

- Add data share

- Validate data share is successful

- Search for Resource Access Manager

- Navigate to Resource shares and select LakeFormation under pending status

- Accept the resource share

- Copy the Resource ID for glue:Catalog and glue:Database

- Search for AWS Lake Formation service

- In the pop up select "Add myself" and click Get started

- Search for Amazon QuickSight service

- Click on Sign up for quicksight

- Enter the email address and unique account name and Finish. Keep all other configuration as it is

- Click on Go to Quicksight

- Open CloudShell, copy the aws account id. Update the below comman with your account ID and execute it in cloud shell
aws quicksight list-users --aws-account-id "accountNumber" --namespace default

- Copy the user part of the ARN. Example, "user/default/WSOpsRole/Op"
- Download the datalake.yaml cloudformation from here.
- Search AWS CloudFormation service

- Click Create stack

- Upload the template and execute the stack

- Verify if the QuickSightRole is same as step 3.5. If not update "QuickSightRole" parameter. RAMDataLake must match glue:Database (step 2.4) and RAMOwner must match glue:Catalog (step 2.4)

- Once the stack executes, click on "Output" and copy the bucket name for "AthenaQueryS3QueryResultsOutput" key. Example, "datalake-795716566622-athena-results-s3"

- Search Amazon Athena Service

- Click on the Query Editor and click on Edit settings

- Add the s3 bucket you copied in step 4.6. Example "s3://datalake-795716566622-athena-results-s3"

- Click on all the hyper link value for the Keys under the template Outputs. This will execute the creation of views in Athena. This will be used by QuickSight

- Click Run for the 5 views

- Download the CTR QuickSight dashboard CloudFormation template from here.
- Click on Create Stack, then "With new resources"

- Upload the CTR CFT downloaded in step 5.1

- Use the default parameter and click Run

- Acknowledge the steps and Submit

- Download the CL QuickSight dashboard CloudFormation template from here.
- Run the steps 5.2 through 5.5. Use the CL CFT downloaded in step 6.1
- Click on Manage QuickSight

- Click Manage Assets

- Click on Dashboard

- Select all the dashboards and click share.

- Enter the user i.e the email address you entered in step 3.3 and click share

- Confirm it's done

- Select all the other resources and share as necessary

Please follow the instructions here to enable and learn about Amazon Q in QuickSight.
Turn on Contact Lens and place test calls/chat. Dashboard will show data
- Delete CloudFormation template
- Empty and delete the S3 bucket created while executing the CloudFormation template
- Turn off Data Lake
You have learnd how to configure Amazon Connect Data Lake and vizuale it's data in Amazon Quicksight












