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

# Configuring the Salesforce CRM Action

[Back to Actions Integrations](https://koreai.mintlify.site/ai-for-service/integrations/overview.md#actions)

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 Platform supports OAuth 2.0 authentication for Salesforce CRM. See [Setting Up Authorization Using OAuth v2](https://koreai.mintlify.site/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.

| 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**.

   ![Auth type - OAuth](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)

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

   ![Kore.ai's preconfigured Salesforce app](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)

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**.

   ![Create new auth](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)

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

   ![Auth mechanism - OAuth V2](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)

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

   ![Auth credentials](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)

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

   ![Authorize](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)

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

6. Click **Enable**.

   ![Integration successful](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)

> [!NOTE]
>
> The Salesforce action moves from **Available** to **Configured** after enabling.

### 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**.

   ![Auth type - OAuth](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)

**System Authorization**

1. Select the **System** card.

   ![Kore.ai's preconfigured Salesforce app](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)

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:

   ![Select an existing authorization profile](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)

3. Click **Enable**.

   ![Enable](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)

***

## Step 2: Install the Salesforce Action Templates

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

   ![Explore templates](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)

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

   ![Begin installation](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)

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

   ![Dialog tasks for each template](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)

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

   ![Select desired dialog task and proceed](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)

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


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.