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

# Configuring the NiceInContact (User Hub) Agent

<Badge icon="arrow-left" color="gray">[Back to Agent Transfer Integrations](/ai-for-service/integrations/overview#agent-transfer)</Badge>

The NiceInContact CXone User Hub integration allows you to hand off AI Agent conversations to live agents on Nice Chat.

The AI Agent acts as a proxy between users and NiceInContact User Hub agents, facilitating seamless conversation handovers.

***

## Configuration

### Step 1: Generate Access Details

1. Log in to [https://login.incontact.com/](https://login.incontact.com/) with your NiceInContact credentials.

2. Generate an **AccessKeyId** and **AccessKeySecret** from your User Profile. See [NiceInContact Generate Access Key Documentation](https://help.nice-incontact.com/content/admin/security/manageaccesskeys.htm?tocpath=Admin%7CAdmin%7CRoles%20and%20Security%7C_____3).

   <Note>These access details can be generated in the CXone interface on the Employees Page for the User Hub.</Note>

3. Save the **Access Key** and **Access Secret** for later.

### Step 2: Register an App and Retrieve Client ID and Secret

1. Log in to [https://login.incontact.com/](https://login.incontact.com/) with your NiceInContact credentials.
2. Follow the [Application Registration Documentation](https://developer.niceincontact.com/Documentation/ApplicationRegistration?Length=13) to register your app.
3. On the Application Registration page, provide:
   * **Tenancy**: Single Tenant
   * **Authentication method**: `client_secret_basic`
   * **CXone ACD API scopes**: `PatronApi`
   * **Application type**: Back-end
4. After registration, you receive a `client_id` and `client_secret`. Save both.

### Step 3: Create a Point of Contact

1. Follow the [Set Up Chat Documentation](https://help.nice-incontact.com/content/acd/channels/chat/setupchat.htm) to create a point of contact.
2. Set **Media Type** to **Chat**.
3. Enter **Name**, select **Skills** and **Script**, then click **Create Point of Contact**.
4. Copy the **Point of Contact key** and save it.

### Step 4: Enable the NiceInContact Agent

1. Log in to the Platform.

2. Select the AI Agent to configure.

3. Navigate to **App Settings > Integrations > Agent Transfer** and click **Nice In Contact (UserHub)**.

4. On the **Configurations** tab, enter:

   | Field                     | Description               |
   | ------------------------- | ------------------------- |
   | Application Client ID     | Client ID from Step 2     |
   | Application Client Secret | Client secret from Step 2 |
   | Access Key                | Access key ID from Step 1 |
   | Access Secret             | Access secret from Step 1 |
   | Point Of Contact          | POC ID from Step 3        |

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YO1E2pGTjZsI3mMB/ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img2.png?fit=max&auto=format&n=YO1E2pGTjZsI3mMB&q=85&s=28e1299fdb729fa109275bd1347eab8d" alt="NiceInContact agent credentials" width="1212" height="824" data-path="ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img2.png" />

5. To make NiceInContact the default agent, enable **Default Agent System for all app channels**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YO1E2pGTjZsI3mMB/ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img3.png?fit=max&auto=format&n=YO1E2pGTjZsI3mMB&q=85&s=a169763f119ae7d4707926b598b6c6ba" alt="Default agent setting" width="1213" height="819" data-path="ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img3.png" />

   <Note>This option is only available when multiple agents are configured.</Note>

6. Click **Manage** to map channels to the NiceInContact User Hub agent.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YO1E2pGTjZsI3mMB/ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img4.png?fit=max&auto=format&n=YO1E2pGTjZsI3mMB&q=85&s=4c23ab65d5a8327cbdf788ffadf40cae" alt="Mapping channels" width="1340" height="823" data-path="ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img4.png" />

7. Click **Save** to enable the agent.

8. Publish the app. See [Publishing your App](/ai-for-service/deployment/publishing-app).

***

## Verify the Integration

1. Log in to [https://login.incontact.com/](https://login.incontact.com/) with the credentials from Step 1.

2. Navigate to **Applications > Max** to launch the Chat console.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YO1E2pGTjZsI3mMB/ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img5.png?fit=max&auto=format&n=YO1E2pGTjZsI3mMB&q=85&s=66fdc485147b8b2117396288b98abe26" alt="Launch chat console" width="378" height="650" data-path="ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img5.png" />

3. Change status from **Unavailable** to **Available**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YO1E2pGTjZsI3mMB/ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img6.png?fit=max&auto=format&n=YO1E2pGTjZsI3mMB&q=85&s=ff2e4a7e7d15444560a7c2d539c5b921" alt="Change status to Available" width="450" height="922" data-path="ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img6.png" />

4. Click **Connect** to start exchanging conversations.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YO1E2pGTjZsI3mMB/ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img7.png?fit=max&auto=format&n=YO1E2pGTjZsI3mMB&q=85&s=c89941287b4b11bac72d8188331a6b3e" alt="Start conversation" width="450" height="922" data-path="ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img7.png" />

5. Open the AI Agent with NiceInContact User Hub enabled.

6. Create an Agent Transfer Node task (for example, a **Talk to Live Agent** task with a **LiveChats** node configured to use Nice agent). See [Agent Transfer Node](/ai-for-service/automation/dialogs/node-types/agent-transfer-node).

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YO1E2pGTjZsI3mMB/ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img8.png?fit=max&auto=format&n=YO1E2pGTjZsI3mMB&q=85&s=3e27a3e814da2e44530e9235732d3a5b" alt="New Agent Transfer Node task" width="1917" height="852" data-path="ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img8.png" />

7. Click **Talk to Bot** and enter **Help**.

8. When the agent transfer dialog is invoked, NiceInContact Chat receives a notification.

9. The conversation transfers to the NiceInContact User Hub agent and the connection is established.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YO1E2pGTjZsI3mMB/ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img9.png?fit=max&auto=format&n=YO1E2pGTjZsI3mMB&q=85&s=6fff86cb52a89282f987460358d19767" alt="Connection established" width="1919" height="916" data-path="ai-for-service/integrations/agents/images/configuring-the-niceincontact-userhub-img9.png" />
