Connect Genesys Cloud to Conversation Intelligence

Overview

Heap Conversation Intelligence connects to your Genesys Cloud organization through the OAuth 2.0 client credentials grant. The integration uses read-only access to ingest and analyze voice conversations and related data, including:

  • Voice conversations and call recordings
  • Call metrics, including talk time, hold time, and after-call work
  • Queues and wrap-up codes
  • Information about the agents who handled each call

The integration doesn’t create, modify, or delete data in your Genesys Cloud organization.

Before you begin

Make sure you have:

  • Administrator access to Genesys Cloud
  • Permission to create an OAuth client, including OAuth > Client > Add
  • Access to the Conversation Intelligence onboarding wizard
  • The Genesys Cloud region where your organization is hosted
  • A plan for tagging the calls you want Conversation Intelligence to analyze
  • Call recording enabled for the calls you want to analyze

By default, Conversation Intelligence ingests only calls with the csq_eligible external tag. If you don’t configure this tag before connecting Genesys Cloud, no calls are ingested even if the connection succeeds. If you can’t tag your calls, contact your Heap Customer Success Manager before connecting to discuss ingesting all calls or limiting ingestion to selected queues.

Setup

Step 1: Create a role for Conversation Intelligence

You can skip this step by assigning the OAuth client the built-in Supervisor role. However, this role grants broader permissions than Conversation Intelligence requires. We recommend you use a dedicated role for the OAuth client.

  1. Log in to Genesys Cloud as an Administrator.
  2. Go to Menu > User Management > Roles and Permissions, then select Add Role.
  3. Enter a clear name, such as CSQ Conversation Intelligence Integration.
  4. Optionally, add a description.
  5. On the Permissions tab, select the permissions listed in the Permissions section below.
  6. Select Save.

For more information, see the Genesys Cloud guide to adding roles.

Step 2: Create an OAuth client in Genesys Cloud

  1. Go to Menu > IT and Integrations > OAuth, then select Add Client.
  2. Enter a clear App Name, such as `CSQ CI Integration`.
  3. Optionally enter a Description.
  4. Under Grant Types, select Client Credentials.
  5. Turn on the Assigned toggle for the role you created in Step 1.
  6. Select Save.
  7. Copy the Client ID and Client Secret, and store them securely.

For more information, see the Genesys Cloud guide to creating an OAuth client.

Genesys Cloud displays the client secret only once, when you create the OAuth client. Copy and securely store it immediately.

Step 3: Tag the calls Conversation Intelligence should analyze

Set the conversation's external tag to csq_eligible on every call you want Conversation Intelligence to analyze.

In Genesys Cloud, set the external tag in your Architect call flow using the Set External Tag action. Set the tag while the call is active. A tag added after the conversation ends isn’t reflected in analytics.

For more information about eligibility settings, see The CSQ eligible tag: choose which conversations to ingest.

If you cannot tag your calls, contact your Heap Customer Success Manager before connecting. Conversation Intelligence can instead ingest all calls, optionally limited to selected queues.

Step 4: Connect Genesys Cloud in the Conversation Intelligence onboarding wizard

  1. Open the Conversation Intelligence onboarding wizard.
  2. Select Genesys from the list of integration providers.
  3. Enter your Client ID and Client Secret.
  4. Select the Genesys Cloud region where your organization is hosted, such as us_east_1 or eu_west_1.
  5. Select Connect platform.

After the connection checks pass, Heap can securely access the approved Genesys Cloud data needed for ingestion and analysis. For more information, see Permissions.

Genesys ingestion scope and eligibility

Conversation Intelligence ingests voice conversations only.

csq_eligible filter

By default, Conversation Intelligence queries only conversations whose external tag equals csq_eligible.

On request, your Customer Success Manager can turn off this filter. Conversation Intelligence then ingests all calls, subject to the exclusions described below.

Calls that aren't ingested

Conversation Intelligence skips:

  • Calls without a recording
  • Calls whose recording cannot be retrieved because the recording batch download reports an error
  • Calls without metrics in conversation analytics

API access

Conversation Intelligence calls the Genesys Cloud API for your selected region:

https://api.<region host>/api/v2/…

Apart from the OAuth token request and the read-only query and batch-download jobs, all other API calls are GET requests.

Purpose: Request an OAuth 2.0 client credentials token

Endpoint: POST https://login.<region host>/oauth/token

Purpose: Discover conversations in a time window

Endpoints:

POST /analytics/conversations/details/jobs

GET /analytics/conversations/details/jobs/{jobId}

GET /analytics/conversations/details/jobs/{jobId}/results

Purpose: Read call metrics, including talk time, hold time, and after-call work

Endpoint: GET /analytics/conversations/details?id=...

Purpose: Check a sample of recent tagged calls during onboarding

Endpoint: POST /analytics/conversations/details/query

Purpose: Read recording metadata

Endpoint: GET /conversations/{conversationId}/recordingmetadata

Purpose: Retrieve recording download links

Endpoints:

POST /recording/batchrequests

GET /recording/batchrequests/{jobId}

Purpose: Read queue names

Endpoint: GET /routing/queues

Purpose: Read wrap-up code names

Endpoints:

GET /routing/wrapupcodes

GET /routing/wrapupcodes/{codeId}

Purpose: Read agent names and email addresses

Endpoints:

GET /users/{userId}

GET /users

Permissions

The role assigned to the OAuth client must be able to read the conversations and recordings you want analyzed across every queue whose calls you want scored.

analytics:conversationDetail:view

Analytics > Conversation Detail > View

Reads voice conversations and their metrics.

recording:recording:view

Recording > Recording > View

Reads recording metadata and downloads call recordings.

routing:queue:view

Routing > Queue > View

Resolves queue IDs into names and enables filtering by queue.

routing:wrapupCode:view

Routing > Wrapup Code > View

Resolves wrap-up code IDs into their labels.

directory:user:view

Directory > User > View

Retrieves agent information.

If your organization marks recordings as containing sensitive data, also add:

recording:recording:viewSensitiveData.

Recording > Recording > ViewSensitiveData

Without this permission, Genesys Cloud excludes those recordings from batch downloads, and Conversation Intelligence skips the corresponding calls.

Each permission is separate in Genesys Cloud. A valid OAuth token does not automatically provide access to queues, wrap-up codes, conversations, or recordings.

During onboarding, Conversation Intelligence checks each permission independently. It obtains an OAuth token, reads queues, wrap-up codes, and users, and fetches a sample of recent csq_eligible calls.

If no tagged call exists yet, the onboarding wizard asks you to run the check again after tagged calls exist.

Fields Conversation Intelligence reads

Conversation Intelligence reads the following fields from Genesys Cloud.

Conversation analytics

conversationId: Conversation ID

conversationStart: Conversation start time

conversationEnd: Conversation end time

originatingDirection: Inbound or outbound

externalTag: Used for csq_eligible filtering when tag filtering is enabled

participants[].purpose: Used to identify agent participants

participants[].userId: Agent user ID

participants[].sessions[].sessionId: Session ID

participants[].sessions[].peerId: Peer ID

participants[].sessions[].segments[].queueId: Queue ID

participants[].sessions[].segments[].segmentType: Segment type

participants[].sessions[].segments[].wrapUpCode: Wrap-up code

Call metrics

tTalkComplete: Talk time

tHeldComplete: Hold time

tAcw: After-call work time

Recording metadata

id: Recording ID

sessionId: Session ID

startTime: Recording start time

endTime: Recording end time

Recording batch downloads

conversationId

recordingId

resultUrl: Short-lived signed download link

expectedResultCount

resultCount

errorCount

errorMsg

Queue, wrap-up code, and user enrichment

Queue

  • id
  • name

Wrap-up code

  • id
  • name

User

  • id
  • name
  • email
Last updated
Powered by Zendesk