The Amazon Connect - Quick Connects are a way for you to create a list of destinations for common transfers. This Java-based solution automates the creation and management of Quick Connects in Amazon Connect contact centers. It streamlines the process of setting up and maintaining quick connects configurations for agents, phone numbers, and queues.
This solution provides a serverless implementation using AWS Lambda and AWS CDK for infrastructure deployment. It enables contact center administrators to manage Quick Connects through CSV files stored in S3 buckets, supporting three types of Quick Connects: User, PhoneNumber, and Queue. This solution automatically associates Quick Connects with all the queues and maintains consistent routing configurations across the contact center environment.
Below are the services that are required for deploying the solution.
Before getting started, make sure you have the following:
-
AWS Account
-
Amazon Connect Instance
-
Java Development Kit (JDK) installed on your local machine
-
AWS CLI configured with valid credentials
- AWS CLI. If missing install latest AWS CLI from here.
aws --version
- AWS CLI. If missing install latest AWS CLI from here.
-
Node.js and npm installed (required for CDK)
- Node.js 22.x or later. If missing install Node.js from here.
node --version
- Node.js 22.x or later. If missing install Node.js from here.
-
AWS CDK - Install the latest AWS CDK Toolkit globally using the following command:
npm install -g aws-cdk
cdk --version
- CDK Bootstrap - Bootstrap your AWS account for CDK. This only needs to be done once per account/region.
cdk bootstrap aws://<account>/<region>
- CDK Bootstrap - Bootstrap your AWS account for CDK. This only needs to be done once per account/region.
Clone the repository:
git clone <repository-url>
cd sample-amazon-connect-quick-connect-addressbook
Build the project:
mvn clean install
Configure these values before deploying the infrastructure; Update the file cdk.context.json with your values.
Note: ProcessQuickConnectType - All (default), User, Phone or Queue
{
"InstanceId": "<AmazonConnectInstanceId>",
"DefaultAgentTransferFlowId": "<DefaultAgentTransferFlowId>",
"ProcessQuickConnectType": "All"
}
Deploy the infrastructure:
cd Infra
cdk deploy
Make sure you are in the right AWS account and region.
AWS CloudFormation will create similar to below resources
Note: Not all the resources are shown in the screenshot below.
- Prepare your Quick Connect CSV file following the sample format:
Note:
- You need the below CSV file only for PhoneNumber and Queue Type (quickConnectType).
- User Type will be created and managed using the user information available in the Amazon Connect User Management.
quickConnectName,quickConnectType,destinationId,contactFlowId,description
quick-connect-1,Phone,+11234567890,,PhoneNumberTransfer
quick-connect-2,Queue,5b210f8d-6e0a-490f-9264-28c2b809df51,9dba5adb-b389-4a6a-9ef2-d42ea9ef3693,QueueTransfer
- quickConnectName -> Name for the QuickConnect.
- quickConnectType -> Phone or Queue.
- destinationId ->
- When quickConnectType is Phone -> destinationId is PhoneNumber in E.164 format.
- When quickConnectType is Queue -> destinationId is QueueID.
- contactFlowId -> Required only for quickConnectType = Queue, its Queue Transfer Contact Flow Id.
- description -> Description of QuickConnect.
- Upload the CSV file to the configured S3 bucket to trigger the Quick Connect creation process.
Run the below command to delete the application.
cdk destroy
This will delete all the provisioned resources from your AWS account.