> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cxconnect.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Base Application

> The installation guide for the cxconnect.ai base app for Salesforce

# Base App Install Steps

## *Step 1: Install the cxconnect.ai App for Salesforce*

In order to successfully translate your customers', suppliers' and employees' Cases/Accounts/Leads etc, you must first install the **cxconnect.ai Base App** into your Salesforce instance.

## *Latest Release*

The [cxconnect.ai Base App](../../../../changelog/salesforce/releases/base-app)

## *Step 2 Option A: Assign Permission Set Groups*

The cxconnect.ai App for Salesforce comes with three permission set groups.

1. **cxconnect.ai Admin Permission Set Group**: Includes all the permissions required for managing translation configurations.
2. **cxconnect.ai User Permission Set Group**: Includes all the permissions required for users using cxconnect.ai translation service.
3. **cxconnect.ai Guest User Permission Set Group**: Includes all the permissions required for guest users using cxconnect.ai translation service. For guest users in addition to this

These groups come with corresponding permission sets (referenced in [Step 2 Option B](#step-2-option-b:-assign-permission-sets)) already added. It is recommended users are assigned to these groups instead of individual permission sets to allow for easy expansion if utilizing the other cxconnect.ai Salesforce packages.

## *Step 2 Option B: Assign Permission Sets*

The cxconnect.ai App for Salesforce comes with three permission sets.

4. **cxconnect.ai Admin Permissions**: Includes all the permissions required for managing translation configurations.
5. **cxconnect.ai User Permissions**: Includes all the permissions required for users using cxconnect.ai translation service.
6. **cxconnect.ai Guest User Permissions** : Includes all the permissions required for guest users using cxconnect.ai translation service. For guest users in addition to this permission set you will have to *create sharing rules on Translation Object to enable guest users to read translation rules*.

Follow below instructions to assign permissions correctly.

1. Click on the "cxconnect.ai Admin Permissions" permission set in the search results.

2. Click on the "Manage Assignments" button.
   <img src="https://mintcdn.com/cxconnectai/yHkbt_18kLVS669B/images/permissionsets.png?fit=max&auto=format&n=yHkbt_18kLVS669B&q=85&s=d3bd3984b0743130b5255e996936bb2b" alt="" width="1944" height="656" data-path="images/permissionsets.png" />

3. Click on the "Add Assignment" button.

4. Select the users you want to assign the permission set to and click on the "Assign" button.

5. To create a sharing rule for guest users in Salesforce, follow these steps
   1. Go to Setup in Salesforce
   2. Under "Administration," click on "Security Controls" and then "Sharing Settings"
   3. Scroll down to "Guest User Sharing Rules" and click "New"
   4. Select the “Translation Object” object to share.
   5. Choose the “Read only” access level for the guest user
   6. Define the criteria for when the sharing rule should apply
   7. Click "Save”

## Step 3: Configure Translation Settings

1. From Setup, enter “Custom Metadata Types” in the Quick Find box, then select “Custom Metadata Types”

<img src="https://mintcdn.com/cxconnectai/yHkbt_18kLVS669B/images/metadata.png?fit=max&auto=format&n=yHkbt_18kLVS669B&q=85&s=7bb92adb3983adecba0e4a49807f122a" alt="" width="1407" height="678" data-path="images/metadata.png" />

2. Select “Manage Records” to configure the Translation Setting

<img src="https://mintcdn.com/cxconnectai/yHkbt_18kLVS669B/images/manage-records.png?fit=max&auto=format&n=yHkbt_18kLVS669B&q=85&s=62b053bb7a344cab66fe1608aaafb219" alt="" width="1182" height="736" data-path="images/manage-records.png" />

3. Edit “Translation Engine Config” translation setting custom metadata record

<img src="https://mintcdn.com/cxconnectai/pqUfwKt2xvZFpbN8/images/translation-config-edit.png?fit=max&auto=format&n=pqUfwKt2xvZFpbN8&q=85&s=cb7bd9cd55a328df2e3d150ef493ac1d" alt="" width="972" height="570" data-path="images/translation-config-edit.png" />

4. Update “Auth Key” and “API Endpoint” information provided by cxconnect.ai and click save. The test endpoint is: [https://test.api.cxconnect.ai](https://test.api.cxconnect.ai) and the production endpoint is: [https://api.cxconnect.ai](https://api.cxconnect.ai)

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/api-edit-details.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=32e4668533a71d52c35e5eb00a74e378" alt="" width="1946" height="512" data-path="images/api-edit-details.png" />

## *Step 4: Setup Remote Site Settings*

Add the given API Endpoint to remote site settings by navigating to Setup > Remote Site Settings > New Remote Site

* Remote Site Name : cxconnect\_ai  (or something similar)
* Remote Site URL: \<API Endpoint>
* Active : true

<img src="https://mintcdn.com/cxconnectai/yHkbt_18kLVS669B/images/remote-site-settings.png?fit=max&auto=format&n=yHkbt_18kLVS669B&q=85&s=d4a35d0828e10a47819462a685a11fd6" alt="" width="1374" height="596" data-path="images/remote-site-settings.png" />

This will allow your Salesforce instance to communicate with cxconnect.ai servers.

## *Step 5: Select cxconnect.ai App*

Select cxconnect.ai from the app menu.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/cxconnect-app.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=e7c9d0392a4fa2edc38af4f82e0d14b7" alt="" width="668" height="496" data-path="images/cxconnect-app.png" />

## *Step 6: Configure Translation Objects*

1. Select Translation Objects Tab.

<img src="https://mintcdn.com/cxconnectai/pqUfwKt2xvZFpbN8/images/translation-obj-1.png?fit=max&auto=format&n=pqUfwKt2xvZFpbN8&q=85&s=85529b33876c3f8db675ee205747f3d2" alt="" width="1590" height="642" data-path="images/translation-obj-1.png" />

2. Add objects that you want to enable translation for by clicking the “**Add Row**” button. For this example we will be using the *Case* object. NOTE: Knowledge article records should not be selected or managed here. Please use the [Knowledge App](#knowledge-app-installation-and-setup) to handle these translations.

<img src="https://mintcdn.com/cxconnectai/pqUfwKt2xvZFpbN8/images/translation-obj-2.png?fit=max&auto=format&n=pqUfwKt2xvZFpbN8&q=85&s=703a5659edc7856ceba92f5351d3ebcc" alt="" width="1668" height="698" data-path="images/translation-obj-2.png" />

3. After enabling translation for a Salesforce object, a new field called "Source Language" will be added to that object. To allow all user profiles to access the cxconnect.ai translation service, update the field level security settings.

**NOTE:** This field defaults access to System Administrators only.

<img src="https://mintcdn.com/cxconnectai/pqUfwKt2xvZFpbN8/images/src-lang-field.png?fit=max&auto=format&n=pqUfwKt2xvZFpbN8&q=85&s=dab67d71e14abfd8dada7aaaaaba2003" alt="" width="1946" height="738" data-path="images/src-lang-field.png" />

## *Step 7: Configure Translation Rules*

1. Select the Translation Rules Tab.<img src="https://mintcdn.com/cxconnectai/pqUfwKt2xvZFpbN8/images/translation-rules.png?fit=max&auto=format&n=pqUfwKt2xvZFpbN8&q=85&s=8aca7bfea2008e77bff8a1e921b05500" alt="" width="2048" height="824" data-path="images/translation-rules.png" />

   * Below is the guidance for each field regarding Translation Rules:

     * **Object**: This is the object you wish to set up the translation rule for. Currently, each object can only be selected once.

     * **Fields to Translate**: Source fields you wish to have translated.

     * **Target Languages**: The default Agent language(s) you'd like the selected fields automatically translated into.

**WARNING:** Selecting too many default Target Languages will incur significant costs.

* Add Translation Rules to each object you wish to translate by clicking the “Add Row” button

* You can filter translation rules by clicking on the filter icon in the right corner of the Translation Rule page. Then select the appropriate filter criteria and click “Apply” to see refined results.

##

## *Step 8: Configure Translation Field Rules*

If you would prefer to have individual fields populated with translations, Translation Field Rules provide that functionality.

1. Select the Translation Field Rules tab
   <img src="https://mintcdn.com/cxconnectai/pqUfwKt2xvZFpbN8/images/translation-field-rules.png?fit=max&auto=format&n=pqUfwKt2xvZFpbN8&q=85&s=954d58ab2015fb54fd06dcfdf3955e91" alt="" width="2048" height="643" data-path="images/translation-field-rules.png" />

* Below is the guidance for each field regarding Translation Field Rules:
  * **Object**: This is the object you wish to set up the translation rule for. Currently, each object can only be selected once.

  * **Source Field**: Source field you wish to have translated. This can either be a standard or custom field.

  * **Target Field**: The target field to save the translation into. This can either be a standard or custom field.

  * **Target Languages**: Languages you'd like the selected fields translated into.

* Add Translation Field Rules to each field you wish to translate by clicking the “Add Row” button

* You can filter translation rules by clicking on the filter icon in the right corner of the Translation Field Rule page. Then select the appropriate filter criteria and click “Apply” to see refined results.

For these fields to populate with translated data a custom flow MUST be set up. cxconnect.ai provides a template that can be activated to run when a case is created.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/field-translation-flow.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=ea4f39ee1a351549607f9eba39b78684" alt="" width="1272" height="460" data-path="images/field-translation-flow.png" />

* Navigate to Setup > Flows
* From the *cxconnect.ai Case - Field Translation* option select “View Details and Versions”

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/field-translation-flow-detail.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=c94e567d7b9d992363a1dd1541dd4d3c" alt="" width="1054" height="844" data-path="images/field-translation-flow-detail.png" />

* Select “Activate”
* Now when a Case is created translations will asynchronously populate the fields selected in the Translation Field Rules tab.

## *Step 9 RECOMMENDED: Automatically Translate Records*

Historically, cxconnect.ai relied on custom flows to translate Case records. This process, while effective, was subject to latency and additional administrative overhead.

Starting in v3.1 cxconnect.ai has opted to bypass working within Flows to prefer translating records when an agent loads a Case for the first time.

A custom metadata field is now available to allow this translation to run immediately when a record is opened or manually with a button click.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/auto-trans-enrich.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=fabd2ca79a24fe26be9bc3fccd7f5d69" alt="" width="634" height="208" data-path="images/auto-trans-enrich.png" />

This option is defaulted to True.

If a record does not already have a translation in an agent’s language the record is translated (based on configurations setup in step 7) right when the agent loads the record.

## *Step 10 OPTIONAL: Automatically Approve Emails*

Starting in v3.9 cxconnect.ai added a feature to allow the automatic approval of email translations. Enabling this option within the Custom Metadata (see [step 3](#step-3:-configure-translation-setting,-authentication-key-and-api-endpoint) for reference) will bypass the email preview and simply replace the current drafted email with the translation. This will **not** automatically send the email.\\

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/auto-approve-email.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=21502caa338994a130e16801d6cf8a65" alt="" width="744" height="264" data-path="images/auto-approve-email.png" />

## *Step 11 OPTIONAL: Turn off Email Trigger*

Starting in v3.15 cxconnect.ai added a feature to allow the turning off of the automatic email trigger.

Disabling this option within the Custom Metadata (see [step 3](#step-3%3A-configure-translation-settings) for reference) will turn off the custom email trigger.
This will prevent cxconnect.ai email triggers from firing which is helpful for client that send bulk emails.\
Having this option un-checked will remove the automatic refresh of the email translation component when an email is sent.

<img src="https://mintcdn.com/cxconnectai/qLF0VGk-DlxtcwHb/images/email-trigger-checkbox.png?fit=max&auto=format&n=qLF0VGk-DlxtcwHb&q=85&s=6231c504c342f5709f112cc6b1dc6890" alt="" width="1782" height="172" data-path="images/email-trigger-checkbox.png" />

## *Step 12 OPTIONAL: Create Flow to Translate Records in “Real-time”*

Create a flow for each object that is enabled in the “Manage Translation” tab.

1. Setup a flow for each object you have enabled translation for by navigating to setup and then search for “Flows” in the search bar.<img src="https://mintcdn.com/cxconnectai/yHkbt_18kLVS669B/images/setup-flows.png?fit=max&auto=format&n=yHkbt_18kLVS669B&q=85&s=be43cf413a6fb67afac7592eb6c99762" alt="" width="497" height="515" data-path="images/setup-flows.png" />

2. Select “cxconnect.ai Case - Translation” in the list of flows.

   1. This is a flow template which can be cloned to support any Salesforce objects.

   <img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/flows-case-translation.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=18a5c8e9cb437745ed5ac2e452c39581" alt="" width="1922" height="866" data-path="images/flows-case-translation.png" />

3. Click “Save As” and provide “Flow Label” and “Flow API Name” and save new flow.
   1. Case - Translation (On Create)

      1. To translate on creation setup trigger criteria as “A record is created”
         <img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/case-flow-1.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=1c83dc5f85be0fddfe975e5329d838ac" alt="" width="443" height="610" data-path="images/case-flow-1.png" />
      2. Configure scheduled path as shown below

      <img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/case-flow-2.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=69625a6a8ab5d3b8c87e210305486b59" alt="" width="1206" height="507" data-path="images/case-flow-2.png" />

      3. Save & Activate

#

# Base App Capabilities

## *Interpreter*

By adding the out-of-the-box cxconnect.ai component onto any flexi record page, cxconnect.ai Interpreter enables users to translate text in real time on any flexi page.

Use cases making this feature valuable may include updating existing localized transcripts or editing any localized predictive texts in the local language. This feature can also be helpful to help with ad hoc translation needs outside the agent workflow.

To add the cxconnect.ai Interpreter, follow the steps below.

1. Open any record page in Lightning

2. Click on the gear icon in the top right corner of the screen and select Edit Page.

3. From the App builder, drag and drop the “**Translation : Adhoc**” component to the flexi page layout.

   <img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/case-adhoc-add.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=b7315d08dd2b0bca116191883168e5c3" alt="" width="1076" height="1198" data-path="images/case-adhoc-add.png" />

4. The following page options are available:

   * Show Preview Modal which shows or hides translation preview.
   * Hide Title which hides the Interpreter title from user view.

   <img src="https://mintcdn.com/cxconnectai/VuNYOJva4CPCulnA/images/salesforce-install-adhoc-page-options.png?fit=max&auto=format&n=VuNYOJva4CPCulnA&q=85&s=baa86849db509f88960053f5852d9d9a" alt="" width="694" height="724" data-path="images/salesforce-install-adhoc-page-options.png" />

5. Save

After saving the component, the cxconnect.ai Interpreter is ready for translation.

To translate your text, enter it and choose the desired target language, then click the "Translate" button. The translated text will appear in a popup window along with the identified source language.

<img src="https://mintcdn.com/cxconnectai/yHkbt_18kLVS669B/images/interpreter-1.png?fit=max&auto=format&n=yHkbt_18kLVS669B&q=85&s=cb2a88549f9d9d183df89570221f418c" alt="" width="688" height="886" data-path="images/interpreter-1.png" />

<img src="https://mintcdn.com/cxconnectai/yHkbt_18kLVS669B/images/interpreter-2.png?fit=max&auto=format&n=yHkbt_18kLVS669B&q=85&s=dca5e04695e3e8ec2b6f4b3df9341531" alt="" width="1900" height="478" data-path="images/interpreter-2.png" />

## *Enriched Record*

The cxconnect.ai Base application deploys with a custom component that can be added to any record page that is associated with a [translation rule](#step-7:-configure-translation-rules). Adding the **Enriched: Record** component to the Case record page allows Translations and other enrichments to be displayed.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/add-enriched-1.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=fe329dfedb2365705124c403073653ff" alt="" width="598" height="1112" data-path="images/add-enriched-1.png" />

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/add-enriched-2.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=1e0a6b6bd500f3b6748d393754610ba7" alt="" width="1734" height="822" data-path="images/add-enriched-2.png" />

The component displays the translated information in the Users local language. For example: If an English case is created and the pre-configured Translation Rule is set up to translate into English and French, an English speaking user would see the following.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/add-enriched-3.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=0fde0cfb744274340900e48b8dd1cac0" alt="" width="2048" height="764" data-path="images/add-enriched-3.png" />

The French speaking User would see the same information in French.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/add-enriched-4.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=55291955ee4eb5fabe504e6c345a1a7c" alt="" width="2048" height="528" data-path="images/add-enriched-4.png" />

## *Email Translator*

### Add Email Translator Component

To add the cxconnect.ai Email Translator to your Case Lightning Record Page here are the steps to take:

1. Open the Record Page of the Case object to use this email component and click on Edit Page on the top setting widget

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/email-t-1.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=c74508baf3a795184481364beaa68709" alt="" width="2048" height="513" data-path="images/email-t-1.png" />

2. Select the custom Email Translator component and drop it in a convenient location.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/email-t-2.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=be9f982f0ff1acf69f58cfbf02f3bcea" alt="" width="1214" height="580" data-path="images/email-t-2.png" />

3. The component has page options that adjust how the component looks to users.
   * Enable Email Translation: enables or disables the "Translate Email" button and language dropdown
   * Enable All Historic Translation Button: enables or disables this button, which will translate all previous untranslated emails in an email chain
   * Enable Single Historic Translation Button: enables or disables this button, which allows a user to translate a single untranslated email into their language
   * Collapse Email List: Sets the ability to collapse and display only a subset of emails
   * Number of Emails to Show: Sets the number of emails that are shown by default before collapsing emails
   * Number of Emails to Show More Each Time: Set the number of additional emails that are revealed when the "Show More" is clicked

<img src="https://mintcdn.com/cxconnectai/sHxEVv6UvlyLg3ro/images/salesforce-install-email-page-options.png?fit=max&auto=format&n=sHxEVv6UvlyLg3ro&q=85&s=eca516cc551060e8045bb560d396d28f" alt="" width="520" height="578" data-path="images/salesforce-install-email-page-options.png" />

3. Click save and activate the page

### Required: Activate the Inbound Translation Flow

To assure your inbound emails are translated correctly a custom flow installs with the package that will translate emails as the flow in.

Navigate to Setup -> Flows

Find and click the **Email - Translation** Flow to view and activate.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/email-t-3.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=958242a9a44c6f080f181249117e7e0e" alt="" width="2048" height="993" data-path="images/email-t-3.png" />

Within the Flow Builder screen **Activate** and **Save**

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/email-t-4.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=ca4955492453c34d78bdade6b3ca082d" alt="" width="1810" height="1170" data-path="images/email-t-4.png" />

### Required: Activate Email Settings

It’s required to Enable Email Drafts if not already enabled contained in *Setup -> Support Settings*. This allows cxconnect.ai to integrate fully with outbound email messages.

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/email-t-5.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=88a1041b6c80a7cf62bf1f23df423c47" alt="" width="1698" height="600" data-path="images/email-t-5.png" />

###

### Recommended: Enable “New Content Only”

It is recommended to set the following Email-To-Case setting so that the cxconnect.ai services don’t try to re-translate the entire email chain:

<img src="https://mintcdn.com/cxconnectai/is68VeZDyYiMRagO/images/email-t-6.png?fit=max&auto=format&n=is68VeZDyYiMRagO&q=85&s=7aeb6e04756ffd8c219d3f17bd20d153" alt="" width="702" height="654" data-path="images/email-t-6.png" />
