The Smartling Salesforce Service Cloud Connector lets support agents translate cases and chat messages directly in Salesforce using Smartling's Instant MT service. This article covers how to install and configure the connector in your Salesforce environment.
Prerequisites
Install the connector in Salesforce
Before you begin setup, ensure that you have installed the connector package in your Salesforce environment. You can find the connector on the AppExchange.
Create an API token
You also need a Smartling account-level API token to configure the package. You must have an Account Owner user role in Smartling to create an account API token.
Follow the steps in API Tokens to create your token. You will use it in the configuration steps below.
Configure Smartling settings in Salesforce
The screenshots in this article show Salesforce Lightning. If you use Salesforce Classic, switch to Lightning to follow along.
- Open your organization's Setup panel.
- Search for and open Custom Metadata Types.
- In the metadata list, find Smartling Settings and click Manage Records.
-
Click Edit to modify the settings record ‘Smartling Settings’. On the settings page, enter your Smartling account credentials and click Save.
You may also see a Project ID field. Leave this field blank. The connector uses your account-level API token and does not currently require a project ID.
There must be only one Smartling Settings record. To update values, either edit the existing record or delete the current record and create a new one.
- Return to Setup Home.
- Search for and open Named Credentials.
- Open the External Auth Identity Providers tab.
- Select Smartling OAuth and click Edit.
- In the Client Identification section, enter your Smartling User Identifier as the Client ID, and your User Secret as the Client Secret. These are the credentials you created earlier.
- Click Save.
Set up the chat translation component (Messaging / Enhanced Chat)
- Open your organization's Setup panel.
- Open Object Manager and find the Messaging Session object.
- Navigate to Lightning Record Pages and open the page your agents use.
- Click Edit.
-
Find the Smartling Chat Translation component in the component palette and drag it onto your page.
Place this component near the standard conversation component for it to work properly.
-
In the End User Locale Field, enter the API name of the field on the
MessagingSessionobject that contains the end user's locale. The connector reads this field to determine the translation language pair.Requirements:
- The field must belong directly to the
MessagingSessionobject. If the locale value lives on a related object (such as Contact or Case), create a formula field onMessagingSessionthat pulls the value in. - The value must be a Salesforce locale code (for example,
en_US,fr), not a language name. See Salesforce's Supported Locales documentation for the full list of valid locale codes.
How language detection works:
- The chat component first checks the
MessagingSessionfield specified in End User Locale Field. - If that field is empty or End User Locale Field was not configured, the connector falls back to automatic language detection. It uses the Smartling Language Detection API to detect the end user's language from their chat messages.
Using Salesforce's built-in language detection: If you want Salesforce to detect the language from the web portal where the end user started the chat, enter
EndUserLanguagein the End User Locale Field. For information on how to enable this option, see the Salesforce documentation. - The field must belong directly to the
- Click Save.
Set up the case translation component (Web-to-Case / Email-to-Case)
The case translation component only translates fields that appear in the case feed. If you need to translate additional case fields, you must create an automation, such as a Salesforce Flow, that copies those field values into the case feed.
- Open your organization's Setup panel.
- Open Object Manager and find the Case object.
- Navigate to Lightning Record Pages and open the page your agents use.
- Click Edit.
- Find the Smartling Case Translation component in the component palette and drag it onto your page.
-
In the End User Locale Field, enter the API name of a field on the Case object that contains the end user's locale code (for example,
en_US). The value must be a Salesforce locale code, not a language name. See the Smartling to Salesforce language mapping for supported codes.How language detection works:
- The case component first checks the field specified in End User Locale Field.
- If that field is empty or was not configured, the connector falls back to automatic language detection. It sends the content of the field specified in End User Locale Detection Field (see next step) to the Smartling Language Detection API to identify the end user's language.
-
In the End User Locale Detection Field, enter the API name of a Case field that contains the end user's text (for example, the case description or subject). The connector sends this text to the Smartling Language Detection API to identify the end user's language when the End User Locale Field is empty or not configured.
- Click Save.
How the agent's language is determined
Both the Chat and Case translation components read the agent's language from the LanguageLocaleKey field on the agent's Salesforce user record. This value determines the target language for translating end-user messages into the agent's language, and the source language when translating the agent's replies back to the end user.
Permission sets
To grant users access to the connector's components, assign one of the following permission sets:
Smartling Chat User — grants access to the chat translation component.
Smartling Case User — grants access to the case translation component.
Smartling Admin — grants access to update Smartling settings.
Smartling Super User (permission group) — includes all Smartling permissions (Chat User, Case User, and Admin).
Assign permission sets
- Open your organization's Setup panel.
- Search for and open Permission Sets.
- Find and select the desired permission set (Smartling Chat User, Smartling Case User, or Smartling Admin).
- Click Manage Assignments.
- Click Add Assignment.
- Select a user and click Next.
- Click Assign.
Smartling to Salesforce language mapping
Download the Smartling-to-Salesforce language mapping table for the full list of supported locale codes and their Smartling equivalents.
Configure Instant MT settings in Smartling
Both case and chat translation use Smartling's Instant MT service. To configure your preferred MT or LLM translation provider, log into your Smartling account. You must have an Account Owner or Project Manager user role.
- From the top navigation of your Smartling dashboard, open AI Hub.
- In the Instant MT section, select the Salesforce Service Cloud tab.
- Enable Machine Translation for Salesforce Service Cloud.
- Choose your preferred Profile. You can also configure language-specific profiles if needed.
- Optionally, insert glossary terms in machine translations to enforce preferred terminology.
Once enabled, agents can use Instant MT to translate cases and chat messages directly in Salesforce Service Cloud.