Salesforce + AI Memory: Customer Context That Persists

Salesforce contains your complete customer history -- accounts, opportunities, cases, call logs, emails. REM Labs syncs all of it into AI memory so your agents have persistent, queryable context about every customer relationship without manual prompt engineering.

What Gets Synced

The Salesforce integration uses the REST API to pull standard and custom objects:

Connect via OAuth

In the REM Labs Console, go to Integrations and click Connect Salesforce. You will be redirected to Salesforce's OAuth flow. The integration works with both Salesforce and Salesforce Sandbox environments.

Import via API

curl -X POST https://api.remlabs.ai/v1/memory/sync/salesforce/import \ -H "Authorization: Bearer sk-slop-..." \ -H "Content-Type: application/json" \ -d '{ "sf_instance_url": "https://yourorg.my.salesforce.com", "sf_access_token": "00D...", "objects": ["Account", "Contact", "Opportunity", "Case"], "include_activities": true, "soql_filter": "Account.Industry = '\''Technology'\''", "sync_mode": "incremental" }'

The soql_filter parameter lets you scope imports using SOQL WHERE clauses. Incremental mode uses Salesforce's SystemModstamp field to only process records modified since the last sync.

Search Customer History

curl -X POST https://api.remlabs.ai/v1/integrations/salesforce/search \ -H "Authorization: Bearer sk-slop-..." \ -H "Content-Type: application/json" \ -d '{ "query": "enterprise customers who asked about SOC 2 compliance", "filters": {"object_type": "Case"}, "limit": 10 }'

Semantic search finds the support case titled "Security Audit Requirements" from Acme Corp and the opportunity note mentioning "compliance concerns blocking procurement" -- because the search understands "SOC 2" relates to "security audit" and "compliance" even when those exact terms are not in the query.

SOQL-Scoped Sync

For teams with large Salesforce orgs, SOQL filters let you import only the records that matter. Sync only closed-won deals, only enterprise accounts, or only cases from the last year.

API Endpoints Reference

EndpointMethodDescription
/v1/memory/sync/salesforce/importPOSTImport objects from Salesforce
/v1/integrations/salesforce/webhookPOSTConfigure Outbound Message sync
/v1/integrations/salesforce/statusGETCheck sync status and record counts
/v1/integrations/salesforce/searchPOSTSearch within the Salesforce namespace

Field-level security: The integration respects Salesforce field-level security. Only fields your connected user has permission to read are synced. You can additionally exclude fields via the exclude_fields parameter. See Salesforce integration docs.

Give your AI total customer context

Free tier. Every account, deal, and case searchable by meaning.

Get started free →