AWS Contact Center
Automating HAQM QuickSight dashboard creation for analyzing HAQM Connect data
Introduction
To get the most advanced analytics benefits, organizations need a robust platform and a cost-effective solution to run a thriving contact center. This is achieved by building a data lake on HAQM Simple Storage Service (S3). HAQM Connect Data Lake Best Practices whitepaper lays out the various data sources within HAQM Connect, and steps to build a data lake with best practices. The reporting blog series Part 1 (Contact Trace Record), Part 2 (Contact Lens Records), Part 3 (Chat Records), Part 4 (HAQM Lex Records), shows how organizations build data pipelines that feed the HAQM S3 data lake, then manually create BI visualization using HAQM QuickSight.
This blog automates the HAQM QuickSight dashboard visualization on the HAQM Connect data lake.
Overview
Fig 1.1–High level architecture diagram
In the preceding architecture, depending on the data source enabled and of interest, the data is processed, enriched, and stored in an S3 bucket. Contact ID is the unique identifier for a contact, which is used to identify and aggregate the data.
AWS Glue Catalog has the table definitions for the data sources, while HAQM QuickSight is used for visualization. Each data source has a dedicated QuickSight dashboard.
This solution uses a parameter named “Project Name” that defines the solution domain. You can deploy this solution multiple times with different project names in order to maintain isolation. The project name must be globally unique, as the solution creates S3 buckets based on that name.
This blogs automates the HAQM QuickSight Dashboard creation for Part 1 (Contact Trace Record), and Part 2 (Contact Lens Records).
Pre-requisites
To follow along with the solution presented in this blog post, you must understand the following AWS services and features:
- HAQM Connect
- HAQM EventBridge
- HAQM Simple Storage Service (S3)
- AWS CloudFormation
- HAQM Kinesis
- HAQM Athena
- HAQM QuickSight
- AWS Glue
- AWS Identity and Access Management (IAM)
- Create and modify AWS IAM roles
Deploy Analyze HAQM Connect Contact Trace Record with HAQM Athena and HAQM QuickSight–Part 1 blog before proceeding further.
Walkthrough
Note-1: HAQM QuickSight and the CloudFormation need to be in the same AWS Region.
Note-2: This solution will use HAQM QuickSight SPICE storage.
- Create a QuickSight Account
- Navigate to HAQM QuickSight service from the AWS Management console.
- Click “Sign up for QuickSight”
- Select the Edition.
- Enter account name, notification email address and allow access to auto-discover S3 bucket with <projectName> and HAQM Athena.
- Once HAQM QuickSight account setup is complete, from the HAQM QuickSight console, select your username to open the menu. Select “Manage QuickSight”
- On the left menu, select “Manage Groups”
- Select “NEW GROUP” button and name the group in the format “<projectName>-Admins” (It is case sensitive). Select “CREATE.”
- Add yourself as an administrator to the dashboard by selecting the newly created group name, then click “ADD USER.”
- Download the CloudFormation template from the S3 location here to your local machine.
- In your preferred AWS Region (same Region as HAQM QuickSight), create a CloudFormation stack using the template file downloaded in step 6.
- Follow the steps under the data source of interest section to create the associated HAQM QuickSight dashboard. For example: To generate CTR based dashboard, follow the steps under “Contact Trace Record (CTR) Dashboard” only. To generate Contact Lens and CTR based dashboard follow the steps under “Contact Lens and CTR Dashboard” only.
-
Contact Trace Record (CTR) Dashboard
- Follow the Blog “Analyze HAQM Connect Contact Trace Record with HAQM Athena and HAQM QuickSight–Part 1” (already mentioned in the pre-requisite), to deploy and validate the solution until the validation step. For automated QuickSight dashboard creation, follow the steps in this blog.
- To create dashboard based on Contact Trace Record only, select “YES” for CtrDataLakeSolutionDeployed option and “NO” for all the option from the drop-down. The <projectName> for Part 1 blog and this section is the same.
-
Contact Lens and CTR Dashboard
- Follow the blog “Analyze HAQM Connect Contact Lens using Contact Trace Record, HAQM Athena, and HAQM QuickSight–Part 2”, option-1 to deploy and validate the solution until the validation step. For automated QuickSight dashboard creation, follow the steps in this blog.
- To create dashboard based on Contact Lens and CTR, select “YES” for the ContactLensDataLakeSolutionDeployed and CtrDataLakeSolutionDeployed option from the drop-down. The <projectName> for Part 2 blog and this section is the same.
-
- Enter the details in the CloudFormation template, per the instructions mentioned under each header, and click Next.
- Check the box at the last step, and then click “Create stack.”
Dashboards in HAQM QuickSight
Navigate to HAQM QuickSight dashboard page to view the dashboard for each deployment option. HAQM QuickSight Analysis are available to customize the Dashboard further.
Contact Trace Record (CTR) Dashboard
- The following screenshot shows the Agent leader board statistics.
- The following screenshot shows the Contact Attribute analysis. The Contact Attribute <Key, Value> dynamically update in the filter drop-down, as defined in the Contact Flow.
- The following screenshot shows the contacts statistics.
Contact Lens and CTR Dashboard
- The following screenshot shows the Contact Lens statistics.
- The following screenshot shows the Contact Lens category statistics. The category drop-down update automatically based on Contact Lens Rule name.
- The following screenshot shows the Contact Lens Agent Leader board statistics.
Clean up
In order to remove the resources created by the stack, perform the following steps:
- Delete the CloudFormation template.
- Delete the objects and the S3 bucket created from the CloudFormation template. The Bucket name should contain the project name.
- Delete the Glue database created from the CloudFormation template.
Conclusion
In this blog, you learned how to automate the HAQM Connect QuickSight dashboard creation using a CloudFormation template for Contact Trace Record and Contact Lens record.
For more analytics capabilities on HAQM Connect data sources, refer the following blogs in the HAQM Connect reporting blog series:
- Analyze HAQM Connect Contact Trace Record (CTR)
- Analyze HAQM Connect Contact Lens
- Analyze HAQM Connect Chat sentiments
- Analyze HAQM Connect Chatbot performance
- Analyze HAQM Connect Agent Event Stream (AES)
- Automating HAQM QuickSight dashboard creation for analyzing HAQM Connect data
- Analyze data for HAQM Connect Outbound Campaigns (Contact event Streams)
- Create Custom Reports for HAQM Connect Cases
Author Bio
![]() |
Mehmet Demir is a Senior Solutions Architect at HAQM Web Services (AWS) based in Toronto, Canada. He helps customers in building well-architected solutions that support business innovation. |
![]() |
Ankur Taunk is a Senior Specialist Solutions Architect at AWS. He helps customer achieve their desired business outcomes in the Contact Center space leveraging HAQM Connect. |