Skip to main content

Customer Setup - Salesforce Enhanced Chat

This guide explains what you, as the customer, need to provide to enable the integration between Salesforce Enhanced Livechat and our platform.


1. Create new Channel​

  1. Login to your salesforce service cloud account and then click on settings icon and then click setup.

  2. Navigate to the search bar and type Messaging Settings and then click on New Channel

  3. In the Native Channels tab select Enhanced Chat and click next.

  4. Fill the details form and click next.

  5. Select the suitable routing type for your channel and click save.

  6. After clicking save locate the channel in the list and select edit as shown below in circle

    Salesforce channel list with the edit icon highlighted

  7. Set the Authorization Token Expiration Time for Unverified Users as 1440

    Authorization Token Expiration Time field set to 1440 for unverified users


2. Create an Embedded Service Deployment​

  1. Navigate to the search bar and type Embedded Service Deployments and then click on New Deployment.

    Embedded Service Deployments search with New Deployment option

  2. Select Enhanced Chat and click next.

    Enhanced Chat option selected for the new deployment

  3. In the next page select Custom Client and then click next.

    Custom Client option selected for the deployment type

  4. In the next page fill the form and then choose the appropriate Messaging channel that we created earlier then click save.

    Deployment form with the messaging channel selected before saving

  5. Click on the new deployment that we just created then click on the Install Code Snippet.

    New deployment page with the Install Code Snippet option

  6. **Note **down the custom client code snippet data: OrganizationId, DeveloperName, Url.


3. Create new External Client App​

  1. Navigate to the search bar and type External Client App Manager and then click on New External Client App

    External Client App Manager search with New External Client App option

  2. Fill the fields in Basic Information Section

    External Client App Basic Information section form

  3. Under OAuth Settings, select enable OAuth, fill the callback url, then in the OAuth Scopes select Manage user data via APIs (api) and click on the small right arrow to move it to selected scopes.

    OAuth Scopes with Manage user data via APIs moved to selected scopes

  4. Next in the flow enablement select Enable Client Credentials Flow, Enable Authorization Code and Credentials Flow, Enable Device Flow.

In the security tab select Require secret for Web Server Flow, Require secret for Refresh Token Flow, Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows.

Security tab with Require secret for Web Server Flow and PKCE options selected

  1. Click Create

    External Client App creation form with the Create button

  2. Select the newly created External client app and click on settings.

    External Client App list with the settings option highlighted

  3. Scroll down to OAuth Settings and click Consumer Key and Secret.

    OAuth Settings section with the Consumer Key and Secret link

  4. Verify your identity by typing the verification code sent to your email and click verify.

    Identity verification code entry screen

  5. Note down the Consumer Key and Consumer Secret.

    Consumer Key and Consumer Secret values displayed


4. List of Data to Handover​

Here is the list of all the data to handover to the delivery team.

CM Frontend AttributeHow to Obtain
Organization IdStep 10 — Copy OrganizationId from the Install Code Snippet
Organization Domain UrlStep 10 — Copy the Scrt URL and remove -scrt from the domain
Organization Scrt UrlStep 10 — Copy Url from the Install Code Snippet
Client IdStep 18 — Copy the Consumer Key from the External Client App
Client SecretStep 18 — Copy the Consumer Secret from the External Client App
Deployment NamesStep 10 — Copy DeveloperName from the Install Code Snippet (comma-separated if multiple)
Prechat Body Object NameSalesforce Object Manager — name of the custom object used to store pre-chat form data
SessionId Object NameSalesforce Object Manager — name of the custom object used to store session IDs

Type or paste something here to turn it into an excerpt.