- Query records across standard and custom objects.
- Navigate your Salesforce data schema, including relationships and custom fields.
- Pull live context from Salesforce into any thread or scheduled run.
Connecting Salesforce is a one-time setup per Salesforce org. A Salesforce System Administrator (or a user with the Approve Uninstalled Connected Apps permission) must install the connector before other users can authenticate.
Prerequisites
- A LangSmith workspace with access to Fleet.
- A Salesforce org and user account.
- A Salesforce System Administrator to complete the install (or the Approve Uninstalled Connected Apps permission on your own user).
Register the connector
The first connection attempt registers the LangChain Fleet Connector in your Salesforce org so that an administrator can install it. This initial attempt is expected to fail with an authentication error.Open the Integrations page
In the LangSmith UI, navigate to the Fleet > Integrations tab.
The first attempt fails by design. The failed request registers the LangChain Fleet Connector in your Salesforce org so an administrator can install it in the next step.
Install the connector
This step must be completed by a Salesforce System Administrator.
Open Connected Apps OAuth Usage
In the Quick Find box, type
Connected Apps OAuth Usage and open the page.Grant user access
Granting access through a permission set is the recommended way to control which users can authenticate with Fleet.This step must be completed by a Salesforce System Administrator.
Open the app policies
From Connected Apps OAuth Usage, click Manage App Policies next to LangChain Fleet Connector.
Pre-authorize admin-approved users
Under OAuth Policies > Permitted Users, select Admin approved users are pre-authorized, then click Save.
Connect from Fleet
Once your administrator has installed the connector and granted access, return to Fleet to complete the connection.- In the LangSmith UI, navigate to the Fleet > Integrations tab.
- Find the Salesforce tool and click Connect.
- Sign in with your Salesforce credentials and click Allow.
Use Salesforce with an agent
After connecting, add Salesforce tools to a specific agent:- Open your agent in Fleet and click the Edit Agent icon.
- In the Toolbox section, click + Add.
- Search for Salesforce Query and add it to the agent.
- Click Save changes.
Troubleshooting
Connection fails with an authentication error
The first connection attempt is expected to fail. It registers the LangChain Fleet Connector in your Salesforce org so an administrator can install it. If the connection still fails after the connector is installed, confirm that:- The administrator completed both Install the connector and Grant user access.
- Your Salesforce user is assigned to a permission set that grants access to the connector.
- You signed in through Use Custom Domain with the correct Salesforce domain.
Agent cannot see an object or field
Salesforce tools run with the permissions of the connected user. If an agent cannot read an object or custom field, verify that the user’s Salesforce profile and permission sets grant read access to that object.Next steps
Add more tools
Connect additional services to your agent
Agent identity
Choose whether the agent uses shared or per-user credentials
Human-in-the-loop
Require approval before the agent takes sensitive actions
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

