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

<Steps>
  <Step title="Access the Brain module">
    Log in to Jelou. Navigate to the **Brain** module and select the **Canvas** section.

    <Frame caption="Brain module Canvas">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/canvas-brain.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=bb18fb557efb8b17210c948e84d072a0" alt="Canvas in Brain" width="1024" height="483" data-path="assets/images/connect/genesys/canvas-brain.png" />
    </Frame>
  </Step>

  <Step title="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 bot.
    2. From the node sidebar, drag the **Genesys node** into the flow.

    <Info>
      It is recommended to add:

      * A confirmation message for successful transfers.
      * An error handling message in case of integration failure.
    </Info>

    <Frame caption="Genesys node in Brain">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/nodo-en-brain.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=2cf6b51174afb8ce4dc4586384ad5b78" alt="Genesys node in Brain" width="1024" height="390" data-path="assets/images/connect/genesys/nodo-en-brain.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Frame caption="Roles configured in Genesys Cloud">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/roles.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=3719660aae53aa56005dfa6e91fa88ce" alt="Roles in Genesys Cloud" width="1024" height="159" data-path="assets/images/connect/genesys/roles.png" />
    </Frame>

    Select the corresponding role to review the enabled permissions.

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

    <Info>
      The **Developer** role can be used with Genesys Cloud's default permissions.
    </Info>

    <Frame caption="Role permission details">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/permisos-rol.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=b6b16ee71ad38579475b51220e3ee3e9" alt="Role permissions in Genesys Cloud" width="1024" height="246" data-path="assets/images/connect/genesys/permisos-rol.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Frame caption="OAuth client">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/cliente-oauth.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=5ddc9249accfc57ad924506d462d1781" alt="OAuth client in Genesys Cloud" width="1024" height="204" data-path="assets/images/connect/genesys/cliente-oauth.png" />
    </Frame>

    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.

    <Frame caption="OAuth client configuration">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/configuracion-oauth.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=1cc89dc57ddd4eca6ac0e0d268f340b9" alt="OAuth client configuration" width="1024" height="357" data-path="assets/images/connect/genesys/configuracion-oauth.png" />
    </Frame>
  </Step>

  <Step title="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.
    </Warning>

    <Frame caption="Roles assigned to the OAuth client">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/roles-oauth.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=e2fd6b24cab06236dacfc4cbf7df6a97" alt="Roles assigned to the OAuth client" width="1024" height="185" data-path="assets/images/connect/genesys/roles-oauth.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Frame caption="Open Messaging integration">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/open-messaging.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=ae488657fdfeefc41c8f1b4688fe3853" alt="Open Messaging integration" width="1024" height="171" data-path="assets/images/connect/genesys/open-messaging.png" />
    </Frame>

    Open the created integration to review its configuration.

    <Frame caption="Open Messaging integration details">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/detalle-open-messaging.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=063d80aadd2e04cf3d6f001cc868f8d2" alt="Open Messaging details" width="1024" height="303" data-path="assets/images/connect/genesys/detalle-open-messaging.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Info>
      The **Integration ID** is found at the end of the URL when you access the Open Messaging integration details.
    </Info>
  </Step>

  <Step title="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.

    <Frame caption="Configured Trigger">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/trigger.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=7769392004c8f70dacaf654e398088f0" alt="Configured Trigger in Genesys" width="1024" height="180" data-path="assets/images/connect/genesys/trigger.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Frame caption="Trigger condition">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/condicion-trigger.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=f43ec7217f9d971bf73db2efa18525e0" alt="Trigger condition" width="1024" height="510" data-path="assets/images/connect/genesys/condicion-trigger.png" />
    </Frame>

    <Info>
      The Trigger must execute the Architect Workflow responsible for processing the conversation information and performing the corresponding closure.
    </Info>
  </Step>

  <Step title="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 configured actions.

    <Frame caption="Workflow in Architect">
      <img src="https://mintcdn.com/jelouai/40Uc9hrf7wX23vCh/assets/images/connect/genesys/workflow-architect.png?fit=max&auto=format&n=40Uc9hrf7wX23vCh&q=85&s=872037ecefcadadd14eafc286a675b3c" alt="Workflow in Architect" width="1024" height="163" data-path="assets/images/connect/genesys/workflow-architect.png" />
    </Frame>
  </Step>

  <Step title="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.

    <Frame caption="Workflow variables">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/variables-workflow.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=0ba0eecc1e182b5a9d8fb6c70548c56b" alt="Workflow variables" width="1024" height="356" data-path="assets/images/connect/genesys/variables-workflow.png" />
    </Frame>
  </Step>

  <Step title="Invoke the Data Action">
    Inside the Workflow, add a task to execute the **Data Action** responsible for closing the conversation.

    <Frame caption="Data Action invocation">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/invocar-data-action.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=028be995f0f06b9d3b9fd2d005e9bf5e" alt="Data Action invocation" width="1024" height="461" data-path="assets/images/connect/genesys/invocar-data-action.png" />
    </Frame>
  </Step>

  <Step title="Create the Data Action">
    Navigate to: **Menu > IT and Integrations > Data Actions**

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

    <Frame caption="Data Action">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/data-action.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=c54b8bde111c5fa52e952a875a0842bb" alt="Data Action in Genesys" width="1024" height="145" data-path="assets/images/connect/genesys/data-action.png" />
    </Frame>
  </Step>

  <Step title="Configure the Data Action request">
    Open the created Data Action and configure:

    * HTTP method.
    * Endpoint.
    * Headers.
    * Request body.
    * Variable mapping.

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

    <Frame caption="Data Action configuration">
      <img src="https://mintcdn.com/jelouai/z8zcmRYANDNTfItb/assets/images/connect/genesys/configuracion-data-action.png?fit=max&auto=format&n=z8zcmRYANDNTfItb&q=85&s=5cc45d2fe259a5fda477a3ad2b7e264b" alt="Data Action configuration" width="1024" height="670" data-path="assets/images/connect/genesys/configuracion-data-action.png" />
    </Frame>
  </Step>
</Steps>

***

## Configure the app

After completing the configuration in Genesys Cloud:

<Steps>
  <Step title="Return to the Brain module">
    Go back to the **Brain** module and select the **Genesys** node within the flow.
  </Step>

  <Step title="Configure the interoperability">
    Complete the node configuration with the corresponding integration parameters.

    Verify that the connection to Genesys Cloud is successful before continuing.
  </Step>

  <Step title="Save and publish">
    When the configuration is ready, **save and publish** the flow.
  </Step>
</Steps>

***

## Use the app

Once the integration is configured:

* Conversations can be automatically transferred between Jelou and Genesys Cloud.
* Bots created in Jelou will automate initial customer support.
* Agents can continue the conversation directly from Genesys Cloud.
* Conversation events will be automatically processed through Open Messaging, Trigger, Workflow, and Data Actions.

<Info>
  No additional manual actions are required once the automation is published.
</Info>
