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

# Salesforce Agent Connector

> Let Agents query and update Salesforce records in real time during conversations.

The Salesforce [Connector](https://docs.cassidyai.com/agents/connectors/overview.md) gives your [Agents](https://docs.cassidyai.com/agents/overview.md) both read and write access to your Salesforce CRM. Agents can look up accounts, search for opportunities, create leads, update contacts, and more — all within a conversation. Data is queried in real time and never stored in Cassidy.

> [!TIP]
>
> For best results with complex Connector queries, use a powerful,
> reasoning-capable model. Cassidy supports models from OpenAI, Anthropic,
> Google, and Open Source — see [Choose the right AI
> model](https://docs.cassidyai.com/guides/choose-ai-model.md) for current recommendations.

## Add the Salesforce Connector

**1. Select your Agent**

Navigate to **Agents**, find the Agent you want to configure, click **...** and select **Edit**.

![Agent dashboard showing the list of available Agents](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-0.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=30a28fbf9df72c55db50f014e7466ad2)

**2. Open the Connectors section**

In the Agent editor, go to the **Setup** tab and scroll to the **Connectors** section.

![Setup tab showing the Connectors section in the Agent editor](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-1.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=21106b519cc50af872db100907d78330)

**3. Add Salesforce**

Click **+ Add Connector** and then click **+ Add** on the **Salesforce** option.

![Connector selection panel with the Salesforce option](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-2.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=654698d6e83c41e2d15da08627f1070c)

**4. Choose your connection method**

Select how users authenticate with Salesforce:

* **Each user connects their own account** (recommended) — Each team member connects their personal Salesforce account. The Agent can only access what each user has permission to see in Salesforce.
* **Use one Salesforce account** — Connect a dedicated service account that everyone shares. Anyone who can connect Salesforce can set one up and choose who may use it.

![Salesforce connector setup asking how the Agent should access Salesforce, with per-user and one-account options](https://mintcdn.com/cassidy/tZ_8z7Jm40HHxpO3/images/integrations/salesforce-tool-img-3.png?fit=max\&auto=format\&n=tZ_8z7Jm40HHxpO3\&q=85\&s=dbf4a4779edce99e80d5ebacdd89fc65)

**5. Set up a shared connection (if selected)**

If you chose **Use one Salesforce account**, click **Connect** under **Choose the Salesforce account**, follow the [Salesforce sign-in steps](#sign-in-to-salesforce) below with the service account, and accept the access request.

![Use one Salesforce account selected, with a Connect button under Choose the Salesforce account](https://mintcdn.com/cassidy/tZ_8z7Jm40HHxpO3/images/integrations/salesforce-tool-img-4.png?fit=max\&auto=format\&n=tZ_8z7Jm40HHxpO3\&q=85\&s=106ef051be6da7dad30ce4338671a682)

![Salesforce sign-in screen during shared connection setup](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-5.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=3248087e122401dd9fe59a06a3fec141)

![Salesforce access request confirmation dialog](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-6.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=90ad2f5a8755b12298d0afdd48db6a23)

**6. Choose who can use a shared connection**

Give a new shared connection a recognizable name, then add specific people
or groups or change **General access**.

> [!WARNING]
>
> Everyone with access acts through the same Salesforce account. Use a
> dedicated service account when possible.

**7. Configure action permissions**

Set a permission for each Salesforce action:

* **Always allow** — The Agent performs the action automatically when needed
* **Ask every time** — The Agent asks the user before taking the action
* **Disabled** — The Agent cannot perform the action

Common Salesforce actions include Search records, Create records, Update
records, and Delete records. You can set a category at once or customize
individual actions.

**8. Start a conversation**

Navigate to **Chat** and select the Agent with the Salesforce Connector enabled.

![Chat interface with the Salesforce-enabled Agent selected](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-11.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=c88768fae257dd72e7fe87e5d1f44082)

If you chose the per-user connection method, users are prompted to connect their Salesforce account from within the chat on first use.

Click **Connect** and follow the [Salesforce sign-in steps](#sign-in-to-salesforce) below.

![In-chat prompt asking the user to connect their Salesforce account](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-12.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=8c5c83d6dfcebf9839b8bd3623a62f1a)

Once connected, Cassidy continues the request automatically. Your Agent can
now access Salesforce data to answer questions about accounts,
opportunities, leads, contacts, and other CRM records.

![Agent responding with Salesforce data in the chat](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-13.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=92590e328f06f623f5ac162ae2b34797)

## Connect Salesforce for yourself

To use Salesforce in any chat, not just with this Agent, open **Customize** →
**Connectors**, find **Salesforce**, and click **Add connector**. See [Add a Connector for
yourself](https://docs.cassidyai.com/agents/connectors/overview.md#add-a-connector-for-yourself).

## Sign in to Salesforce

Click **Connect** (or **Add connector** in **Customize** → **Connectors**), sign
in to Salesforce in the pop-up, and approve the access request. Return to
Cassidy to continue using the Connector.

If you need a sandbox or a specific company login domain, use
[Connect a sandbox or custom domain](#connect-a-sandbox-or-custom-domain).

### Connect a sandbox or custom domain

> [accordion] Advanced: use your Salesforce sandbox or company login domain
>
> Choose **Connect sandbox or custom domain** instead of the regular connect
> button:
>
> * **In a chat or when choosing a shared account:** Click the arrow next to **Connect**.
> * **In Customize → Connectors:** Open **Salesforce** and click **...** next to **Add connector**.
> * **To reconnect an existing connection:** Open the connection's **⋮** menu.
>
> ![Salesforce Connector menu with Connect sandbox or custom domain shown above Organization settings](https://mintcdn.com/cassidy/tZ_8z7Jm40HHxpO3/images/integrations/salesforce-connection-domain-menu.png?fit=max\&auto=format\&n=tZ_8z7Jm40HHxpO3\&q=85\&s=772f0b4b45ad0ad47a9fd2b7b69083da)
>
> In the connection form, replace `login` in **Salesforce Subdomain** with
> everything before `.salesforce.com` in that account's address. If your address
> ends in `.lightning.force.com`, use everything before `.lightning.force.com` and
> add `.my`:
>
> * **Custom domain:** For `https://acme.my.salesforce.com` or `https://acme.lightning.force.com`, enter `acme.my`.
> * **Sandbox:** For `https://acme--dev.sandbox.my.salesforce.com` or `https://acme--dev.sandbox.lightning.force.com`, enter `acme--dev.sandbox.my`.
>
> Leave **Instance endpoint** unchanged, then click **Connect Account** and sign
> in to the selected Salesforce account.
>
> ![Salesforce connection form with acme--dev.sandbox.my entered in Salesforce Subdomain and Instance endpoint left unchanged](https://mintcdn.com/cassidy/tZ_8z7Jm40HHxpO3/images/integrations/salesforce-connection-sandbox.png?fit=max\&auto=format\&n=tZ_8z7Jm40HHxpO3\&q=85\&s=63df4a1a420dda48bc54ef38c3307fd5)

## Monitor Salesforce actions

When an Agent uses the Salesforce Connector, expand the action in the response to see its input, result, and approval status.

![Expanded Salesforce action in a chat response showing what the Agent did](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-14.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=c09810d832992a6284cdbffc7bef4dd3)

![Expanded Salesforce action details showing the query and results](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-15.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=9b7e03f6c2dfd86f9c9a795c7ccea3fc)

If an action lacks the required permissions, the step shows **No output data**.

![Salesforce action showing No output data due to missing permissions](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-16.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=1e806c4a98a2e223a93f72b42eda94ba)

If an action is set to **Ask every time**, you see an approval prompt where you
can allow it once, always allow it when organization policy permits, or deny
it.

## Data security

* **Permission-based access** — The Agent can only access what the connected Salesforce account has permission to see
* **Auditability** — All queries and actions are logged in your Agent's activity history
* **Service account control** — Using a service account lets you define exactly what objects, fields, and records are accessible
* **No data stored** — Salesforce data is accessed in real time and never copied or stored in Cassidy

> [accordion] Advanced: OAuth scopes
>
> This integration uses standard Salesforce OAuth scopes (`full` and
> `refresh_token`) to securely access your data. If your organization requires
> custom scopes, contact [support@cassidyai.com](mailto:support@cassidyai.com).

> [accordion] Troubleshooting: OAuth connection error
>
> If you see an OAuth error like `OAUTH_APPROVAL_ERROR_GENERIC`, follow these steps:
>
> 1. **Have an authorized user connect first** — Ask a user with the **Approve Uninstalled Connected Apps** permission in Salesforce to connect. Users with the System Administrator profile have this permission by default.
> 2. **Install the Cassidy app in Salesforce** — Once the authorized connection is made, your Salesforce admin should:
>    * Go to the **Connected Apps OAuth Usage** page in Salesforce Setup
>    * Find the **Cassidy Assistants** app
>    * Click **Install**
>
> ![Connected Apps OAuth Usage page in Salesforce Setup](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-18.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=6d777d4eb2d50f69014230258d07207a)
>
> ![Cassidy Assistants app listed in Salesforce Connected Apps](https://mintcdn.com/cassidy/opUjsHGkJXVqagIV/images/integrations/salesforce-tool-img-19.png?fit=max\&auto=format\&n=opUjsHGkJXVqagIV\&q=85\&s=971df82842a9be956713d28316f452b2)
>
> After completing these steps, other users should be able to connect without encountering the OAuth error.

## Next steps

> [card] [Knowledge Base](https://docs.cassidyai.com/knowledge-base/overview.md)
>
> Set up your Knowledge Base for AI-powered context across Agents and
> Workflows.

> [card] [Salesforce for Workflows](https://docs.cassidyai.com/integrations/salesforce/workflows)
>
> Automate Salesforce record changes with Workflow triggers and actions.


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