RingCentral Engage Integration¶
Description¶
The RingCentral Engage handover connector bridges Cognigy.AI and RingCentral Engage, enabling end users to connect with human agents working in a contact center that uses RingCentral Engage.
Prerequisites¶
- Access to RingCentral Engage
- Created Endpoint compatible with RingCentral Engage.
- Configuration steps must be performed by a user with the "Admin" role in RingCentral Engage.
- A community must already exist within the RingCentral Engage platform.
Configuration on the Handover Provider Side¶
1. Create API Token
- Go to the ADMIN section in the top bar of the RingCentral Engage platform.
- Select API access tokens from the left sidebar.
- Click + in the top-right corner to create a new API Access Token.
- Select an agent to handle user chats.
- Copy the token text displayed next to the API Access Token name. Save it for later use.
2. Create the Categories
- In the ADMIN section, go to Categories in the left sidebar.
- Click the + button to create a new category, for example,
Cognigy
, leave other fields as default, and save changes. - Create two subcategories,
Bot
andAgent
, withCognigy
as the parent category. - Double-click
Bot
orAgent
to open their configuration pages. Extract theCATEGORY_ID
from the URL, for example,xxxxx.engagement.dimelo.com/admin/categories/CATEGORY_ID/edit
). These are needed for the "Bot Category Id" and "Agent Category Id" fields in Cognigy.AI Handover Settings.
3. Create the Source
- Navigate to Sources in the ADMIN section sidebar.
- Create a new source of type
Engage Digital Source SDK
. - Set the Base URI field to
<endpoint-url>/handover/rce
. For example,https://endpoint-dev.cognigy.ai/handover/rce
). - In Message Settings, set the default category to the Bot category created earlier.
- Copy the API access token field value from the source into the Realtime Access Token field in Cognigy.AI Handover Settings.
- Copy the Realtime Endpoint URL from the Implementation Details section into the corresponding field in Cognigy.AI Handover Settings.
4. Configure Agent Permissions
- In the Agents overview, click the key icon for each agent who will use the source.
- Grant
read
andreply
permissions for the source.
5. Create the Webhook
- Go to Webhooks in the ADMIN section sidebar.
- Click the + button to create a new webhook.
- In the SETTINGS section:
- Select the previously created API Access Token.
- Set Active to on.
- Set URL to
<endpoint-url>/handover/rce
, for example,https://endpoint-demo.cognigy.ai/handover/rce
. - Enter a randomly generated value in the Secret field. Copy this value for the Webhook Secret field in Cognigy.AI.
- In the FILTERS section:
- Set Sources filtering strategy to No sources except.
- Select the previously created source.
- In the SUBSCRIPTIONS section, add the intervention.closed event.
- Update the Verification Token to match your Cognigy.AI environment's token. By default, the value is
cognigy123
. Save changes.
6. Get the Base API URL
Build the Base API URL by appending api
to your RingCentral Engage environment name, for example cognigy.engagement.dimelo.com
becomes cognigy.api.engagement.dimelo.com
.
Save it for later use as the Base API URL in Cognigy.AI.
7. Create Bot and Agent Identities
- Go to the Identities page in RingCentral Engage.
- Locate the Bot identity, check Controlled identity, and save. This ensures Bot messages appear on the right side.
- Locate the Agent identity, make it controlled, and assign it to agents via the Agents view by selecting the community and Agent user and saving it.
8. Set Up Folders for Chatting
- Go to Desks > Folders in RingCentral Engage.
- Create a folder filtering chats with the Agent category for easy agent access.
Configuration on the Cognigy.AI Side¶
1. Create a Handover Connector (Beta)
Note
This feature is in Beta. We encourage you to try it out and provide us with feedback.
- Go to Build > Handover Providers.
- Click + New handover Provider and select the RingCentral Engage as the handover provider.
- (Optional) Toggle the Forward Only Handover Conversations setting to choose whether to forward all conversations to the provider or only those that trigger a handover. If this setting is enabled, Cognigy.AI will forward only conversations where the handover event is triggered.
- (Optional) Toggle the Get Queue Updates setting to receive queue updates as events in the conversation.
- Configure the handover settings:
Setting | Description |
---|---|
API Access Token | Paste the token from the RingCentral Engage API Access Token. |
Bot Category ID | Enter the CATEGORY_ID for the Bot category. |
Agent Category ID | Enter the CATEGORY_ID for the Agent category. |
Realtime Access Token | Paste the token from the RingCentral Engage Source. |
Realtime Endpoint URL | Paste the URL from the RingCentral Engage Source. |
Webhook Secret | Paste the secret from the RingCentral Engage Webhook. |
Base API URL | Enter the Base API URL that you built previously. |
2. Add a Handover to Agent Node
- Create a Flow in Cognigy.AI with a Handover to Agent Node.
- Link the Endpoint to this Flow.
- When triggered, this Node escalates the conversation to RingCentral Engage, assigning it the
Agent
category and sending the Cognigy User Profile to RingCentral Engage. See Send User Profile.
After configuring the Handover Settings, test the setup: send a message to the Endpoint and make sure that a conversation appears in RingCentral Engage.
Additional Configuration¶
Apple Business Chat
Ensure human agents with API token ownership have reply
permissions on all non-custom SDK sources.
Send User Profile to RingCentral Engage
During a Handover event, the Contact Profile is sent to RingCentral Engage to provide helpful information to human agents.
Profile fields of Cognigy Profile and RingCentral Profile don't match exactly
The Cognigy.AI Contact Profile will be sent to RingCentral Engage and matched up with the object keys existing on RingCentral Engage. The information that wasn't matched will be added to the context_data
object.
- RingCentral Engage accepted User Profile Object structure sent during the handover.
- Cognigy Profile schema. Cognigy Profile Schema can be edited and additional fields with specific object keys added.
Get Queue Updates
The Get Queue Update setting enables the injection of queue updates into the conversation flow as events. This capability allows you to react to queue updates within your conversation.
In addition to enabling the Get Queue Update option, you need to configure the Lookup Node so that the handover type is selected as Queue. For more details, refer to the Handover Status section.
The queue updates from RingCentral Engage are visible in the input.data.handover
object.
The object contains the following properties:
estimatedWaitTime
— the approximate wait time for the user, measured in milliseconds.position
— the conversation's position in the queue.