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

# Configuring the Salesforce CRM Action

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

Connect Salesforce CRM to create, update, search, and delete leads and opportunities. See [Salesforce CRM](https://www.salesforce.com/) for more information.

***

## Authorizations Supported

The XO Platform supports OAuth 2.0 authentication for Salesforce CRM. See [Setting Up Authorization Using OAuth v2](/ai-for-service/app-settings/dev-tools/bot-authorization/setting-up-authorization-using-oauth-v2) for details.

<Note>Salesforce CRM integration can only be authorized for Developer and Enterprise editions — not Trial. See [Salesforce documentation](https://help.salesforce.com/s/articleView?id=sf.accounts.htm\&type=5) for account types.</Note>

| Authorization Type                       | OAuth - System | OAuth - Custom |
| ---------------------------------------- | -------------- | -------------- |
| Pre-authorize the Integration            | Yes            | Yes            |
| Allow Users to Authorize the Integration | Yes            | Yes            |

***

## Step 1: Enable the Salesforce CRM Action

**Prerequisites:**

* Create a developer account in [Salesforce CRM Help Center](https://help.salesforce.com/s/).
* Copy the Client ID, Client Secret Key, Authorization URL, and Callback URL.

**Steps:**

1. Go to **App Settings** > **Integrations** > **Actions**.
2. Select **Salesforce**.

### Pre-authorize the Integration

**System Authorization**

1. Go to **App Settings** > **Integrations** > **Actions** and select **Salesforce**.

2. In **Configurations**, select the **Authorization** tab.

3. Set **Authorization Type** to **Pre-authorize the Integration** > **OAuth**.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img2.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=2fcb051d445836beb17f86d8317d9e64" alt="Auth type - OAuth" width="1188" height="904" data-path="ai-for-service/integrations/actions/images/salesforce-action-img2.png" />

4. Select the **System** card and click **Authorize**.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img3.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=406f84ed1fbb26fe4bd3bc1eea3ad20f" alt="Kore.ai's preconfigured Salesforce app" width="1191" height="913" data-path="ai-for-service/integrations/actions/images/salesforce-action-img3.png" />

5. You are redirected to `login.salesforce.com`. Enter credentials and click **Allow Access**.

**Custom Authorization**

1. Select **Custom** and click **Select Authorization** > **Create New**.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img4.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=f85de76f4dc71b755fd610a299c61265" alt="Create new auth" width="1200" height="913" data-path="ai-for-service/integrations/actions/images/salesforce-action-img4.png" />

2. Select **OAuth v2**. See [Setting Up Authorization Using OAuth v2](/ai-for-service/app-settings/dev-tools/bot-authorization/setting-up-authorization-using-oauth-v2).

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img5.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=ecbd6a56b75540803705fe28d761a8e6" alt="Auth mechanism - OAuth V2" width="1186" height="911" data-path="ai-for-service/integrations/actions/images/salesforce-action-img5.png" />

3. Enter the OAuth v2 credentials:

   * Call back URL
   * Identity Provider Name
   * Client ID
   * Client Secret
   * Authorization URL
   * Token Request URL
   * Scope
   * Refresh Token URL

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img6.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=111506dfa0b19082d09c6a38b1342252" alt="Auth credentials" width="1198" height="913" data-path="ai-for-service/integrations/actions/images/salesforce-action-img6.png" />

4. Click **Save Auth**, then select the new profile.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img7.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=4dc978e0cc2f5c546e897327e363d9b0" alt="Authorize" width="1194" height="913" data-path="ai-for-service/integrations/actions/images/salesforce-action-img7.png" />

5. Click **Authorize**, enter credentials at `login.salesforce.com`, and click **Allow Access**.

6. Click **Enable**.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img8.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=147f01213d1567f0c85839572e608848" alt="Integration successful" width="893" height="351" data-path="ai-for-service/integrations/actions/images/salesforce-action-img8.png" />

<Note>The Salesforce action moves from *Available* to *Configured* after enabling.</Note>

### Allow End User to Authorize

1. Go to **App Settings** > **Integrations** > **Actions** and select **Salesforce**.
2. In **Configurations**, select the **Authorization** tab.
3. Set **Authorization Type** to **Allow Users to Authorize the Integration** > **OAuth**.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img9.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=7fff15f3d4b95600d3baf42fc062b3a3" alt="Auth type - OAuth" width="1194" height="913" data-path="ai-for-service/integrations/actions/images/salesforce-action-img9.png" />

**System Authorization**

1. Select the **System** card.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img10.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=290e5ff0f7d4171924e219aaeaebb24b" alt="Kore.ai's preconfigured Salesforce app" width="1183" height="908" data-path="ai-for-service/integrations/actions/images/salesforce-action-img10.png" />

2. Click **Enable**. A link is sent to the end user to authorize.

**Custom Authorization**

1. Select **Custom** and click **Select Authorization** > **Create New**, following the Custom Authorization steps above.

2. You can also select an existing profile:

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img11.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=35d2ca6c8b6eb4a88fa9cdbfc43ab198" alt="Select an existing authorization profile" width="1196" height="913" data-path="ai-for-service/integrations/actions/images/salesforce-action-img11.png" />

3. Click **Enable**.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img12.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=a0cb8b9aa2bf728d20163eeb75d7268a" alt="Enable" width="1189" height="913" data-path="ai-for-service/integrations/actions/images/salesforce-action-img12.png" />

***

## Step 2: Install the Salesforce Action Templates

1. On the **Integration Successful** dialog, click **Explore Templates**.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img13.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=830480b3bf5a9cb30fbaf3f2ecf257c7" alt="Explore templates" width="889" height="362" data-path="ai-for-service/integrations/actions/images/salesforce-action-img13.png" />

2. Click **Install** to begin installation.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img14.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=61f7a95c9a3ad6d03cf8d10d5311c3a7" alt="Begin installation" width="889" height="767" data-path="ai-for-service/integrations/actions/images/salesforce-action-img14.png" />

3. Once installed, click **Go to Dialog**. A dialog task for each template is auto-created.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img15.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=9faf6bbb7f295dd32f85c79d1651a420" alt="Dialog tasks for each template" width="1542" height="789" data-path="ai-for-service/integrations/actions/images/salesforce-action-img15.png" />

4. Select the desired dialog task and click **Proceed**.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/salesforce-action-img16.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=ea2a02471f214465a4d8dea18b2775f6" alt="Select desired dialog task and proceed" width="1199" height="915" data-path="ai-for-service/integrations/actions/images/salesforce-action-img16.png" />

5. The dialog task is auto-created and the canvas opens with all required entity nodes, service nodes, and message scripts.


Built with [Mintlify](https://mintlify.com).