> ## 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 MAX Desktop for Outbound Calls

This guide covers integrating the Kore.ai Agent AI widget into the NICE MAX 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](/ai-for-service/agentai/agent-experience#transcript-tab), along with end-of-call summary and Custom Data passing (such as agent name and ID) to the Agent AI widget.

## Shared Responsibilities

### NICE CXOne Admin

* **ACD Configuration**: CXOne customers are responsible for creating and mapping skills within the ACD system to ensure proper routing of interactions.
* **Campaign Setup**: Customers must set up campaigns, including specifying routing and agent availability, on the CXOne platform.
* **Agent Assist Hub Configuration**: CXOne customers are responsible for configuring the Agent Assist Hub settings within NICE Studio.

### Kore.ai Admin

* **Provide Studio Script for Outbound Voice**: Kore.ai will assist in provisioning the Studio script to ensure seamless integration with the CXOne platform.

## Prerequisites

* NiceCX administrator having access to a NICE CX Account, with privileges to set up the below configurations, and able to make outbound calls on agent desktop.
* [NICE CX Studio](https://help.nice-incontact.com/content/studio/studio.htm) installed on your Windows device.
* Agent Assist Hub enabled for your account. Contact your NICE CX representative. Note this requires an extra license cost.
* Access to Kore AgentAssist application and familiarity with creating and configuring a Kore AI Agent.
* Kore.ai App credentials such as Agent AI Widget URL, Bot ID, Client ID, Client Secret, Account ID and SIP URI. Read [Configure Voice Channel](/ai-for-service/channels#configure-voice-gateway) and [Chat Channel](/ai-for-service/channels#digital-channels) for a walkthrough.
* Ensure that Voice Interaction Streams are enabled via NICE.

## Definitions

| **Section**                                                                                                              | **Key**                 | **Definition**                                                                                                                       | **Reference**                                                                                                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------ | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Nice CX Integration Hubs > Add Agent Assist App                                                                          | Agent AI URL            | The domain of the Agent AI.                                                                                                          | - If it is legacy Agent AI, URL is [https://agentassist.kore.ai](https://agentassist.kore.ai) <br /> - If it is UXO, URL is `https://platform.kore.ai` <br /> - If it is on-prem, the URL is the origin where your Agent AI is hosted. |
| NICE CX Studio > Outbound Voice Script and Configure Parameters                                                          | AgentAssistWidgetURL    | URL that points to the Agent AI widget. For example, `https://agentassist.kore.ai/koreagentassist-sdk-v3/UI/agentassist-iframe.html` | **Channels > Chat** section of the **[Agent AI](https://agentassist.kore.ai)** configuration portal.                                                                                                                                   |
| 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.                                                                                         | **Channels > Chat** section of the **[Agent AI](https://agentassist.kore.ai)** configuration portal.                                                                                                                                   |
| 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.                                                                                      | **Channels > Chat** section of the **[Agent AI](https://agentassist.kore.ai)** configuration portal.                                                                                                                                   |
| 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.                                                                               | **Channels > Chat** section of the **[Agent AI](https://agentassist.kore.ai)** configuration portal.                                                                                                                                   |
| Nice CX Integration Hubs > Add Agent Assist App                                                                          | AccountID               | A unique identifier assigned to an account.                                                                                          | **Channels > Chat** section of the **[Agent AI](https://agentassist.kore.ai)** configuration portal.                                                                                                                                   |
| Nice CX Integration Hubs > Add Agent Assist App                                                                          | Kore Voice Gateway(KVG) | For Saas in US region, value is wss\://savg-webserver.kore.ai. For on-prem, refer to corresponding host.                             |                                                                                                                                                                                                                                        |

**Region Specific URLs**

| **Region** | **Agent AI URL**                                                 | **UXO URL**                                                | **WSS URL**                        | **DNS**                                                                 |
| ---------- | ---------------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------- | ----------------------------------------------------------------------- |
| US         | [https://agentassist.kore.ai](https://agentassist.kore.ai)       | `https://platform.kore.ai`                                 | wss\://savg-webserver.kore.ai      | @savg-us-prod-sbc-in-nlb-0d9a4c651955ff47.elb.us-east-1.amazonaws.com   |
| JP         | [https://agentassist-jp.kore.ai](https://agentassist-jp.kore.ai) | [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 Kore Agent AI with NICE MAX Desktop:

* [Shared Responsibilities](#shared-responsibilities)
  * [NICE CXOne Admin](#nice-cxone-admin)
  * [Kore.ai Admin](#koreai-admin)
* [Prerequisites](#prerequisites)
* [Definitions](#definitions)
* [Configuration Steps](#configuration-steps)
  * [Step 1: Nice CX Integration Hubs > Add Agent Assist Hub](#step-1-nice-cx-integration-hubs-add-agent-assist-hub)
  * [Step 2: NICE CX Studio > Import Outbound Voice Script and Configure Parameters](#step-2-nice-cx-studio-import-outbound-voice-script-and-configure-parameters)
  * [Step 3: NICE CX Account Setup for Outbound Call](#step-3-nice-cx-account-setup-for-outbound-call)
* [Outbound Call 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. Click the **Applications Launcher** button.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/app-launcher-1.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=dc7651907aa20c23cc4686c74d8ae8ce" alt="app-launcher" width="1847" height="933" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/app-launcher-1.png" />

3. A menu opens from the left side of the page. Click **OTHERS** > **Automation & AI**.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/automation-ai-2.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=fe12c232de2afad4fa00d5034fb16ad2" alt="automation-ai" width="615" height="933" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/automation-ai-2.png" />

4. Click **Agent Assist Hub** > **Add Agent Assist App**.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/add-agentassist-app-3.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=a58fa4fe3d0dcc9b80f08000277d7f9e" alt="add-agentassist-app" width="755" height="924" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/add-agentassist-app-3.png" />

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

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

7. Click **Next**.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/custom-agentassist-endpoints-4.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=47aa3cf5e884c405853950eb70f7b352" alt="custom-agentassist-endpoints" width="1848" height="980" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/custom-agentassist-endpoints-4.png" />

8. Add the following settings with config parameters:
   * Agent UI Option: Available by default

   * App URL: `{Agent AI URL}/integrations/nice/iframe/?params={scriptparams}`

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

   * Participants: Both
     <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/configuration-5.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=934f026a78b26d81272208f35535550b" alt="configuration" width="1111" height="760" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/configuration-5.png" />

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

     * **Bot ID and Account ID**: **Flows & Channels** > **Channels** > **Digital** > **Web/Mobile Client** > **JWT App Details** section of the **[Agent AI](https://agentassist.kore.ai/)** configuration portal.
       <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/web-mobile-client_7.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=7e83d71e09f97dbfd00c42bf7e4f44e2" alt="web-mobile-client" width="507" height="860" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/web-mobile-client_7.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. Click **Create**.

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

1. Download the [json script for outbound voice](/ai-for-service/assets/nice-agent-desktop-outbound-voice.json) or the [xml script for outbound voice](https://github.com/Koredotcom/docs-v2/raw/refs/heads/main/ai-for-service/assets/nice-agent-desktop-outbound-voice.xml) from the **Kore.ai Nice integration** repository.

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

3. Click **File** > **Import from File**.

4. Select the **downloaded script** for chat / voice.

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

   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/generate-iframe-params-8.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=9f84deb97307ec99e31577c86c6c14d0" alt="generate-iframe-params" width="502" height="104" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/generate-iframe-params-8.png" />

   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/iframe-param-code-9.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=8ebee9f9e779c41fb786b93883f65932" alt="iframe-param-code" width="625" height="516" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/iframe-param-code-9.png" />

6. Update the values for the corresponding parameters:
   1. Kore.ai Parameters
      1. Bot Client ID
      2. Bot Client Secret
      3. Bot ID
      4. Agent AI Widget URL
      5. Bot Language Code - "en" is set as the default language. Refer to this [doc](/ai-for-service/agentai/agent-experience/supported-languages) to provide the language code for your AI Agent's language.
   2. Custom Data: Use the **customdata** object in the script to pass information to the Kore AI Agent. During 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 customdata in the AI Agent.
      Include your data in the customdata object (one key-value pair per line). For example:
      1. `customdata.agentName="Agent"`
      2. `customdata.agentID="1234"`
   3. NICE CX Credentials: Base region URL is the Host URL of the login page. If the URL for ACD is `https://home-abc.nice-incontact.com`, then the API URL would be `https://api-abc.nice-incontact.com`. Use the URLs without the trailing slash.
      1. NICE CX API Access Key
      2. NICE CX API Access Key Secret
      3. NICE CX API URL
      4. NICE CX Base Region URL

         <Note>Refer to [Manage Access Keys](https://help.nice-incontact.com/content/admin/security/manageaccesskeys.htm) to create NICE CX API Access Key and NICE CX API Access Key Secret.</Note>

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

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

9. Click **Yes**.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/agent-assist-app-12.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=e6e6d7059bc3b2a5fb68a0d42b101e27" alt="agent-assist-app" width="833" height="329" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/agent-assist-app-12.png" />

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

    <Note>Don't click the **X** button to close the window as this doesn't save the changes.</Note>

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

On the **NICE Incontact** home page, click the **application launcher** button, and select **ACD**.

**Create a Campaign**

<img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/create-a-campaign-13.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=6faa838cb695ca5ed4dc170fe29d375c" alt="create-a-campaign" width="774" height="217" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/create-a-campaign-13.png" />

**Create a Skill**

<img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/create-a-skill-14.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=98db5c539031c657ed51fc8dc87636cd" alt="create-a-skill" width="949" height="579" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/create-a-skill-14.png" />

For Custom Script, select the NICE Studio Script created in the previous step.

**Create a Disposition**

<img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/create-a-disposition-15.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=6f7f7b9dc73591a865ab5de28c9ba1c8" alt="create-a-disposition" width="783" height="208" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/create-a-disposition-15.png" />

## Outbound Call Simulation

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

2. Click **Application Launcher** > **MAX**.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/integrated-softphone-16.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=fa5e6f4a95e9994205d11485d64f3cf9" alt="integrated-softphone" width="296" height="530" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/integrated-softphone-16.png" />

3. Select **Integrated Softphone**, and click **Connect**.

4. Change the status to **Available**.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/available-status-17.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=b118ca045d3af6d5ff2ca412140d14ac" alt="available-status" width="391" height="1011" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/available-status-17.png" />

5. Click **New** at the bottom-left of the screen.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/new-contact-18.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=fed5499a155632881d2f73974f3d213c" alt="new-contact" width="345" height="1013" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/new-contact-18.png" />

6. Enter the number in the search bar and click **Call**, then select the outbound skill created in the previous step.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/new-call-19.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=1245677274669db3f02fdf8cce6e9a9d" alt="new-call" width="486" height="1013" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/new-call-19.png" />

7. When the customer accepts the call, the Agent AI widget loads automatically.

   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/agent-ai-widget-20.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=d0eff53f85367ec8b6d223e8887f3905" alt="agent-ai-widget" width="451" height="281" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/agent-ai-widget-20.png" />

   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/widget-21.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=055be629aa2c6fe3de3b0cb8e8f2cc6c" alt="widget" width="1400" height="767" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/widget-21.png" />

8. Click **Hang Up** to disconnect the call.
   <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/hang-up-call-22.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=715bc910d96c014d08574c4dc5e02d4e" alt="hang-up-call" width="1849" height="1012" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/hang-up-call-22.png" />

9. Click **Hang Up** again to confirm disconnection of the call.
   1. The Call **summary** pop-up gets triggered at the end of the call session.

10. Select the **disposition,** and click **Save & Close**.
    <img src="https://mintcdn.com/koreai/dWOGhT7K2KdSf5AH/ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/summary-23.png?fit=max&auto=format&n=dWOGhT7K2KdSf5AH&q=85&s=225cd8a1a75e7ebb9e5061a657e7eefd" alt="summary" width="1849" height="1014" data-path="ai-for-service/agentai/integration/nice-max-desktop-for-outbound-calls/images/summary-23.png" />

***
