> ## 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.

# Adding Genesys Cloud CX Messaging as a Channel

<Badge icon="arrow-left" color="gray">[Back to Available Channels](/ai-for-service/channels/adding-channels-to-your-bot#available-channels)</Badge>

The Platform now allows you to add **Genesys Cloud CX Messaging** as a messaging channel for your AI Agent. Genesys Cloud CX Messaging integration helps instantly share your ideas with people inside your organization with the persistent chat history feature to start a conversation with your colleagues and continue it anywhere, anytime.

<Note>This integration works only with Genesys Cloud CX Messaging channel, not the older Genesys web chat.</Note>
With the **Genesys Cloud CX Messaging** integration on the Platform, you can achieve the following:

* Set up the REST API and authorization flow for events and conversations.
* Link the app to the Platform using the app’s credentials.
* Deploy the app and transfer conversations to the **Genesys Agent System**.
* Leverage various templates like Button, Quick Replies, and Bullets List provided by Genesys for message formatting.
* Accept any attachments in the chat messages that Genesys supports.

After the integration, you can do the following:

* Track AI Agent conversations.
* Listen to new messages from Genesys Cloud CX Messaging.
* Have Apps post and respond to messages in Genesys Cloud CX Messaging conversations.
* Have Apps handle incoming notifications from your apps into Genesys Cloud CX Messaging.

To set up **Genesys Cloud CX Messaging** as a channel, use your account on the [Genesys Cloud](https://genesys.my.site.com/customercare/RequestAccount) Platform and enable a webhook for the platform to receive messages.

The steps to add the channel are summarized below:

1. [Create a Bot Connector](#step-1-create-a-bot-connector) and [Link the App to the Connector](#step-1-create-a-bot-connector).
2. [Create an App in the Kore.ai Web/Mobile Client](#step-2-create-an-app-on-the-platform).
3. [Create the OAuth Client App in the Genesys Developer Console](#step-3-create-the-oauth-client-app-on-genesys-developer-console).
4. [Create an inbound message flow](#step-4-create-an-inbound-message-flow).
5. [Configure the Messenger SDK](#step-5-configure-the-messenger-sdk).
6. [Enable the Channel](#step-6-enable-the-channel).
7. [Publish the App](#step-7-publish-the-app).

## Step 1: Create a Bot Connector

A **Bot Connector integration** enables your bot to exchange messages with the Genesys Agent System configured on the Platform by using industry-standard REST and JSON over HTTPS.

1. Log in to the [Genesys Developer Portal](https://login.mypurecloud.com/).
2. Create a Bot Connector with the steps below:
3. **On the Genesys Cloud CX Admin portal**
   1. In the Genesys Cloud Admin portal, navigate to **Admin** > **Integrations**.
   2. Use the **+ Integrations** button to find integration options.
   3. Search for “bot connector” and find the **Genesys Bot Connector**. Install it to your instance.
      <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_m1.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=487cc4affd88f27b807876e19955b50b" alt="alt_text" width="704" height="449" data-path="ai-for-service/channels/images/genesys_m1.png" />
4. **On the Platform**
   1. On the Platform, navigate to **Channels & Flows** > **Channels** > **Digital** > **All** > **Genesys Cloud CX Messaging**.
      <img src="https://mintcdn.com/koreai/EONPbCsrsFf039KO/ai-for-service/channels/images/digital-channels.png?fit=max&auto=format&n=EONPbCsrsFf039KO&q=85&s=73a5b6a5602871310ba4c9c47db73614" alt="alt_text" width="1693" height="671" data-path="ai-for-service/channels/images/digital-channels.png" />
   2. Copy the **Webhook URL** from the **Configurations** section of the Platform for the Genesys Cloud CX Messaging Channel screen.
      <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_m3.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=fa3a39fa9e1392529ba5aaff8a48d946" alt="alt_text" width="831" height="797" data-path="ai-for-service/channels/images/genesys_m3.png" />
5. **On the Genesys Cloud CX Admin portal**
   1. Go back to the Genesys Admin portal. In the **Properties** section under **Configuration** for the Bot Connector, paste the webhook in the **Value** field for **Bot Connector Handle Utterance URI**.
      <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_m4.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=3c268f38677b456e0b415df9a51450be" alt="alt_text" width="1209" height="314" data-path="ai-for-service/channels/images/genesys_m4.png" />
   2. Leave this page open for additional configuration.
6. **On the Platform**
   1. In the **Genesys Cloud login URL** field under **Configuration**, provide the URL of your Genesys AWS Region, which will allow the platform to route the conversation requests correctly. This is a **mandatory field.** You can find the URL of your region through the link provided in the field description on the screen.
      <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_m5.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=ab1e84e9045d342ee182ffcc535a8426" alt="alt_text" width="822" height="278" data-path="ai-for-service/channels/images/genesys_m5.png" />
   2. Leave the **Genesys Cloud CX Messaging** channel configuration open for further configuration.

## Step 2: Create an App on the Platform

Create an app on the platform. A JWT Token is created with the **clientId** and **clientSecret** credentials. For more information, read[ Adding the Web/Mobile Client Channel](/ai-for-service/channels/add-web-mobile-client) article.

1. Click the **Create App** link under the **Configurations** section of the **Genesys Cloud CX Messaging** Channel.

   <img src="https://mintcdn.com/koreai/9rPLmg0PjM-o0YCd/ai-for-service/channels/images/genesys_cloud_2.1.png?fit=max&auto=format&n=9rPLmg0PjM-o0YCd&q=85&s=bf318bfcc78e4256b1ddc322412ce490" alt="alt_text" width="691" height="898" data-path="ai-for-service/channels/images/genesys_cloud_2.1.png" />

2. Use the **Client ID** and **Client Secret** value of the new app to create a JWT token using the steps mentioned[ here](/ai-for-service/channels/add-wechat-channel).

   <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_cloud_2.2.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=b2c2d2bf31ddb89c0870f1beaa81fb43" alt="alt_text" width="626" height="634" data-path="ai-for-service/channels/images/genesys_cloud_2.2.png" />

3. (Optional) add the Metadata Transfer Key to be sent to Genesys Prebuild Agent Integration on the agent transfer. Refer to [Metadata Transfer to Genesys Prebuilt Agent Transfer](#metadata-transfer-to-genesys-prebuilt-agent-transfer).

4. Navigate back to the **Bot Connector** configuration screen in the Genesys Cloud Admin portal.

5. Navigate to the **Configuration** > **Credentials** section and click **Change**.

6. Create a new **Field Name** called **Authorization**.

7. Paste the following in the **Value** field on the **Change Credentials** window.
   1. The word **bearer**
   2. A space
   3. The **JWT** created in before.

      <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_chat_beare_2.3.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=59d5f7576aed03b7f84e1e7c1fd14321" alt="alt_text" width="1533" height="708" data-path="ai-for-service/channels/images/genesys_chat_beare_2.3.png" />

8. Click **Ok**.

<Note>Select HS256 for JWT Signing Algorithms Used For Client App Authentication.</Note>

## Step 3: Create the OAuth Client App on Genesys Developer Console

Steps to create an app on the Genesys Developer Console:

1. Log in to the[ Genesys Developer Portal](https://login.mypurecloud.com/#/authenticate).

2. Navigate to **Admin > Integrations > OAuth**.

3. Click **Add Client** on the OAuth Screen.

4. Enter the **App Name** and **Description**.

5. Select the **Grant Types** as **Code Authorization**.
   <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_chat_create_app.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=9d92f87dcdb169b30d7779e14c79167b" alt="alt_text" width="1718" height="787" data-path="ai-for-service/channels/images/genesys_chat_create_app.png" />

6. Copy the **Callback URL** from the **Configurations** tab of the Platform for Genesys Cloud CX Messaging channel.
   <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_chat_create_app2.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=381437b39031f260f37b31c787bb9cce" alt="alt_text" width="832" height="793" data-path="ai-for-service/channels/images/genesys_chat_create_app2.png" />

7. In the Genesys Console, go back to the **Integrations > OAuth** page and paste the **Callback URL** that you have copied in the **Authorized redirect URI** field.

8. Add the architect, integrations, and textbot scopes in the **Scopes** field.
   <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_chat_bearer1.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=269d09071ad22fe59afc2eb51e0e3c93" alt="alt_text" width="1736" height="687" data-path="ai-for-service/channels/images/genesys_chat_bearer1.png" />

9. Click **Save** to update the OAuth Client configuration.

10. Copy the **Client ID** and **Client Secret** from the OAuth Client App page.

11. In the Platform, return to the **Channels & Flows** > **Channels** > **Digital** > **All** > **Genesys Cloud CX Messaging** > **Configurations** tab and paste the **Client ID** and **Client Secret** values.

12. Once you paste all the required credentials, click **Authorize** to validate the authorization.
    <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys_cloud_cx6.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=2459d023c038fe589af8bac75a3dc931" alt="alt_text" width="809" height="796" data-path="ai-for-service/channels/images/genesys_cloud_cx6.png" />

13. If you are still logged into your Genesys Cloud instance, your current credentials are used. Otherwise, a login screen will open. Use valid credentials for the Genesys cloud instance you are configuring.

Your Bot Connector is created successfully!

## Step 4: Create an Inbound Message Flow

To create an inbound message flow after connecting your AI Agent to the Connector, follow the steps below:

1. Navigate to **Admin** > **Architect** on the **Genesys Bot Connector** page.

2. Click the **Flows: Inbound Message** tab.

3. Click the Add button.

4. In the **Create Inbound Message Flow** dialog, enter the values for the required fields.

5. Click **Create Flow**.

6. After creating the Inbound Message Flow, follow the steps below:
   * Click the flow you’ve created in the list.
   * Click the **Initial State** icon on the top menu.
   * Select the **Call Bot Connector** option by navigating to **Start** > **Toolbox** > **Bot**.
     <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys-9.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=c4e03cb0c28a261d80e6870c51fcc606" alt="call bot connector" width="1016" height="528" data-path="ai-for-service/channels/images/genesys-9.png" />
   * Select the bot connector and the relevant App from the list.
   * Enter values for the given fields.
     <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys-10.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=ebba272c02eff9dba21f1f48290eae0f" alt="genesys details" width="1237" height="603" data-path="ai-for-service/channels/images/genesys-10.png" />

7. Click **Publish** on the top panel.

## Step 5: Configure the Messenger SDK

After creating the inbound messaging flow, you should configure and deploy the messenger with the steps below:

1. In the Genesys Cloud CX Admin portal, navigate to **Admin** > **Message** > **Messenger Deployments**.

2. Enter the values for **Name** and **Description**.

3. Set **Status** to **Active**.

4. For **Select your Configuration**, select the **Messenger Configuration** to assign it to the deployment.

5. For **Restrict Domain Access**, select **Allow all domains**.

6. For **Select your Architect Flow**, select your Message Flow created in the previous step.

7. Click **Save**.
   The system routes the message sent by the user via the **Genesys Messenger** to the message flow.
   <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys-11.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=d3f9d231d9021f9fe71bcaed7e4c371d" alt="genesys messenger" width="842" height="666" data-path="ai-for-service/channels/images/genesys-11.png" />

8. Paste the script generated in the messenger deployment on the HTML page where you want to add the **Genesys Messenger**.
   <img src="https://mintcdn.com/koreai/bwTBS2L_ljod2EHO/ai-for-service/channels/images/genesys-12.png?fit=max&auto=format&n=bwTBS2L_ljod2EHO&q=85&s=d031fffb5153d3db2751e8f9b5230d37" alt="paste script" width="946" height="648" data-path="ai-for-service/channels/images/genesys-12.png" />

## Step 6: Enable the Channel

After you’ve configured the Genesys Messenger and deployed it for your AI Agent, you must enable the **Genesys Cloud CX Messaging** Channel by following the steps below:

1. Navigate to **Channels & Flows** > **Channels** > **Digital** > **All** > **Genesys Cloud CX Messaging** on the Platform.
2. Click the **Configurations** tab.
3. Select **YES** for **Enable Channel**.
4. Click **Save**.

## Step 7: Publish the App

After enabling the channel and verifying all the configurations, you can optionally publish the app for the new channel. Learn more about [Publishing your App](/ai-for-service/deployment/publishing-app).

## Additional Capabilities

### Metadata Transfer to Genesys Prebuilt Agent Transfer

The Platform supports metadata transfer from the Genesys Cloud CX Messaging channel to the Genesys Prebuilt Agent Transfer integration during agent handoff. This metadata can include customer details, conversation identifiers, account information, or any other bot slot values required in Genesys.

Use the `GenesysMetaData` object with `agentUtils.setMetaInfo` to pass context to agents during handoffs. This can be called anywhere the platform supports JavaScript.

Sample script (Script node):

```js theme={null}
let metaData = {
  CustomerID: "C12345",
  Intent: "BillingSupport",
  Language: "en",
  QueueName: "BillingQueue"
};

agentUtils.setMetaInfo("GenesysMetaData", JSON.stringify(metaData));
```

To enable metadata transfer successfully, configure and synchronize slot variables between the Platform and the Genesys Architect flow.

**Map slot variables in the Genesys Architect portal**

Whenever you add, remove, or rename slot variables (Metadata Transfer Key) in the Platform, complete the following steps:

1. Open the Genesys Architect flow in edit mode and keep the flow open.

2. In the Platform, navigate to the Genesys Cloud CX Messaging channel configuration.

3. Add or update the Metadata Transfer Keys (slot variables), and then save the configuration. When you save the configuration, the Platform publishes the updated Bot List Schema to Genesys. Example slot variables are`name` and `email`.

4. In the Genesys Architect portal, verify that the updated slots appear under the **Default Kore Agent Intent** action.

5. Map the slots to Architect flow variables. Example mappings are:

   * `name` → `Flow.CustomerName`
   * `email` → `Flow.CustomerEmail`

6. Update the **Set Participant Data** action to pass the mapped flow variables as Genesys Participant Data.

7. Publish the Architect flow after completing the slot mappings and Participant Data configuration.

8. Configure `agentUtils.setMetaInfo("GenesysMetaData", JSON.stringify(metaData));` in the script node, upon agentTransfer, metadata should reflect in participant details for a particular interaction in the Genesys portal.
