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

# Genesys Integration

> Connect Jelou with Genesys to manage conversations and enable interoperability between both platforms.

Jelou integrates communication channels with Genesys, enabling users to:

* Manage conversations from Genesys using communication channels connected in Jelou.
* Transfer conversations and interaction context between Jelou and Genesys to ensure seamless and efficient support.
* Escalate conversations to Genesys agents when needed.
* Centralize conversation management in an integrated ecosystem between both platforms.

## Prerequisites

To use the Genesys integration, you need:

* An active **Enterprise** account on Jelou.
* The **Genesys** node enabled on your account.
* An active **Genesys Cloud** account with administrative permissions.
* An **OAuth** client with permissions to consume Genesys Cloud APIs.
* The channels and flows participating in the interoperability previously defined.

***

## Install the app

**1. Access the Brain module**

Log in to Jelou. Navigate to the **Brain** module and select the **Canvas** section.

![Canvas in Brain](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/canvas-brain.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=88cd56b4b2abe335f9f94856268629f7)

Brain module Canvas

**2. Create a flow and add the Genesys node**

Inside the Canvas, create a new flow according to your needs. For this example:

1. Add a **text node** and configure a welcome message for the channel.
2. From the node sidebar, drag the **Genesys node** into the flow.

> [!NOTE]
>
> It is recommended to add:
>
> * A confirmation message for successful transfers.
> * An error handling message in case of integration failure.

![Genesys node in Brain](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/nodo-en-brain.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=f6c9e33a217c538ff3511347327c5d9c)

Genesys node in Brain

**3. Configure roles in Genesys Cloud**

Before configuring the integration, verify that the required roles for the OAuth client exist.

Path: **Menu > User Management > Roles and Permissions**

The roles will allow the OAuth client to access the resources and APIs used by the integration.

![Roles in Genesys Cloud](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/roles-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=154d67d77aebc0a5bbed3d83c8f26e27)

Roles configured in Genesys Cloud

Select the corresponding role to review the enabled permissions.

Path: **Menu > User Management > Roles and Permissions > \[Role] > Edit Role**

> [!NOTE]
>
> The **Developer** role can be used with Genesys Cloud's default permissions.

![Role permissions in Genesys Cloud](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/permisos-rol-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=882baa53daf5cf48102c92406ca46d2e)

Role permission details

**4. Create the OAuth client**

Navigate to: **Menu > IT and Integrations > OAuth**

Create an OAuth client to authenticate the middleware or external service responsible for the interoperability with Genesys Cloud.

![OAuth client in Genesys Cloud](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/cliente-oauth-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=c47058a795d4bb8b91cc2f1e71fea704)

OAuth client

Once created, open the application to review its configuration.

Path: **Menu > IT and Integrations > OAuth > \[OAuth Client] > Edit Application**

Verify the following information:

* Application name.
* Authentication type.
* Grant Type.
* General configuration.

![OAuth client configuration](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/configuracion-oauth-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=3e666f8236e12a3133b4858054136c8d)

OAuth client configuration

**5. Assign roles to the OAuth client**

Select the **Roles** tab of the OAuth client.

Path: **Menu > IT and Integrations > OAuth > \[OAuth Client] > Roles**

Assign the previously configured roles so the OAuth client can consume the APIs required by the integration.

> [!WARNING]
>
> Verify that the divisions associated with the roles correspond to all interactions that the connector will use. Incorrect configuration can cause permission errors during operation.

![Roles assigned to the OAuth client](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/roles-oauth-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=3144ee1a8903a4678506469383835ecc)

Roles assigned to the OAuth client

**6. Create the Open Messaging integration**

Navigate to: **Menu > Digital and Telephony > Message > Platform Integrations**

Create an **Open Messaging** integration to enable message exchange between Genesys Cloud and Jelou.

![Open Messaging integration](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/open-messaging-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=0db32380a8f1819a986351f7ebef0e56)

Open Messaging integration

Open the created integration to review its configuration.

![Open Messaging details](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/detalle-open-messaging-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=c8d9e78513b768eaf4d4130f815def4d)

Open Messaging integration details

**7. Obtain the Integration ID**

Once the Open Messaging integration is created, identify the **Integration ID**.

This identifier is the unique value of the integration and will be used later to configure the Trigger.

> [!NOTE]
>
> The **Integration ID** is found at the end of the URL when you access the Open Messaging integration details.

**8. Create the Trigger**

Navigate to: **Menu > Orchestration > Triggers**

Create a Trigger that listens for events associated with Open Messaging conversations. This Trigger will automatically execute the Workflow when the configured event occurs.

![Configured Trigger in Genesys](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/trigger-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=6fc9c12afdbf8c426da6232863e2713f)

Configured Trigger

**9. Configure the Trigger condition**

Open the created Trigger and configure a condition using the **Integration ID** obtained earlier.

This condition ensures that only events corresponding to the configured integration are executed.

![Trigger condition](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/condicion-trigger-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=7c954940edaabbcd44333855add07b1c)

Trigger condition

> [!NOTE]
>
> The Trigger must execute the Architect Workflow responsible for notifying Jelou that the interaction in Genesys has ended.

**10. Create the Workflow in Architect**

Navigate to: **Menu > Orchestration > Architect > Flows**

Create a Workflow that receives the information sent by the Trigger. This Workflow will be responsible for processing the conversation data and executing the Data Action that notifies Jelou the interaction has ended.

![Workflow in Architect](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/workflow-architect-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=7f1b8f7b6c2012b2ec49f8d5cfd03bcc)

Workflow in Architect

**11. Configure the Workflow variables**

Inside the Workflow, configure the variables that will receive the information sent from the Trigger.

These variables will allow you to identify the conversation and build the request to the Data Action.

![Workflow variables](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/variables-workflow-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=5e1f811fbe624b888d03383412e65e60)

Workflow variables

**12. Invoke the Data Action**

Inside the Workflow, add a task to execute the **Data Action** responsible for notifying Jelou that the interaction in Genesys has ended.

![Data Action invocation](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/invocar-data-action-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=9111eb7af5f63bdb77a127a4ae1e7103)

Data Action invocation

**13. Create the Data Action**

Navigate to: **Menu > IT and Integrations > Data Actions**

Create a new Data Action that will be used by the Workflow.

![Data Action in Genesys](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/data-action-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=f8a9a77e81933b1d38492fa67278888f)

Data Action

**14. Configure the Data Action request**

Open the created Data Action and configure the request to the Jelou webhook.

This Data Action notifies Jelou that the interaction in Genesys Cloud has ended. Upon receiving it, Jelou resumes control and the channel continues serving the end user, without them noticing the change.

Path: **Menu > IT and Integrations > Data Actions > \[Data Action] > Configuration**

**Method and endpoint**

| Field | Value |
| - | - |
| HTTP method | `POST` |
| Request URL Template | `https://chatbot.jelou.ai/v1/genesys/webhook` |

**Headers**

| Header | Value |
| - | - |
| `Content-Type` | `application/json` |

**Request body**

The webhook expects an Open Messaging event with the following structure:

```json theme={null}
{
  "id": "EVENT_ID",
  "type": "Event",
  "direction": "Outbound",
  "conversationId": "CONVERSATION_ID",
  "channel": {
    "from": { "id": "FROM_ID" },
    "to": { "id": "CUSTOMER_ID", "idType": "Phone" }
  },
  "events": [
    { "eventType": "CustomerEnd" }
  ]
}
```

**Field reference**

| Field | Type | Description |
| - | - | - |
| `id` | string | Unique identifier of the event being sent. |
| `type` | string | Payload type. To notify the end of the interaction, it is always `Event`. |
| `direction` | string | Event direction relative to Genesys Cloud. Must be `Outbound` (it leaves Genesys toward Jelou). |
| `conversationId` | string | Identifier of the conversation in Genesys Cloud. This is the value Jelou uses to identify the active transfer. |
| `channel.from.id` | string | Identifier of the Genesys participant emitting the event (for example, the agent or the Architect flow). |
| `channel.to.id` | string | Identifier of the end user in the channel. On WhatsApp it is the phone number in E.164 format. |
| `channel.to.idType` | string | End-user identifier type. For WhatsApp channels use `Phone`. |
| `events[].eventType` | string | Event to notify. Use `CustomerEnd` to indicate the interaction in Genesys Cloud has ended and control returns to the channel. |

> [!NOTE]
>
> The `direction` field is named from the Genesys Cloud point of view: `Outbound` means the event **leaves Genesys** toward Jelou. The webhook rejects payloads marked as `Inbound`.

**Variable mapping**

In the **Input Contract** section, declare the variables the Data Action will receive from the Workflow and reference them in the body using the `${input.variableName}` syntax. The names in the example are illustrative: use the ones you defined in your Workflow.

```json theme={null}
{
  "id": "${input.eventId}",
  "type": "Event",
  "direction": "Outbound",
  "conversationId": "${input.conversationId}",
  "channel": {
    "from": { "id": "${input.fromId}" },
    "to": { "id": "${input.customerId}", "idType": "Phone" }
  },
  "events": [
    { "eventType": "CustomerEnd" }
  ]
}
```

> [!WARNING]
>
> The `conversationId` must be the same one Genesys Cloud assigned to the conversation transferred from Jelou. If it does not correspond to an active transfer, Jelou cannot identify it and control will not be returned to the channel.

![Data Action configuration](https://mintcdn.com/jelouai/3cRw5CsUakc9TUzc/assets/images/connect/genesys/configuracion-data-action-3x.png?fit=max\&auto=format\&n=3cRw5CsUakc9TUzc\&q=85\&s=d26fe0fb2eb9c850446ff36f8c89ce1b)

Data Action configuration

***

## Configure the app

After completing the configuration in Genesys Cloud:

**1. Return to the Brain module**

Go back to the **Brain** module and select the **Genesys** node within the flow.

**2. Configure the interoperability**

Complete the node configuration with the corresponding integration parameters.

Verify that the connection to Genesys Cloud is successful before continuing.

**3. Save and publish**

When the configuration is ready, **save and publish** the flow.

***

## Use the app

Once the integration is configured:

* Conversations can be automatically transferred between Jelou and Genesys Cloud.
* Channels created in Jelou will automate initial customer support.
* Agents can continue the conversation directly from Genesys Cloud.
* When the interaction ends in Genesys Cloud, the Trigger and the Workflow notify Jelou and the channel resumes the conversation with the end user.
* Conversation events will be automatically processed through Open Messaging, Trigger, Workflow, and Data Actions.

> [!NOTE]
>
> No additional manual actions are required once the automation is published.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.