AWS Builder Center

Embedding Amazon Connect Agent Assist AI into ServiceNow

How to embed Amazon Connect Assistant (aka Agent Assist) into a ServiceNow workspace (e.g. ITSM, CSM)

Series: ServiceNow on AWS (9 articles)

  1. …
  2. 7
    Embedding Amazon Connect Agent Assist AI into ServiceNow This article

A very popular integration in ServiceNow is Amazon Connect to provide full call center capability integrated into ServiceNow. One of the key features of Amazon Connect is an AI assistant for human operators that provides real-time guidance and a two-way chat interface to support human operators during a call. However, the standard integration documentation from ServiceNow only provides the basic voice call control capabilities of Connect within a ServiceNow workspace. Many Connect users find themselves switching between the ServiceNow and Connect Agent workspaces to use Agent Assist. However, it is possible to bring the Agent Assist panel into any ServiceNow configurable workspace, thus avoiding the need for operators to switch workspaces. This document provides a step-by-step instruction on how to complete the integration of Agent Assist into a ServiceNow workspace.

A step-by-step guide for ServiceNow administrators who are new to UI Builder
Item
Details
Audience
A ServiceNow admin with basic navigation skills. No prior UI Builder or AWS development experience needed.
Estimated time
45–60 minutes
Additional AWS cost
None. Nothing new is hosted in AWS (no S3 or CloudFront).
Code required
One copy-and-paste UI Page (provided). Everything else is point-and-click.
Works with
Any UI Builder–based Configurable Workspace: CSM, Service Operations (SOW), HR Agent, or a custom workspace


What You Are Building

You will add an "AI Assist" tab to the sidebar of your ServiceNow workspace. During a live call, the tab shows agent assist recommendations from Amazon Connect Customer (formerly Amazon Connect). Agent assist was formerly called Amazon Q in Connect, and you may also see it called Connect assistant or AI Agent Assist. The panel shows in real time: detected intents, generated answers with citations, and a search box for the agent. Your existing ServiceNow voice and CTI setup does not change.
Naming note: In August 2026, AWS renamed Amazon Q in Connect to agent assist and Contact Lens to conversational analytics. Amazon Connect is now Amazon Connect Customer. Some console screens, API names (such as qconnect), flow blocks ("Connect assistant") and older docs still use the earlier names.

How It Works (Architecture)





Key idea: The AI Assist panel needs a signed-in Amazon Connect agent session, so the page starts a hidden Contact Control Panel (CCP). Voice is turned off in this hidden CCP, so audio is still handled only by your existing ServiceNow CTI softphone.


Before You Start: Prerequisites

Confirm that each item below is in place. Ask your Amazon Connect administrator about anything on the AWS side.
#
Requirement
Who / Where
How to check
1
Amazon Connect Customer instance with agent assist (formerly Amazon Q in Connect) enabled
AWS admin, Connect console
Instance overview > AI Agents / Amazon Q shows a domain
2
A knowledge base connected and fully indexed
AWS admin
Search works in the native Connect agent workspace
3
Contact flow includes the "Connect assistant" block and real-time conversational analytics (formerly Contact Lens), placed before "Transfer to queue"
AWS admin, flow designer
Open the inbound flow and look for both blocks
4
The agent security profile has "Connect assistant / AI Agents – Access"
AWS admin, Users > Security profiles
Test agent can open the AI panel at https://<instance>.my.connect.aws/agent-app-v2/
5
ServiceNow CTI integration working (agents already take calls in the workspace)
ServiceNow admin
Place a test call
6
ServiceNow admin role, plus access to UI Builder
ServiceNow admin
You can open All > Now Experience Framework > UI Builder
7
SSO (SAML) between your identity provider and Amazon Connect. Recommended, not required
IdP admin
Agents sign in to Connect without typing a password

Do this first: Before starting, confirm the AI panel works in the native Amazon Connect agent workspace (https://<instance>.my.connect.aws/agent-app-v2/). If it does not work there, it will not work in ServiceNow either. Fix the AWS side first.


Collect These Values

Value
Example
Where to find it
Connect instance URL
 https://acme-cc.my.connect.aws 
Connect console > your instance > Access URL
ServiceNow instance URL
 https://acme.service-now.com 
Your browser address bar when logged in to ServiceNow


Step 1: Allow ServiceNow to Talk to Amazon Connect (AWS Console, No Code)

Amazon Connect only allows embedding from websites you approve. You need to add your ServiceNow address once.
1. Sign in to the AWS Console and open Amazon Connect.
2. Click your instance alias (the instance name, not the Access URL link).
3. In the left menu, choose Approved origins, then Add domain.
4. Enter your ServiceNow URL exactly, for example  https://acme.service-now.com . Do not add a trailing slash or a path.
5. Click Add domain.
Watch out: If your workspace uses a custom URL (for example
 https://support.acme.com 
), add that URL as well. Each origin must match exactly.


Step 2: Create the "AI Assist" UI Page in ServiceNow (One-Time Copy/Paste)

This is the only code in the guide. You will paste it into a ServiceNow UI Page. ServiceNow then hosts the page securely on your own domain, which replaces the S3 and CloudFront hosting in the earlier version.
1. In ServiceNow, open the filter navigator (All) and type UI Pages. Open System UI > UI Pages.
2. Click New.
3. Fill in the form:
Field
Value
Name
x_q_connect_assist (any unique name; this becomes the page URL)
Category
General
Direct
Checked. This removes the ServiceNow header so only the panel shows.
HTML
Paste Code Block A
Client script
Paste Code Block B
Processing script
Leave empty

4. In Code Block B, replace the value of CONNECT_URL with your Connect instance URL.
5. Click Submit.


Code Block A: HTML field

<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<!-- Amazon Connect Streams library (official AWS CDN build) -->
<script src="https://cdn.jsdelivr.net/npm/amazon-connect-streams/release/connect-streams-min.js"></script>
<style>
html, body { margin:0; padding:0; height:100%; font-family:Arial, sans-serif; }
#ccp-container { width:0; height:0; overflow:hidden; position:absolute; }
#status { padding:8px 12px; font-size:12px; color:#555; background:#f4f6f8; border-bottom:1px solid #ddd; }
#ai-assist-frame { width:100%; height:calc(100% - 34px); border:0; }
</style>
<div id="status">Connecting to Amazon Connect...</div>
<!-- Hidden CCP: provides the agent session. Voice is disabled. -->
<div id="ccp-container"></div>
<!-- AppManager sets the src of this iframe. Do NOT add a src attribute. -->
<iframe id="ai-assist-frame" title="Connect Assistant"></iframe>
</j:jelly>



Code Block B: Client script field

// ====== EDIT THIS ONE LINE ======
var CONNECT_URL = "https://YOUR-INSTANCE.my.connect.aws";
// =================================
function setStatus(msg) { document.getElementById("status").innerText = msg; }
// Load the AWS AppManager plugin (ES module) without any build step
var loader = document.createElement("script");
loader.type = "module";
loader.textContent =
'import { AppManagerPlugin } from "https://esm.sh/@amazon-connect/app-manager";' +
'window.__AppManagerPlugin = AppManagerPlugin;' +
'window.dispatchEvent(new Event("appmanager-ready"));';
document.head.appendChild(loader);
window.addEventListener("appmanager-ready", function () {
// 1) Start a HIDDEN CCP so Connect knows which agent is signed in
connect.core.initCCP(document.getElementById("ccp-container"), {
ccpUrl: CONNECT_URL + "/ccp-v2/",
loginPopup: true, // shows a one-time sign-in popup if no SSO session exists
loginPopupAutoClose: true,
softphone: { allowFramedSoftphone: false }, // ServiceNow CTI keeps handling voice
plugins: [window.__AppManagerPlugin]
});
// 2) When the session is ready, ask AWS to render the AI Assist panel
connect.core.onInitialized(function () {
setStatus("Signed in. Loading AI Assist...");
var provider = connect.core.getSDKClientConfig().provider;
provider.appManager.launchApp("AIAgents")
.then(function (appHost) {
appHost.setIFrame(document.getElementById("ai-assist-frame"));
setStatus("AI Assist ready. Recommendations appear during calls.");
})
.catch(function (err) {
console.error("AI Assist launch failed", err);
setStatus("Could not load AI Assist. See Troubleshooting (code: " + (err && err.message) + ")");
});
});
});



Verify: The app name "AIAgents" comes from the AWS-managed app list. If the panel will not launch, ask your AWS admin to confirm the exact AI Agent Assist app name for your instance. It is listed under the agent workspace's AWS-managed apps (some instances use "Wisdom" or "QConnect").


Test the page by itself

1. In a new browser tab, open https://<your-servicenow>.service-now.com/x_q_connect_assist.do
2. Sign in to Connect in the popup if one appears, then allow popups for this site if your browser blocks it.
3. The status bar should change to "AI Assist ready" and the Connect Assistant panel should appear.
Continue to Step 3 only after this test passes.

Step 3: Add the "AI Assist" Tab in UI Builder (No Code)

In this step you place the UI Page inside your workspace sidebar using drag-and-drop.

3a. Open your workspace in UI Builder

4. Open All > Now Experience Framework > UI Builder.
5. On the UI Builder home page, choose Experiences, then open your workspace (for example "CSM/FSM Configurable Workspace" or "Service Operations Workspace").
6. In the Pages list, open the page agents use during a call. In CSM this is usually "Interaction" (or "Record" for case views).

3b. Make an editable copy (safe change)

7. ServiceNow-owned pages are read-only. When UI Builder prompts you, choose Create variant (or Duplicate variant).
8. Name it, for example "Interaction – AI Assist". Leave audience and conditions at their defaults for now.
Why a variant: A variant is a copy. If something goes wrong, deactivate the variant and agents return to the original page immediately.


3c. Add a sidebar tab

9. In the left Content tree, expand the page and select the Contextual side panel (sometimes called the Contextual Sidebar).
10. In the configuration panel on the right, find Tabs (or Panels) and click Add.
11. Set Label to "AI Assist" and choose an icon, such as a sparkle or lightbulb.

3d. Drop in the iFrame component

12. Select the new "AI Assist" tab container.
13. Click + Add component, search for iFrame, and drag it into the tab.
14. Configure the iFrame properties:
Property
Value
Title
Connect Assistant
Source / URL
/x_q_connect_assist.do (a relative path works because it is on the same ServiceNow domain)
Disable sandbox
Checked. This is required so the Connect sign-in and API messages work.
Allow top navigation
Unchecked
Width
100% (or 330)
Height
100% (or 620)


3e. Save and activate

15. Click Save (top right).
16. Open the variant settings (gear icon or the Page variant panel), set Active = true, and give it a lower order number than the default variant so it wins. For a pilot, add an Audience restricted to a test group.
17. Click Save again.


Step 4 (Optional but Recommended): Low-Code Hardening

4a. Limit who sees AI Assist (no code)

In the page variant, set Audience to a group (for example "Q Pilot Agents"). Only members of that group see the new tab. To roll out to everyone, remove the audience restriction.

4b. Turn on SSO so agents never see a login popup (no code)

Configure SAML between your identity provider (for example Microsoft Entra ID) and Amazon Connect. Once agents have a Connect session from SSO, the hidden CCP signs in silently. See the AWS guide "Configure SAML with IAM for Amazon Connect."

4c. Self-host the libraries (for production)

The page loads two public scripts: jsDelivr for Streams and esm.sh for AppManager. This is fine for a pilot. Many security teams prefer to host the scripts themselves:
· Download connect-streams-min.js and a bundled build of @amazon-connect/app-manager. A developer can create the bundle by following the AWS guide "Using the SDK with StreamsJS".
· In ServiceNow, open System UI > UI Scripts > New, paste each file, and set UI Type = Desktop and Global = false.
· Replace the two external URLs in the UI Page with /<ui_script_name>.jsdbx.

4d. Content Security Policy

If your instance enforces CSP, ask your ServiceNow admin to allow these sources: frame-src and connect-src https://*.my.connect.aws https://*.awsapps.com wss://*.amazonaws.com https://*.amazonaws.com. Also allow script-src for the CDNs, unless you self-host them as described in 4c.

Step 5: Verify End to End

1. Log in to ServiceNow as a test agent who belongs to the pilot audience.
2. Open the workspace, then set yourself Available in the existing CTI softphone.
3. Place a test call and accept it through the existing ServiceNow softphone.
4. Open the AI Assist tab in the sidebar.
5. Talk through a scenario covered by your knowledge base, such as "I need to reset my password". Within a few seconds, intents and answers should appear.
6. Type a question in the panel's search box to confirm manual search works.
7. End the call and confirm the recommendations clear.
8. Confirm there is no echo or duplicate audio. Voice should come only through the ServiceNow softphone.

Checklist

☐ ServiceNow URL is listed in Connect > Approved origins
☐ x_q_connect_assist.do loads and shows "AI Assist ready" in a standalone tab
☐ The AI Assist tab appears in the workspace sidebar
☐ Real-time recommendations appear during a live call
☐ Voice is not duplicated
☐ Page variant is limited to the pilot audience until you are ready to roll out

Troubleshooting

Symptom
Likely cause
Fix
Status stays "Connecting..."
A script did not load (CDN blocked or CSP)
Open browser DevTools (F12) > Console. Allow the CDN domains or self-host them (Step 4c).
"Refused to frame" / blank panel
ServiceNow URL missing from Approved origins
Add the exact https:// URL (Step 1)
Login popup appears repeatedly or is blocked
No SSO session, or the browser is blocking popups
Allow popups for the ServiceNow site and configure SAML (Step 4b)
"Could not load AI Assist" message
App name mismatch, or the security profile is missing access
Confirm the app name (see Verify note) and add the AI Agents / Connect assistant permission
Panel loads but no recommendations during calls
Missing Connect assistant block or real-time conversational analytics in the flow
Add both blocks before Transfer to queue
Panel loads but answers are empty
Knowledge base empty or still indexing
Check the KB status in the Connect console
Two audio streams or echo
Hidden CCP took the softphone
Confirm allowFramedSoftphone: false. In Connect, agents should use the ServiceNow softphone only.
Tab does not appear in the workspace
Variant inactive, wrong order, or user not in the audience
Activate the variant, lower its order number, and check the audience
Tab appears but the iFrame is blank
Sandbox still enabled
Check "Disable sandbox" on the iFrame component


Rollback

In UI Builder, set the "Interaction – AI Assist" variant to Active = false. Agents return to the original page right away, and nothing on the AWS side needs to change.

References

· ServiceNow iFrame component (Horizon):  https://horizon.servicenow.com/workspace/components/now-iframe 
· Building custom experiences for CSM Configurable Workspace (ServiceNow Community):  https://www.servicenow.com/community/csm-blog/building-custom-experiences-for-csm-configurable-workspace/ba-p/2291944 

Series: ServiceNow on AWS (9 articles)

  1. …
  2. 7
    Embedding Amazon Connect Agent Assist AI into ServiceNow This article
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article