> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent AI Integration with NICE CXone Agent Desktop for Outbound Calls

This guide covers integrating the Agent AI widget into the NICE Agent Desktop environment. The integration supports Automation, [Agent Coaching](/ai-for-service/agentai/agent-experience/agent-realtime-coaching), [Agent Playbook](/ai-for-service/agentai/agent-experience/playbook), [Sentiment Analysis](/ai-for-service/agentai/agent-experience/agent-assist-widget-v3), and Transcription, along with end-of-call summary and custom data passing (such as agent name and ID) to the Agent AI widget.

## Prerequisites

Before beginning the integration, ensure you have the following:

* NICE CXone
  * A NICE CXone administrator account with privileges to:
    * Configure automatic call distribution (ACD).
    * Create campaigns, skills, and dispositions.
    * Access NICE CX Studio and NICE Integration Hubs (Automation & AI > Agent Assist Hub)
  * NICE CX Studio installed on your Windows system.
  * Agent Assist Hub available for your NICE CXone account. (Contact NICE Support; additional license cost applies.)
  * Ability to place outbound calls from NICE Agent Desktop.
  * Voice Interaction Streams available for your NICE environment.
* Agent AI
  * Access to the Agent AI application.
  * Access to the Agent AI configuration portal.
  * An existing Agent configured with:
    * Channels → Voice Gateway (KVG) set up
    * Channels → Web/Mobile (for Client ID, Client Secret, Bot ID)
  * Agent AI widget URL, Bot ID, Client ID, Client Secret, and Account ID.
  * SIP Trunk + SIP URI configured under **Agent AI** > **Flows & Channels** > **Voice Gateway** > **SIP Numbers** > **Configure SIP Trunk**.
  * Network/firewall rules that allow access to:
    * HTTPS: `platform.kore.ai` (or your on-prem host)
    * WSS (Voice WebSocket): `savg-webserver.kore.ai` or region equivalent.

## Definitions

| Section                                                                                                                  | Key                  | Definition                                                                                                                                                                                                    | Reference                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| Nice CX Integration Hubs > Add Agent Assist App                                                                          | Agent AI URL         | The domain of the Agent AI widget.                                                                                                                                                                            | URL is `https://platform.kore.ai`. If it is on-prem, the URL is the origin where your Agent AI widget is hosted. |
| NICE CX Studio > Outbound Voice Script and Configure Parameters                                                          | AgentAssistWidgetURL | URL that points to the Agent AI widget. For example, [https://platform.kore.ai/koreagentassist-sdk-v3/UI/agentassist-iframe.html](https://platform.kore.ai/koreagentassist-sdk-v3/UI/agentassist-iframe.html) | Agent AI > Flows & Channels > Digital > Web/Mobile Client > JWT App Details                                      |
| Nice CX Integration Hubs > Add Agent Assist App + NICE CX Studio > Import Outbound Voice Script and Configure Parameters | BotId                | A unique identifier assigned to an AI Agent.                                                                                                                                                                  | Agent AI > Flows & Channels > Digital > Web/Mobile Client > JWT App Details                                      |
| Nice CX Integration Hubs > Add Agent Assist App + NICE CX Studio > Import Outbound Voice Script and Configure Parameters | ClientId             | An identifier provided to a client application.                                                                                                                                                               | Agent AI > Flows & Channels > Digital > Web/Mobile Client > JWT App Details                                      |
| Nice CX Integration Hubs > Add Agent Assist App + NICE CX Studio > Import Outbound Voice Script and Configure Parameters | ClientSecret         | A secret key or password associated with the ClientId.                                                                                                                                                        | Agent AI > Flows & Channels > Digital > Web/Mobile Client > JWT App Details configuration portal.                |
| Nice CX Integration Hubs > Add Agent Assist App                                                                          | AccountID            | A unique identifier assigned to an account.                                                                                                                                                                   | Agent AI > Flows & Channels > Digital > Web/Mobile Client > JWT App Details                                      |
| Nice CX Integration Hubs > Add Agent Assist App                                                                          | Voice Gateway (KVG)  | For SaaS in the US region, the value is `wss://savg-webserver.kore.ai`. For on-prem, refer to the corresponding host.                                                                                         |                                                                                                                  |

**Region-Specific URLs**

| Region | Agent AI URL                                               | WSS URL                             | DNS                                                                       |
| ------ | ---------------------------------------------------------- | ----------------------------------- | ------------------------------------------------------------------------- |
| US     | `https://platform.kore.ai`                                 | `wss://savg-webserver.kore.ai`      | `@savg-us-prod-sbc-in-nlb-0d9a4c651955ff47.elb.us-east-1.amazonaws.com`   |
| JP     | [https://jp-platform.kore.ai](https://jp-platform.kore.ai) | `wss://jp-savg-audiosocket.kore.ai` | `@savg-jp-prod-int-nlb-3989d946fc1ced3b.elb.ap-northeast-1.amazonaws.com` |

## Configuration Steps

Complete the following steps to integrate Agent AI with NICE CXone Agent Desktop:

* [NICE CX Integration Hubs, Add Agent Assist Hub](#step-1-nice-cx-integration-hubs-add-agent-assist-hub)
* [NICE CX Studio, Import Outbound Voice Script and Configure Parameters](#step-2-nice-cx-studio-import-outbound-voice-script-and-configure-parameters)
* [NICE CX Account Setup for Outbound Calls](#step-3-nice-cx-account-setup-for-outbound-calls)
* [Outbound Voice Simulation](#outbound-call-simulation)

### Step 1: NICE CX Integration Hubs > Add Agent Assist Hub

1. Sign in to your **NICE** account with the user name and password provided by NICE Customer Support.

2. Select the **Applications Launcher** button.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/app-launcher-button-1.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=fea8782ce754eb1c98e22655f6254749" alt="app-launcher-button" width="1847" height="933" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/app-launcher-button-1.png" />

3. Select **OTHERS** > **Automation & AI**.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/automation-ai-2.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=19d96973d9c03f4c519355465153365a" alt="automation-ai" width="615" height="933" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/automation-ai-2.png" />

4. Select **Agent Assist Hub** > **Add Agent Assist App**.

5. Enter the name of the **Agent Assist App** in the **AGENT ASSIST APP NAME** field.

6. Select **Custom Agent Assist Endpoints**.

7. Select **Next**.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/add-agentassist-app-3.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=30a7b4bcf8601655583bdabc629de853" alt="agentassist-app" width="1848" height="980" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/add-agentassist-app-3.png" />

8. Add the following settings with config parameters:
   * **Agent UI Option**: No Assist Panel shown to the agent

   * **App Title**: Agent AI (change as needed)

   * **Participants**: Both

   * Turn on the **CTI EVENT** toggle.
     <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/config-parameters-4.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=ee07241da9e2e3944fc0f85f91a86cd6" alt="config-parameters" width="1197" height="823" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/config-parameters-4.png" />

   * **Audio Relay Endpoint**: `{[Kore Voice Gateway(KVG)]}/audiosocket/nice?sipuri=<Bot SIPURI><DNS>&token=<Token>&botId=<BotID>&accountId=<AccountID>&agentassist=true`
     * **Bot SIP URI**: Flows & Channels > Channels > Voice Gateway > SIP Numbers > Configure SIP Trunk > Agent AI section of the **Agent AI** configuration portal.
       <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/configure-sip-trunk-5.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=36f932dfde7449a021232f23b363d184" alt="configure-sip-trunk" width="1022" height="868" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/configure-sip-trunk-5.png" />

     * **Bot ID and Account ID**: Flows & Channels > Channels > Digital > Web/Mobile Client > JWT App Details section of the **Agent AI** configuration portal.
       <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/web-mobile-client-6.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=7871ab8cc1cd7eae632cfae30445ed9e" alt="web-mobile-client" width="507" height="860" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/web-mobile-client-6.png" />

     * **Token**: Create a **JSON Web Token** on [jwt.io](https://www.jwt.io/) with the following details:
       * Payload: `{"appId": <Bot Client ID>}`
       * Header: `{"alg": "HS256″,"typ": "JWT"}`
       * Secret: Bot Client Secret.

9. Select **Create**.

### Step 2: NICE CX Studio > Import Outbound Voice Script and Configure Parameters

1. Download the script for outbound voice from the Agent AI repository.
   * XML script [link](https://raw.githubusercontent.com/Koredotcom/korecc-twilio/refs/heads/master/Nice/NICE%20Agent%20Desktop%20Outbound%20Voice.XML)
   * JSON script [link](https://raw.githubusercontent.com/Koredotcom/korecc-twilio/refs/heads/master/Nice/NICE%20Agent%20Desktop%20Outbound%20Voice.json)

2. Open the **NICE CX Studio** app from your desktop.

3. Select **File** > **Import from File**.

4. Select the **downloaded outbound voice script**.

5. Double-click the **Generate iframe params** tile.

   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/generate-iframe-params-7.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=03b8e5c87e7ab8692b0b7d6f416bae76" alt="generate-iframe-params" width="484" height="113" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/generate-iframe-params-7.png" />

   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/script-8.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=d4629fdf4e1e4fa6509e0f883a98d2d5" alt="script" width="683" height="504" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/script-8.png" />

6. Update the values for the corresponding parameters:
   * Agent AI Parameters
     * Bot Client ID
     * Bot Client Secret
     * Bot ID
     * Agent AI Widget URL
     * Bot Language Code: **en** is set as the default language. Refer to the [Supported Languages](/ai-for-service/contact-center/configurations/configurations#supported-languages) doc to provide the language code for your AI Agent's language.
   * Custom Data: Use the **customdata** object in the script to pass information to the AI Agent. At runtime, this customdata is accessible in the UserContext of the AI Agent. Refer to [Access Custom Data in Agent AI Bot](/ai-for-service/agentai/agent-experience/access-custom-data-in-agent-ai) for instructions on how to access custom data in the AI Agent. Include your data in the customdata object (one key-value pair per line). For example:
     * `customdata.agentName="Agent"`
     * `customdata.agentID="{__agentid}"`

7. Double-click the **Agent Assist** tile.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/agent-assist-tile-9.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=392eb113623e905266931f35fbb7c33f" alt="agent-assist-tile" width="484" height="113" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/agent-assist-tile-9.png" />

8. Select the **checkbox** next to the Agent Assist instance you created in the above step.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/agent-assist-instance-10.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=c5f072046a930ed48bce6d4845f05542" alt="agent-assist-instance" width="440" height="253" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/agent-assist-instance-10.png" />

9. Select **Yes**.

10. After selecting **Agent Assist**, select the **Close** button on the bottom-right corner of the page.

    <Note>Do not select the **X** button to close the window, as this does not save the changes.</Note>

### Step 3: NICE CX Account Setup for Outbound Calls

Follow [Set Up Manual Outbound Voice](https://help.nicecxone.com/content/acd/channels/voice/setupmanualobvoice.htm) to set up Outbound Voice in NICE CXOne.

During Skill creation, select the **NICE Studio Script** created in the previous step as the custom script.

<Note>To view the summary pop-up in the Agent AI widget, you must select either **Automatic Wrap-up** or **Disposition** for the **Post Contact** setting of the skill. If you don't select any, **None** is selected by default and the chat/voice screen automatically closes once the conversation ends.</Note>

## Outbound Call Simulation

1. Go to the **NICE** home page.

2. Select **Application Launcher** > **Agent**.

3. Select **Integrated Softphone**.

4. Select **Connect**.

5. Change the status to **Available**.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/integrated-softphone-available-11.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=0353dfb954eafd9adf806a70b24669aa" alt="integrated-softphone-available" width="1846" height="601" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/integrated-softphone-available-11.png" />

6. Select **New Outbound** at the top-left of the desktop.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/new-outbound-12.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=aa543af0f5e0a844c98c052e199380cf" alt="new-outbound" width="1849" height="877" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/new-outbound-12.png" />

7. Enter a phone number in the search bar, select **Voice Call**, and select the outbound skill created in the previous step.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/making-outbound-call-13.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=103ce3d93b7d4b481ccec0c4ae9c1a45" alt="making-outbound-call" width="1848" height="602" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/making-outbound-call-13.png" />

8. Select the **Call** button.

9. When a customer accepts the call, the Agent AI widget loads automatically.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/widget-loading-automatically-14.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=31d46bfd021a1552711a345c44aa4e32" alt="widget-loading-automatically" width="1847" height="984" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/widget-loading-automatically-14.png" />

10. Select **Hang Up** to disconnect the call.

11. The **call summary** pop-up is triggered at the end of the call session.

12. Select the disposition **(Submit or Copy)**, and select **Save & Close**.
    <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/call-summary-15.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=1c6395a31e85849c697341fd867e8c13" alt="call-summary" width="1848" height="953" data-path="ai-for-service/agentai/integration/nice-cx-agent-desktop-for-outbound-calls/images/call-summary-15.png" />
