Skip to main content
Available on Business and Enterprise plans.
With the Salesforce tool, your agents can find objects and fields, run read-only SOQL queries on your records, read attachments and files, and create or update records. An admin creates an External Client App in Salesforce and adds Salesforce once, then people can add it to their agents.

What your agent can do in Salesforce

When an agent creates or updates several records at once, it can ask Salesforce to apply all of them or none. The list in Dust is the source of truth, and it can change before this page does. To see every Salesforce tool, go to Spaces > Tools, select Salesforce, and open Tools & stakes.

Before you start

  • In Dust: you need to be an admin to add Salesforce, on a Business or Enterprise plan.
  • In Salesforce: you need access to Setup to create an External Client App.
  • For each person: with Personal accounts, each person who uses Salesforce through an agent needs their own Salesforce account.

Set up Salesforce

Only workspace admins can add Salesforce.
1

Create an External Client App

In Salesforce, open Setup (the gear icon at the top right). Search for External Client App Manager in the left sidebar, and click New External Client App. Fill in the basic information:
  • External Client App Name: for example “Dust Integration”.
  • API Name: fills in on its own.
  • Contact Email: your email.
  • Distribution State: keep Local.
2

Turn on OAuth

Under API (Enable OAuth Settings), check Enable OAuth, and enter this callback URL. It’s the same for US and EU workspaces.
3

Select the OAuth scopes

Add the four scopes listed in Salesforce permissions.
4

Set up Flow Enablement and Security

Check these options, then click Create:
  • Enable Client Credentials Flow
  • Enable Authorization Code and Credentials Flow
  • Require secret for Web Server Flow
  • Require secret for Refresh Token Flow
  • Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows
5

Copy the consumer key and secret

Open the Settings tab, click Edit, open OAuth Settings, and click Consumer Key and Secret. Copy both values.
6

Add the tool in Dust

Go to Spaces > Tools, click Add tools, and select Salesforce. Enter your Instance URL (see below), and paste the consumer key and secret as the client ID and client secret.
7

Choose how people connect

Keep Personal accounts, selected by default, or pick Shared account (see below).
8

Sign in to Salesforce

Click Setup connection, sign in with your Salesforce account, and approve the access Dust asks for.
For the Instance URL, use your org’s My Domain URL, for example https://acme.my.salesforce.com. You can find it in Salesforce Setup, under My Domain. The URL must:
  • Start with https:// and end with .salesforce.com.
  • Have nothing after the domain: no path, no port, and no / at the end.
  • Be in lowercase, with no spaces before or after it.
Don’t use the address in your browser bar when you’re in Salesforce (it ends with .lightning.force.com), or a link to a Setup page. If you can’t save the form, type the URL again by hand.
  • Personal accounts: each person connects their own Salesforce account the first time an agent uses Salesforce, by clicking Connect in the conversation, and the agent continues once they’re connected. Agents then act with that person’s Salesforce permissions, and only see the records that person can see. The admin’s account is only used for the setup.
  • Shared account: every agent uses the Salesforce account of the admin who connected it, for everyone who uses it. Connect it with a dedicated service account that has only the permissions your use cases need. If that account is deactivated in Salesforce, the connection stops working until an admin connects it again.
See Personal vs Shared Credentials for more on each connection type.

Add Salesforce to an agent

1

Open your agent in the Agent Builder

Create an agent, or open one you can edit.
2

Add the tool

In Capabilities and knowledge, click Add capabilities and select Salesforce. It needs no configuration.
3

Name the objects and fields

In the instructions, name the objects and fields the agent should use, and what matters for your use case. Custom objects and fields have API names that end in __c. For numbers that must match a report, give the exact SOQL query.
By default, tools that read data run without asking (Never ask), and creating or updating records is at Medium. Admins can change the level of each tool in Spaces > Tools > Salesforce > Tools & stakes:
  • High: needs explicit user approval.
  • Medium: users can save confirmations for specific tool inputs, or skip them for the rest of a conversation session. Only creating and updating records offer it: a saved confirmation applies to the same Salesforce object, so people can allow updates to contacts without allowing updates to accounts.
  • Low: users can completely disable confirmations.
  • Never ask: runs automatically.

Example instructions

Salesforce permissions

The External Client App needs these OAuth scopes.

Limits

  • No saved reports: agents run SOQL queries, not Salesforce reports. When asked about a report, an agent writes its own query, which can return different numbers. Paste or export the report instead, or put the exact SOQL query and field names in the agent’s instructions.
  • No Tooling API: objects only available through the Tooling API, such as ApexClass, ApexTrigger, or FlowDefinition, aren’t supported. To query them, host a small MCP server that runs read-only queries against /services/data/vXX/tooling/query, and connect it as a remote MCP server. It works alongside the Salesforce tool.
  • No deletion: agents can read, create, and update records, but not delete them.
  • Attachments: agents read attachments and files up to 50 MB each, and can’t upload files.
  • Large queries: filter by date or other criteria, or limit the number of records, to keep queries fast.
  • Salesforce API limits: every agent query counts toward your org’s daily API request limit. See Salesforce API limits. You can check your usage on the System Overview page in Setup, and set up API Usage notifications to get an email when it passes a threshold.

Troubleshooting

Personal vs Shared Credentials

How each connection type works for tools.

HubSpot

Let your agents work with your HubSpot CRM.

Tools

All the tools your agents can use.