- Prepare the Amazon Connect instance for chat hand-off.
- Create the connection in Artemis and copy its WebSocket endpoint URL.
- Connect Amazon Connect to Artemis with the endpoint URL and the connection’s API key.
- Verify the connection with a complete chat contact.
- Amazon Connect owns the contact: The agent joins the chat as a collaborating agent. It doesn’t own routing. Amazon Connect decides what happens after the agent returns its outcome, including the transfer to a human queue.
- This page covers chat only: For Amazon Connect voice contacts, set up the separate Amazon Connect Voice channel, which runs through the Kore.ai voice gateway.
- Contacts that Artemis already handled skip the hand-off: In your contact flow, send contacts whose source attribute is
artemis_botstraight to the queue, without the A2A hand-off step. - The full endpoint URL exists only after you create the connection: Before creation, Artemis shows the pattern
/ws/amazon-connect/{connectionId}. - Traces can contain customer data: Tracing and tool inputs and outputs are on by default. Review both settings before production.
Prerequisites
Confirm these before you start.- Artemis project access with permission to open Deployments > Channels, and a deployed agent in the environment you intend to bind.
- An Amazon Connect administrator who manages the instance, the contact flow, the Lex V2 bot, and AWS Secrets Manager.
- An Amazon Connect instance on the Customer tier.
- A publicly reachable WSS endpoint for your Artemis environment, with a valid TLS certificate.
Prepare the Amazon Connect instance
Ask your Amazon Connect administrator to complete this checklist. Artemis shows the same checklist in the connection’s setup panel.- Use an Amazon Connect Customer tier instance.
- Configure a Lex V2 bot with the
AMAZON.QInConnectIntentintent. - Enable chat message streaming.
- Set
audioStreamingEnabledtofalse. - In the contact flow, send contacts whose source attribute is
artemis_botstraight to the queue.
Create the connection in Artemis
Create the connection before you configure Amazon Connect. Artemis generates the full endpoint URL and the API key when you create it.- Open Artemis and select the project.
- Go to Deployments > Channels > Amazon Connect (chat).
- Select Set up Amazon Connect (chat). The New Amazon Connect (chat) Connection dialog opens, with the setup guide on the left and the fields on the right.
-
Review the tracing options in the setup guide:
-
Configure the fields:
- Select Create.
- Open the connection and copy the full WebSocket endpoint URL and the connection’s API key.
Connect Amazon Connect to Artemis
Give Amazon Connect the endpoint and the credential it needs to reach the agent.- In the AWS CloudShell setup for the integration, set
ENDPOINT_URLto the full WebSocket endpoint URL you copied from Artemis. - Store the connection’s API key in AWS Secrets Manager. Don’t paste the key into the contact flow, scripts, or tickets.
- Confirm the endpoint is reachable over WSS from Amazon Connect and presents a valid TLS certificate.
- Route the chat contacts you want the agent to handle to the hand-off step in your contact flow.
Verify the connection
Each check exercises a different part of the chat path.- Start a chat from the Amazon Connect customer chat interface. Confirm the agent joins the contact and answers with context from the transcript.
- Finish the conversation. Confirm Amazon Connect receives the complete outcome and takes the chat back.
- Start a new chat and ask for a human. Confirm the agent returns the escalated outcome and Amazon Connect routes the chat to the human queue.
- Send a contact whose source attribute is
artemis_bot. Confirm it goes straight to the queue without a hand-off. - With tracing on, confirm Amazon Connect receives a trace for each turn when it requests one.
Chat behavior
Artemis applies these rules to every contact.Security and environment boundaries
The API key and the traces are the two places where data leaves Artemis, so protect both deliberately.- API key: Store it only in AWS Secrets Manager, and rotate it immediately if someone exposes it.
- Traces: Turn off Include tool inputs and outputs when tool data contains personal or regulated information that Amazon Connect shouldn’t receive.
- Endpoint: Expose only the WSS endpoint, with valid TLS, and manage network policy with your platform administrator.
- Environments: Use separate Amazon Connect instances or contact flows, API keys, and connections for development, staging, and production.
Manage the channel connection
Open a connection from Deployments > Channels > Amazon Connect (chat) to manage it. Use the connection page to update the display name, the tracing options, and the environment binding, and to activate or deactivate the connection. A connection on the working copy changes as you edit the agent. Bind it to a published environment before production.Troubleshoot connection issues
Most failures trace to the Amazon Connect instance setup, the endpoint, or the API key.Related articles: