Amazon Connect CCP Integration: Agent AI Chat
This guide covers integrating Agent AI (Chat channel) with Amazon Connect using a Custom Contact Control Panel (CCP). The custom CCP acts as a unified container that hosts both Amazon Connect’s native CCP and the Agent AI Chat widget, allowing agents to manage customer interactions while receiving AI-driven assistance in real time.Prerequisites
| Category | Requirement |
|---|---|
| AWS / Amazon Connect | - An active Amazon Connect instance with Administrator privileges. - The instance must be created in a supported AWS region (this guide was validated in us-east-1). - For telephony use cases, ensure DID or toll-free numbers are claimed. - Confirm Amazon Connect service quotas support your expected usage. |
| Custom Contact Control Panel (CCP) | - A supported br /owser (the latest version of Chrome is recommended, as Firefox may have limitations with Webr /TC/media). For details, refer to [AWS documentation](https://docs.aws.amazon.com/connect/latest/adminguide/connect-supported-br /owsers.html). - Workstations meeting minimum CPU, RAM, and network bandwidth requirements for CCP usage. - Network/firewall rules allowing outbound HTTPS (443), Webr /TC domains/ports, and host domains for the custom CCP. - Valid SSL certificates if hosting the CCP outside the Amazon Connect domain. |
| Agent AI | - Active Agent AI account with required permissions for bot configuration. - Access to dialog tasks, session APIs, webhook endpoints, and iframe token generation. - A backend endpoint capable of returning bot metadata and generating Agent AI iframe tokens. |
| Application and Integration Components | - Access to the Custom CCP codebase (HTML/JS container app). - Ability to modify configuration values such as backend URL, CCP URL, and Agent AI token endpoint. - A lightweight hosting solution (such as Python HTTP server, Node, or NGINX). |
| Security / Identity | - IAM roles configured for Amazon Connect administration. - Clearly defined, least-privilege IAM policies for any backend, Lambda, or additional AWS services (if used). - Approved Origins configured in Amazon Connect for custom CCP hosting domains. - Ensure HTTPS-only hosting to avoid mixed-content security blocks. |
| Migration / Versioning | - Verify compatibility with Amazon Connect’s current CCP version (ccp-v2). - Remove or migrate any legacy CCP implementations. - Ensure Agent AI endpoints and token mechanisms match the latest platform standards. |
Components Required
The integration requires the following components:- Amazon Connect
- Custom Contact Control Panel (CCP)
- Agent AI Platform
Note: Lambda, Kinesis, and streaming services are not required for chat-only integrations.
Set up an Amazon Connect Instance
- Sign in to your Amazon Connect instance.
- Go to Amazon Connect > Instances.
-
Click Add an instance to create a new Amazon Connect instance.

-
Select an option in the Identity management section, and enter the Amazon Connect instance name in the Access URL field.

- This step creates an Amazon Connect host URL: https://<instance-name>.my.connect.aws.
- Click Next.
-
Select Specify an administrator, and enter the admin details in the following fields:
- First name: First name of the administrator.
- Last name: Last name of the administrator.
- Username: Username for the administrator to sign in.
- Password: Password for the administrator to sign in.
- Password (verify): Re-enter the password.

- Click Next.
-
Select option(s) in the Telephony Options section.

- Click Next.
-
Select an option on the Data storage page.

- Click Next.
-
Review and click Edit to change your input.

- Click Create.
Sign in as an Administrator
The new instance you created is listed in Amazon Connect.
- Click the instance alias.
-
Add allowed origins by clicking Approved origins, as shown in the following screenshot:

-
Go to the Overview option of the current instance, and click the URL. A new web page opens in a different tab:

- Sign in with the Administrator credentials you created during instance setup. These credentials give you admin access to the contact center, allowing you to modify flows and groups as needed.
Run the Code Base
- Get the code base from this URL.
- Change the backend URL in config.js under the scripts/config folder. This backend URL provides the bot details and Agent AI iframe token.
- Change the ccpUrl in initCCP.js. The ccpUrl format is: https://[amazon-connect-instance].my.connect.aws/connect/ccp-v2
-
Run a lightweight server to access this as a web page.
Example:
python -m http.server [port-number] -
After entering the local host URL, you should see the following screen:

-
When you initiate a chat, you see the following screen (Agent AI on the right):

Chat Widget in Amazon Connect
- Sign in to the Amazon Connect instance.
-
Go to Channels > Communication widget.
- The default widget is available here. Create a new widget by clicking Add widget.

- The default widget is available here. Create a new widget by clicking Add widget.
-
Click the required widget.
2. The JavaScript sample code to run the widget on your local device is shown here. Copy the code.

-
Paste the code into any HTML file, and run a sample application server.
python -m http.server [port-number] -
You should see the following screen for the chat widget:

-
The following screenshot shows Amazon Connect integrated with Agent AI:

- Click here for a demo video.
-
The following screenshot shows Amazon Connect integrated with Agent AI: