> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-ai-for-work-dev.mintlify.site/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 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img2.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=1a5058645868fb27272c8467e233f31f" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img3.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=f459655a1662148508693b7a4d5f94e5" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img4.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=a13dcfe506f5d7f91e0bb3f32fe8b73b" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img5.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=39f1680ba5e88f6a2d1753cfe3390084" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img6.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=0ab8c85d708a2106c545d423d24d3b92" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img7.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=c158ea408ecc89d9a784b6e93bc1344b" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img8.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=90c7cc04ecc0a178748c2c13bc39dd67" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img9.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=4d0121c5456c404e1232e011bd323f57" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img10.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=6d5dcaf604c62451a39774ae10853230" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img11.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=fa1dbc0a48162fe86414e933a6060015" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img12.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=5ad5480b1d394135f0b616739a847cac" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img13.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=242ebe6a8b6b8908eb773196786b1195" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img14.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=ce27ac1416fe812986e917895867a708" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img15.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=9d5df8fcd682120d01b562d4a6c94ebb" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/salesforce-action-img16.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=2189312a7342b3e84167c737050f1c6c" 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.
