Skip to main content
Skip table of contents

OCP miniApps® integration with Genesys

Overview

This guide explains how Omilia Cloud Platform (OCP) integrates with the Genesys Cloud Platform. It aims to provide an in-depth understanding of Omilia’s implementation on Genesys Architect Flow and how it works.

Note that this guide does not cover Voice Biometrics which is described separately:

Omilia and Genesys Cloud Architecture

The below figure shows the way Genesys Cloud and OCP Conversational Voice® are integrated to cover the customer requirements.

Additional setups

Check that the phone number you want to use has already been added to the Genesys DID (Direct Inward Dialing) Number. If not, you must add it. This is mandatory for the next steps.

Integration steps

You can find a comprehensive integration walkthrough here. Each step is detailed below for your convenience.

  1. Sign up for OCP®

  2. Integrate Genesys API with OCP® API

  3. Create your first miniApp

  4. Create a Genesys Queue

  5. Create a Genesys Cloud Trunk

  6. Create a Genesys Cloud Script

  7. Create a Genesys Cloud Architect Flow

  8. Set UUI data

  9. Configure Call Routing

Step 1. Sign up for OCP

Sign up for OCP® as described in the Getting Started with OCP article.

Step 2. Integrate Genesys API with OCP API

To integrate Genesys with OCP, contact Omilia Service Desk and provide the following details. This information is essential for adding your Genesys tenant to the OCP system:

  • Genesys Organization ID (Alphanumeric value in the format xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)

  • Genesys Cloud region

  • OCP Instance (US1, US2, EU1)

  • OCP group name

  • Genesys OAuth Client API Key

  • Genesys OAuth Client API Secret Key (treat this information as sensitive)

Omilia Support Team will use this data to complete the API integration.

Step 3. Create your first miniApp

Follow the instructions to create your first miniApp.

Step 4. Create a Genesys Queue

To create a queue in Genesys, follow the instructions below:

  1. Log in to your Genesys account.

  2. Navigate to the Admin tab and select Contact CenterQueues.

genesys_queues.png
  1. In the page that opens, click the +Create Queue button.

create_queue.png
  1. In the Create Queue dialog box that appears on the right, fill in the fields as described below:

create_queue_dialog.png

  • Name: Enter the name of the queue, for example, [Demo] OCP Queue.

  • Division: Select Home from the drop-down list.

  • Copy settings and members from: Leave this field blank.

  • Peer ID: Leave this field blank.

  1. Click Save. The created queue will appear in the list.

queue_created.png
  1. Click on the queue you have just created and go to Members → Users.

members_tab.png
  1. Click Add User.

  2. In the dialog box that opens, select the agent you want to add to the queue, and click Add Selected. To locate the needed agent, use the search field to search by Name, Email, Title or Department.

add_selected.png
  1. The selected agent will be added to the queue and will start receiving calls on Genesys. You can add multiple agents to the queue.

  2. After that, navigate to the General tab and mark the Enable Manual Assignment checkbox.

ma_checkbox.png
  1. Click Save to finalize the settings.

Step 5. Create a Genesys Cloud Trunk

Set up an External Trunk

Before proceeding with the instructions below, ensure that the BYOC (Bring Your Own Carrier) feature is enabled for your OCP organization. If BYOC is not enabled, reach out to the Omilia Service Desk for assistance.

For further details about BYOC, please refer to the following article by Genesys:
About BYOC Cloud - Genesys Cloud Resource Center

To set up the required Trunk, follow the guidelines below:

  1. Navigate to the Admin tab and select TelephonyExternal Trunks.

external_trunk.png
  1. In the page that opens, click + Create New.

create_new_trunk.png
  1. Fill in the fields as described below:

name_type_protocol.png
  • External Trunk Name: Enter a descriptive name for the external trunk you are creating.

  • Type: Select BYOC PBX → Generic BYOC PBX from the list.

  1. After you have selected the type, an extended list of configuration options will open. Configure the following two options:

  • Trunk State: Set to In Service.

  • Protocol: select TLS from the list.

trunk_state.png
  1. Now, navigate to Inbound SIP routing and enter Termination Identifier in the following format: {orgId}.miniapps.ocp.ai

termination_identifier.png
  1. After that, navigate to Outbound and configure the following options as described below.

outbound.png
  1. Next, navigate to Caller ID and configure the following options as described below.

caller_id.png
  • Prioritized Caller Selection: Make sure the priority has been set as follows:

    • This Trunk

    • Call Source (Queue / Campaign / User DID)

  1. After that, navigate to SIP Access Control and configure the following options as described below.

sip_access_control.png
  • Allow the Following Addresses: Enter IPs of each OCP environment. You can find the IPs by using NsLookup to the FQDN of each OCP environment. For more information, refer to Environments and FQDNs / DNS records for SIP peering.
    For example:

    CODE
    nslookup sip1.demo.ocp.ai
  1. Now, navigate to the Protocol section and click on it to expand.

protocol.png
  1. In the expanded section, navigate to User to User Information (UUI) and configure the following options as described below.

uui.png
  • UUI Passthrough: Set to Enabled.

  • Encoding Format: Select Ascii from the list.

  1. Under the Protocol section, navigate to Transfer and set the following options as described below.

transfer.png
  • Take Back and Transfer: Set to Enabled.

 12. Click the Save External Trunk button when finished.

save_external_trunk.png

Set up your Number Plan

  1. Navigate to the Admin tab and select TelephonySites.

telephony-sites.png
  1. In the page that opens, select the site you want to use.

This should be the default site of your environment. Otherwise, the integration could not work properly!

sites_list.png
  1. Navigate to the Number Plans tab.

number_plans_tab.png
  1. Click +New Number Plan, and fill in the fields as shown in the image below.

image-20240606-075811.png
  • Number Plan Name: [ccaas] OCP Number Plan

  • Match Type: Select Number List from the drop-down.

  • Numbers: 1002001

  • Classification: [ccaas] OCP Number Plan

  1. Click Save Number Plans when finished.

Keep in mind that the Numbers value must match the Number specified in the Flow inside the Transfer to Number component.

  1. Next, navigate to the Outbound Routes tab and click +New Outbound Route.

outbound_routes.png
  1. Fill in the fields as shown in the image below. 

image-20240606-075912.png
  • Outbound Route Name: Enter [ccaas] OCP Outbound Route.

  • State: Select Enabled.

  • Classification: Select the Number Plan you have created previously.

  • Distribution Pattern: Select Sequential.

  • External Trunks: Select the External Trunk you have create previously.

  1. Click Save Outbound Routes when finished.

Step 6. Create a Genesys Cloud Script

At this step you have to create a custom UI dashboard for your agents. For manual integration, you will need the script file provided by Omilia.

  1. Download the following template script file Standard Script.script and name it as [Omilia] OCP Script.script

For Agent-side voice biometric setup, utilize the following script:

  1. Navigate to the Admin tab and select Contact CenterScripts.

admin_scripts.png
  1. On the page that opens, click the Import button.

import_script.png
  1. In the dialog box that opens, upload the .script file that you have previously downloaded.

import_script_dialog.png
  1. Click Import.

  2. The uploaded script will be added to the scripts list as shown below. Click on [Omilia] OCP Script.script to open its settings.

scripts_list.png
  1. In the settings page that opens, click Script and select Publish.

script_settings.png

Step 7. Set up a Genesys Cloud Architect Flow

Create a miniApp flow

Next, you should create the miniApp flow. To create a miniApp flow, follow the guidelines below:

  1. Download the following template flow file Standard Inbound Flow.i3InboundFlow and name it as [Omilia] OCP Flow.

  1. Navigate to the Admin tab and select ArchitectArchitect.

admin_architect.png
  1. In the page that opens, click the +Add button.

add_architect.png
  1. In the dialog box that opens, enter the name of the flow as [Omilia] OCP Flow and click Create Flow.

flow_dialog.png
  1. You will be forwarded to the settings page of the flow you have just created.

flow_settings.png
  1. Click the drop-down Arrow near the Save button and select Import.

flow_import.png
  1. In the dialog box that opens next, upload the Flow template that you have previously downloaded.

flow_upload_dialog.png
  1. Once the flow is uploaded, navigate to the Starting Menu tab → Main Menu and select miniApps POC. The imported flow will open, and two components (a script and a queue) will appear as missing.

image-20240605-143230.png

Set UUI Data

Next, you have to update the ID of the miniApp where the flow is transferred. To do this, follow the instructions below:

  1. Click on the Set UUI Data action, and then click on the There are 4 items configured setting in the right-side corner.

set_uui_data.png
  1. In the dialog box that opens, fill in the fields as described below:

string_builder_dialog.png
string_builder_2.png
  • :1_one_circle_gray: Text: Enter your OrgID.

  • :3_three_circle_gray: Text: Enter your miniApp ID that was sent to you (or created by you as described in the MiniApps Integration Process guide).

  • :4_four_circle_gray: Expression: Insert a key-value pair after @locale:en-US.

  • To add multiple key-value pair, use a comma separator.

  • In case the ANI and DNIS do not appear on the SIP headers, use the following syntax to add them: 
    ToString("@locale:en-US,"+"Ani:"+ Replace(Call.Ani, "tel:", "") + "," +"Dnis:"+ Call.CalledAddressOriginal)

  1. Click Save.

Configure Transfer to YesNo miniApp

As the next step, you need configure Transfer to YesNo miniApp. To do so, proceed as follows:

  1. Click on the Transfer to YesNo miniApp action and set the Number value to 1002001 for US1 (in customer projects this may differ).

number_ysno.png

Play Audio

As the next step, configure the audio output that will be playing during a failure. To do so, click on the Play Audio action and configure Audio message.

play_audio_config.png

Configure Set Screen Pop

To configure the Set Screen Pop action, click on the Set Screen Pop action and fill in the fields as described below:

screen_pop.png
  • Screen Pop Script: Select [Omilia] OCP script from the drop-down list.

  • IntentStatus: Enter Flow.result as an expression.

  • Intent: Enter Flow.inputValue as an expression.

expression.png

Configure Transfer to [Omilia] OCP Queue

To configure Transfer to [Omilia] OCP Queue, follow the steps below:

  1. Click on the Transfer to [Omilia] OCP Queue action and fill in the fields as described below:

transfer_to_queue.png
  • Queue: Select [Omilia] OCP Queue from the drop-down list.

  1. Click Validate.

validate.png
  1. Click Save, then click Publish.

save_publish.png

Step 8. Create Your Genesys Cloud Call Routing

At this step, you need to configure a Call routing that establishes the connection between the phone number and the flow. To create the required Call Routing setup, follow the guidelines below:

  1. Navigate to the Admin tab and select RoutingCall Routing.

call_routing.png
  1. Click the +Add button.

add_call_routing.png
  1. In the page that opens, fill in the fields as described below:

  • Name: Enter [Omilia] OCP Call Routing.

  • Division: Select Home from the drop-down list.

  • Route to: Select a flow from the drop-down list.

  • Inbound Numbers: Select the phone number you want to use.

If the Inbound Numbers dropdown is empty, contact GENESYS to ask for a new or spare working number.

  1. Click Create to finalize the setup.

Step 9. Test your integration

To test you integration, call the number you used in Step 8. Create Your Genesys Cloud Call Routing

miniApp Session Responses

When a dialog in OCP ends, it will post back the miniApp results to Genesys. The specification of the miniAppResult output can be found in the miniAppResult section.Щьшд

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.