Salesforce
Connect your Salesforce org to Datost to ask questions about CRM data from Slack or the web app.
Once connected, your team can ask Datost questions like @Datost which opportunities closed last week by AE? or @Datost show me open leads by source and have the answers pulled live from Salesforce.
What you get
- Natural language questions answered against leads, accounts, contacts, opportunities, cases, tasks, and campaigns.
- Full support for custom objects (any
__cobject) and custom fields, picked up automatically from your org's schema. - A schema explorer in the Datost admin panel that surfaces every queryable object, its fields, types, and reference relationships.
Prerequisites
Before connecting, make sure you have:
- A Salesforce user with the API Enabled permission in the target org.
- Read access on every object and field you want Datost to query. Datost inherits field-level security from the connecting user.
- Your My Domain URL (for example
your-org.my.salesforce.com). Both production and sandbox orgs are supported — use the My Domain for the exact org you want connected.
OAuth and scopes
Datost uses a shared Salesforce Connected App and never asks for your password or a session token. During connection, Salesforce issues a refresh token that Datost encrypts and stores server-side per organization.
Datost requests two OAuth scopes:
api— read Salesforce objects and run SOQL queries.refresh_token— keep the connection alive without re-prompting the user.
Connect Salesforce
Open the admin panel
In the Datost web app, go to Data Sources and click Add data source.
Pick Salesforce
Select Salesforce from the list of knowledge sources.
Enter your Salesforce domain
Paste your My Domain URL (for example acme.my.salesforce.com, or acme--sandbox.sandbox.my.salesforce.com for a sandbox org). Datost normalizes lightning.force.com URLs automatically.
Authenticate with Salesforce
Click Connect Salesforce. A popup opens Salesforce's login page for that domain. Sign in and approve the api and refresh_token scopes.
Name and save
The popup closes once Salesforce returns the refresh token. Give the connection a name and description, then save.
Exploring your schema
Open the Salesforce connection in the admin panel to browse every object in the org. Each entry shows whether it's queryable, custom, and has records, plus a field-level view with types, filterability, and reference relationships. A starter query button generates a working SOQL snippet for any object so you can preview records before exposing them to Datost.
Permissions and limits
- SOQL queries count against your org's Salesforce API request limits. Datost paginates large result sets and keeps per-query row counts bounded to stay well under standard org quotas.
- Non-queryable objects (like
AttachedContentNote) are surfaced in the schema browser but cannot be queried. - Refresh tokens are rotated per Salesforce's policies; if a token is revoked from Setup, reconnect the data source from the admin panel to restore access.