Skip to main content

Optiflow CloudSync CRM Integration Guide

About this guide

This guide describes the system integration between the Optiflow system and the CloudSync CRM system.


🔗 Optiflow-CloudSync CRM integration​

In the Optiflow–CloudSync CRM integration, CloudSync supplies customer engagement, ticket data, and real-time visibility updates from the CloudSync CRM system to the Optiflow system.

Topics

Overview​

The Optiflow–CloudSync CRM integration uses a push method, where data is pushed to Optiflow by CloudSync. No data is sent from Optiflow back to CloudSync.

Within CloudSync, the objects from which data is pushed for the integration include:

  • ChatSession
  • SupportTicket
  • VideoSession
  • UserPresence

Optiflow also requests updates for mapping purposes to ensure usernames, statuses, and groups remain synchronized for ease of use and setup.

This integration supports users of the CloudSync Service Hub, utilizing Chat Sessions, Video Support, and Support Ticket channels. The real-time monitoring feed leverages CloudSync’s Omnichannel presence to display active sessions in Optiflow dashboards.

note

The Optiflow–CloudSync CRM integration uses the available CloudSync API suite and does not require installing any packages in your CloudSync environment. Some minor setup in CloudSync is required to provide authentication and populate the APIs with the required data.

Integration feeds​

The three types of feeds available in the Optiflow–CloudSync CRM integration include:

  • Customer Interaction Metrics (CIM): Provides details about customer engagement across channels.
  • Support Ticket Trends (STT): Supplies historical data about ticket volumes and resolution times (used for forecasting and resource planning).
  • Live Session Monitoring (LSM): Provides real-time visibility into active chat or video sessions (used for operational dashboards).

Configure adapters for feeds​

Configure the relevant adapters in Optiflow to receive the feeds you want:

CloudSync → Optiflow FeedOptiflow AdapterPurpose
Customer Interaction Metrics (CIM)CIM AdapterHistorical interaction analytics
Support Ticket Trends (STT)STT AdapterTicket volume and resolution insights
Live Session Monitoring (LSM)LSM AdapterReal-time session visibility

Target audience​

This guide is intended for technical users who want to integrate Optiflow with CloudSync CRM using the platform’s supported APIs, authentication workflows, and configuration tools.

Data retrieval flow​

In the Optiflow–CloudSync CRM integration, CloudSync CRM pushes new events (Push Topics, Change Data Capture, or User Data) to the CloudSync CRM Adapter in the Optiflow system.

The CloudSync CRM Adapter:

  • Posts real-time data directly to the Live Session Monitoring (LSM) API.

  • Aggregates trend and analytical data through a Data Processor, which posts this data to the Support Ticket Trends (STT) API and the Customer Interaction Metrics (CIM) API.

The following diagram illustrates this data flow, and the accompanying table describes each numbered step.


Optiflow–CloudSync integration data flow


StepSourceDestinationDescription
1Push Topics, Change Data Capture, and User DataCloudSync CRM AdapterCloudSync CRM pushes new events (Push Topics, Change Data Capture, and User Data) to the CloudSync CRM Adapter in the Optiflow system. The CloudSync CRM Adapter in Optiflow Cloud receives these events and checks to make sure all statuses, groups, and user IDs are recognized. If any IDs are not mapped, the adapter calls the required REST API to retrieve the correct mappings.
2CloudSync CRM AdapterData ProcessorThe CloudSync CRM Adapter in Optiflow Cloud gathers events for the historical data and posts the data to the Data Processor for aggregation.
3CloudSync CRM AdapterLive Session Monitoring (LSM) APIThe CloudSync CRM Adapter posts real-time session monitoring directly to the Live Session Monitoring (LSM) API, as the data is received.
4Data ProcessorSupport Ticket Trends (STT) APIThe Data Processor aggregates ticket trends in 15-minute intervals, and posts to the Support Ticket Trends (STT) API.
5Data ProcessorCustomer Interaction Metrics (CIM)The Data Processor aggregates interaction metrics in daily intervals, and posts to the Customer Interaction Metrics (CIM) API.

Customer onboarding​

The customer onboarding tasks for the Optiflow–CloudSync CRM integration are done by Optiflow and the customer.

Most of the setup for this integration is done by Optiflow. However, there are required setup tasks that the customer needs to do in CloudSync, including providing authentication for the API calls, and setting up the data that is pushed to the CloudSync CRM adapter in Optiflow. This includes, but is not limited to, the connected app, push topics, and change data capture setup.

The workflow includes the following steps:

StepResponsibleNameDescription
1OptiflowInternal AuthenticationOptiflow sets up the internal cloud authentication tokens to ensure that the adapter can communicate with the Optiflow tenant.
2CustomerCustomer CloudSync CRM SetupThe customer sets up the access flow from their CloudSync tenant to the Optiflow adapter. In addition, they enable the push topics and change data captures required for the desired channels.
3OptiflowDeploy CloudSync CRM AdapterOptiflow enables the adapter, and populates it with the required parameters to supply the data points required for the Optiflow tenant.

🛠️ Customer CloudSync CRM setup​

The customer administrator needs to set up the access flow from their CloudSync tenant to the Optiflow adapter.

Before you begin

Obtain a public certificate file named cloudsync.crt from an Optiflow engineer.

Workflow

Seq.#StepDescription
1Enable change data captureIf you are processing the STT and CIM APIs, select the relevant CDC (Change Data Capture) entities for the integration, which can include:
  • ChatSession
  • SupportTicket
  • VideoSession
  • UserPresence
2Create a new user and service accountCreate a new user and associate the user with a service account, which is used by the integration to authenticate between CloudSync and Optiflow.
3Create a permission setCreate a permission set to be used by the integration. The permission set includes permissions to allow CloudSync to push data to Optiflow.
4Assign a permission set to a userOnce you create the permission set, assign it to the new user you created.
5Create a connected appCreate the Integration Connected App, which is used to authenticate communication between CloudSync and Optiflow. It also provides security and limits related to the access of data in the integration.
6Configure connected app policiesFor the new Integration Connected App, configure system administration permissions and app policies.
7Generate a consumer keyGenerate the API access credentials from the Integration Connected App.
8Validate the integration configurationsTo validate that everything is configured correctly for the integration, use the Postman collection to ensure you receive a successful response.

Enable change data capture​

If you are processing STT and CIM APIs, select the relevant CDC (Change Data Capture) entities for the integration, which can include: SupportTicket, ChatSession, UserPresence, and VideoSession objects.

Before you begin

Log on to the CloudSync tenant application as an administrator.

Procedure

  1. From the CloudSync tenant application, from the Setup icon, select Setup.

  2. From the Quick Find text box, type: Change Data Capture.

  3. Select Change Data Capture.

    The Change Data Capture screen is displayed. In Available Entities, the system displays the CDC entities that are available to be selected for the change data capture service for the integration.

  4. From Available Entities, move the relevant CDC entities that are in scope for the integration to Selected Entities, which can include:

    • SupportTicket
    • ChatSession
    • VideoSession
    • UserPresence

note

Only select the entities that are included in the integration. For example, if chats are not included, do not select ChatSession.

  1. Select Save.

The CDC entities that you selected are included in the integration.

What to do next?

Create a new user and service account

Create a new user and service account​

Create a new user and associate the user with a service account, which is used by the integration to authenticate between CloudSync and Optiflow.

Before you begin

Enable change data capture

Procedure

  1. From the CloudSync tenant application, from the Quick Find text box, type: Users.

  2. From the All Users screen, select New User.

  3. On the New User screen, complete the following mandatory fields for the user:

FieldDescription
Last NameLast name of the user.
AliasShorter name representing the user.
EmailUser's valid email address, which is also used for verification in a later step.
UsernameValue that reflects the service account user for the integration. The username is shared with the Optiflow engineer at the end of the customer onboarding setup.
NicknameShort name for the user or service account.
  1. Select Save.

  2. Next to the Email field, select the Verify link to send a verification email to the user, and click OK.

    The system sends an email to the user with a link to verify the account.

  3. From the Welcome to CloudSync! email, select Verify Account.

    The system verifies the email account, and changes the Verify link next to the Email field to: Verified. The integration uses this user account to authenticate between CloudSync and Optiflow.

What to do next?

Create a permission set

Create a permission set​

Create a new permission set to be used by the integration. You can define specific attributes for the permission set, including the label, API name, and license.

Before you begin

Create a new user and service account

Procedure

  1. From the CloudSync tenant application, from the Quick Find text box, type: Permission Sets.

  2. From the Permission Sets screen, create a new permission set by selecting New.

  3. On the Permission Set Create screen, complete the following mandatory fields:

FieldDescription
LabelName of the permission set that displays in the tenant application.
API NameName of the permission set that is used for the API name.
LicenseCloudSync API Integration.
  1. Select Save.

What to do next?

Assign a permission set to a user

Assign a permission set to a user​

Once you create the permission set, assign it to a specific user.

Before you begin

Create a permission set

Procedure

  1. At the top of the Permission Set page, select Manage Assignments.

  2. At the upper right of the Current Assignments page, select Add Assignment.

    The system displays all users in a list.

  3. In the search text box, enter the user you created in Create a new user and service account.

  4. Select the check box next to the relevant user name, and select Next.

  5. Set the expiration date for the assignment, and select Assign.

    The system displays a confirmation message, stating that the assignments were successful.

  6. Select Done.

What to do next?

Create a connected app

Create a connected app​

Create the Integration Connected App, which is used to authenticate communication between CloudSync and Optiflow. It also provides security and limits related to the access of data in the integration.

Before you begin

Assign a permission set to a user

Procedure

  1. From the Quick Find text box, type: App Manager.

  2. Select New Connected App.

  3. Select Create a Connected App, and select Continue.

  4. On the New Connected App screen, under Basic Information, complete the following mandatory fields:

    • Connected App Name

    • API Name

    • Contact Email (must be a valid email address)

  5. From API (Enable OAuth Settings), select Enable OAuth Settings.

  6. In Callback URL, enter a dummy URL, such as: https://dummy.com.

  7. Select Use digital signatures.

  8. To upload the certificate provided by Optiflow, select Choose File, and browse and select the file, cloudsync.crt provided by an Optiflow engineer.

  9. Add the following Available OAuth Scopes to Selected OAuth Scopes:

    • Manage user data via APIs (api)

    • Perform requests at any time (refresh_token, offline_access)

  10. Verify the following are selected:

    • Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows

    • Require Secret for Web Server Flow

    • Require Secret for Refresh Token Flow

    • Enable Client Credentials Flow

  11. Select Save, and then Continue.

What to do next?

Configure connected app policies

Configure connected app policies​

For the new Integration Connected App, configure system administration permissions and app policies.

Before you begin

Create a connected app

Procedure

  1. From the connected app, select Manage.

  2. Select Edit Policies.

  3. In OAuth Policies, from Permitted Users, select Admin approved users are pre-authorized.

  4. In Client Credentials Flow, in the Run As field, browse, and select the user you created for the integration.

    The Client Credentials Flow defines the permissions used in the system-to-system communication. These permissions are defined for the user in the integration.

  5. Select Save.

  6. In Profiles, select Manage Profiles.

  7. From the list of user profiles, select Minimum Access - API Only Integration, and select Save.

What to do next?

Generate a consumer key

Generate a consumer key​

Generate the API access credentials from the Integration Connected App.

Before you begin

Configure connected app policies

Procedure

  1. From the Setup view, select App Manager.

  2. From the app list, find the Integration Connected App.

  3. From the drop-down menu, select View.

  4. In API (Enable OAuth Settings), select Manage Consumer Details.

  5. At the Verify Your Identity prompt, type the verification code sent to the verification email address, and select Verify.

  6. For the Consumer Key, select Copy.

What to do next?

Validate the integration configurations

Validate the integration configurations​

To validate that everything is configured correctly for the integration, use the Postman collection to ensure you receive a successful response.

Before you begin

Generate a consumer key

Procedure

  1. Open your Postman collection.

    If you are working with a CloudSync sandbox instance, make sure to use the following endpoint: https://test.cloudsync.com/services/oauth2/token (instead of the production endpoint: https://login.cloudsync.com/services/oauth2/token).

  2. On the Variables tab, update the following key-value pairs with your credentials:

    • grant_type: urn:ietf:params:oauth:grant-type:jwt-bearer

    • userID: <Your username>

    • consumerKey: <Your Consumer Key copied from the previous step>

    • cloudsyncTokenEndpoint: <Your CloudSync Token Endpoint>

  3. Select Send.

    If the configuration was defined correctly, the system displays a success response (200) when executing the Postman request.

  4. Upon receiving a success response (200), share the results with Optiflow for the CloudSync integration.