The short answer is no: Salesforce does not feed your proprietary CRM records, deal pipelines, or customer support transcripts into third-party foundation models to train public generative AI. When Agentforce orchestrates autonomous actions across Sales Cloud or Service Cloud, external model providers such as OpenAI or Anthropic operate under an enforceable Zero Data Retention (ZDR) contract. They cannot store your prompts, retain completions, or use your corporate intellectual property to improve their base models.
At 365Finds, we believe enterprise security teams need more than a marketing slogan. Behind Salesforce's reassuring marketing lies a complex architecture—the Einstein Trust Layer—alongside a subtle legal distinction that many Chief Information Security Officers (CISOs) miss. While third-party large language models (LLMs) cannot train on your prompts, Salesforce’s standard commercial agreements historically reserve the right to aggregate anonymized tenant data to train its internal predictive global models unless an administrator explicitly flips a toggle.
If you are a CISO, Salesforce technical architect, or legal compliance officer clearing Agentforce for production, here is the technical breakdown of how the Einstein Trust Layer enforces dynamic PII masking, guarantees zero data retention, logs verifiable audit trails in Data Cloud, and what you must configure to ensure airtight SOC 2 and GDPR compliance.
The Core Question: Does Your Data Feed Public LLMs?
When an autonomous agent like Agentforce resolves a customer inquiry, drafts an executive proposal, or updates an ERP invoice status, it communicates with external foundation models (such as GPT-4o, Claude 3.5 Sonnet, or models deployed via Amazon Bedrock and Azure).
The primary fear across risk committees is prompt leakage: that your sensitive pricing matrices, customer Social Security numbers, or confidential merger records will be captured by external model vendors and inadvertently surfaced in someone else's ChatGPT session.
Salesforce prevents this scenario through two complementary pillars:
- Architectural Isolation via the Einstein Trust Layer: Customer prompts do not travel naked across the public internet to commercial model APIs. Every inbound user query and outbound agent payload must traverse the Einstein Trust Layer—a security intermediary hosted directly within Salesforce’s Hyperforce boundary.
- Contractual Zero Data Retention (ZDR): Salesforce maintains master enterprise agreements with its model partners. Under these ZDR provisions, the third-party LLM processes the payload purely in volatile memory. No human at OpenAI or Anthropic reviews the text, no conversational logs are written to external persistent disks, and all context is discarded the millisecond the generated tokens return to Salesforce.
+-----------------------------------------------------------------------------------------+
| Hyperforce Trust Boundary |
| |
| [ Salesforce CRM Data ] |
| (Sales Cloud / Service Cloud) |
| | |
| v |
| [ Dynamic Grounding ] ---> Strictly respects User Permissions & FLS |
| | |
| v |
| [ Einstein Trust Layer Intermediary ] |
| * PII / PCI Masking (Regex + NER Engine) |
| * Prompt Defense & Toxicity Pre-Screening |
| | |
+------------|----------------------------------------------------------------------------+
| TLS 1.3 In-Flight Payload (Tokenized & Anonymized)
v
+-----------------------------------------------------------------------------------------+
| [ External LLM Provider (OpenAI / Anthropic / Azure OpenAI / Bedrock) ] |
| * Zero Data Retention (ZDR) Execution in Ephemeral RAM |
| * Zero Model Re-Training / Zero Logging / No Human Inspection |
+------------|----------------------------------------------------------------------------+
| Generated Tokens
v
+-----------------------------------------------------------------------------------------+
| [ Einstein Trust Layer Response Processor ] |
| * PII De-masking (Rehydrating Placeholders with Original CRM Values) |
| * Output Toxicity & Safety Scoring |
| * Complete Event Telemetry Streamed to Data Cloud Audit Trail |
+-----------------------------------------------------------------------------------------+
The Catch: Third-Party LLMs vs. Salesforce Global Predictive Models
Here is where 365Finds advises every enterprise architect to look closely at their tenant settings.
There is a vital distinction between Generative Foundation Models (Agentforce calling LLMs) and Salesforce Global Predictive Models (cross-org statistical algorithms used for legacy Einstein features like Lead Scoring or Opportunity Win Probability).
Under Salesforce’s standard Main Services Agreement (MSA), organizations are historically opted in by default to permit Salesforce to use de-identified, aggregated tenant data to train cross-customer predictive models and improve internal platform capabilities. While this aggregated data never exposes raw records or company identities to other tenants, high-security enterprises in defense, healthcare, and banking frequently reject any cross-tenant data pooling.
How to Opt Out Completely
To sever all cross-tenant data harvesting:
- Navigate to Salesforce Setup.
- In the Quick Find search box, enter Opt Out of Customer Data Access (or navigate under Einstein Setup > Data Privacy).
- Toggle the customer data access setting to Off.
Once toggled off, Salesforce contractually stops extracting tenant metadata or anonymized metrics for global model training, and previously collected telemetry is purged from model training pipelines within 30 days. Government Cloud organizations default to opted-out status, but standard enterprise commercial orgs must verify this switch manually.
Anatomy of the Einstein Trust Layer
The Einstein Trust Layer is not an add-on product you buy off the shelf; it is a gateway infrastructure embedded in the platform runtime. When Agentforce plans and executes a task, five sequential protection steps occur:
1. Dynamic Secure Grounding
Before calling an AI model, Agentforce dynamically retrieves grounding context from CRM records, Knowledge bases, or unified Data Cloud profiles.
Critically, this grounding engine executes under the user's running context. If an SDR or Service Agent does not have Object-Level permissions, Sharing Rule visibility, or Field-Level Security (FLS) clearance for a customer's Credit_Limit__c or SSN__c field, that data is never pulled into the grounding prompt. The model cannot hallucinate or leak what the runtime context cannot see.
2. Client-Side PII Masking and Tokenization
Once the grounding prompt is constructed, the Trust Layer scans the outgoing string using pattern-matching regular expressions and specialized Named Entity Recognition (NER) machine learning models.
Sensitive data points are excised and replaced with deterministic surrogate tokens:
- Customer Name
Jane Doebecomes[NAME_1] - Email address
jane.doe@enterprise.combecomes[EMAIL_1] - Credit card or SSN numbers become
[PAYMENT_CARD_1]or[GOV_ID_1]
The external LLM processes the query: "Draft a polite reminder to [NAME_1] that invoice [INV_1] sent to [EMAIL_1] is past due." The foundation model generates its reasoning entirely on anonymous variables, without ever knowing the real identity of the customer.
3. The Autonomous Agent Paradox: Masking vs. Agentic Workflow
There is an engineering tradeoff here that Salesforce documentation acknowledges and that 365Finds frequently sees in field implementations.
In basic conversational prompts (Prompt Builder or Service Replies), PII masking works seamlessly because the response is simply shown to a human agent. But Agentforce is an autonomous agent executing programmatic tools—calling Apex classes, executing Flows, querying Data Cloud vector indices, and modifying records.
If an autonomous agent needs to trigger an Apex action that checks an external SAP ERP system for Order #A-99482 under corporate tax ID TX-88201, masking those values as [ORDER_REF_1] and [TAX_ID_1] will break downstream tool execution. The agent cannot pass masked tokens into deterministic database APIs.
Consequently, for complex autonomous agent actions, Salesforce allows administrators to adjust or disable data masking configurations for specific agent actions. In scenarios where dynamic masking is bypassed to maintain tool accuracy, the security perimeter shifts entirely to TLS 1.3 transit encryption, the Zero Data Retention contract, and tenant Hyperforce access controls. 365Finds recommends that compliance teams explicitly audit which Agentforce topics operate with active token masking versus raw context.
4. Toxicity and Safety Pre/Post-Filtering
Every inbound user prompt and outbound model completion is evaluated against safety classification heads. The Trust Layer assigns numerical toxicity scores across multiple distinct vectors:
- Hate speech and identity discrimination
- Sexual content and profanity
- Physical violence and self-harm
- Intentional jailbreak and prompt-injection patterns
If a model response exceeds internal toxicity thresholds, Agentforce suppresses the message, routes the conversation to a human fallback queue, and records a safety violation incident in the audit system.
5. Automated De-masking
When the model returns its generated response back across the Hyperforce trust boundary, the Trust Layer consults its ephemeral, encrypted in-memory token lookup map. It replaces [NAME_1] with Jane Doe and delivers the finished output to the end-user or CRM interface. The temporary token lookup map is discarded immediately after execution.
Verifiable Compliance: The Data Cloud Audit Trail
In enterprise compliance reviews, a vendor's verbal assurance is meaningless without an immutable log. The Einstein Trust Layer addresses this requirement by streaming full operational telemetry into Salesforce Data Cloud (Data 360).
Every single Agentforce inference generates an audit record containing:
- Raw Grounded Prompt: The full context assembled from CRM data prior to egress.
- Masked Prompt: The exact string transmitted across the external API endpoint.
- Raw Model Completion: The unmasked token stream returned by the LLM.
- Final De-masked Text: The actual response presented to the user or committed to CRM fields.
- Toxicity Scoring Matrix: Granular category ratings for safety, bias, and profanity.
- Execution Telemetry: Model identifier, token consumption, latency, and associated Agentforce Action ID.
+-------------------------------------------------------------------------------------------------+
| Data Cloud Audit Trail Schema |
+--------------------------+----------------------------------------------------------------------+
| Field Name | Audit Data Captured |
+--------------------------+----------------------------------------------------------------------+
| GroundedPromptText | Full prompt with CRM context before redaction |
| MaskedPromptText | Redacted string transmitted to external foundation LLM |
| RawResponseText | Ephemeral response returned by LLM prior to de-masking |
| FinalResponseText | Final demasked text presented to human user or committed to database |
| ToxicityScoreOverall | Aggregate safety score (0.0 to 1.0) |
| ToxicityCategories | Flags for Hate, Violence, Sexual, Profanity, and Jailbreak |
| ExecutionModelProvider | Foundation model endpoint (e.g., Azure OpenAI, Anthropic Bedrock) |
| TotalTokensConsumed | Cumulative input and output token count |
| UserOrAgentSessionId | Session ID, running user ID, or autonomous agent worker context |
+--------------------------+----------------------------------------------------------------------+
Exporting Audit Logs to Enterprise SIEMs
Security operations teams do not want to inspect compliance logs manually inside Salesforce reports. By pairing Data Cloud with Zero Copy data federation or standard ingestion connectors, security administrators can export Trust Layer audit records into Snowflake, Datadog, or Splunk.
This enables CISOs to configure automated alerts:
- Alert when a prompt triggers unexpected PII detection on unapproved custom objects.
- Alert when an autonomous agent experiences a sudden spike in toxicity scores during customer service spikes.
- Provide third-party SOC 2 Type II and ISO 27001 auditors with mathematical proof that sensitive credit card information never left the Hyperforce boundary in plain text.
365Finds Implementation Action Plan for Security Administrators
To move Agentforce from sandbox testing to production authorization without compromising enterprise risk standards, 365Finds recommends executing the following four-step governance plan:
[ Step 1: Sever Platform Model Harvesting ]
└─ Setup > Opt Out of Customer Data Access > Toggle to OFF
[ Step 2: Configure Trust Layer Data Masking Policies ]
└─ Setup > Einstein Trust Layer > Configure Object/Field Regex & NER Rules
[ Step 3: Audit Autonomous Agent Action Context ]
└─ Identify Topics requiring raw identifiers vs. standard conversational masking
[ Step 4: Stream Data Cloud Audit Telemetry to Enterprise SIEM ]
└─ Pipe audit events to Splunk/Snowflake for real-time monitoring and SOC 2 audits
- Sever Platform Predictive Model Harvesting: Enter Setup and ensure Opt Out of Customer Data Access is toggled to Off. This ensures your data does not train Salesforce's cross-tenant statistical models.
- Review Custom Object Masking Rules: In Einstein Trust Layer Setup, verify that any custom proprietary fields (such as proprietary deal discount algorithms or patient identifiers) are explicitly registered under data masking rules.
- Partition Autonomous Actions by Risk Profile: In Agentforce Agent Builder, review the topics and actions assigned to your agent. For simple query tasks, keep PII masking strictly enforced. For transactional Apex actions requiring exact external IDs, verify that the executing user context adheres to the principle of least privilege.
- Establish Continuous Audit Ingestion: Configure Data Cloud data streams to feed Trust Layer telemetry into your corporate SIEM, validating that Zero Data Retention is paired with verifiable internal oversight.
Salesforce Agentforce does not train public AI models on your CRM data. When configured with clear administrative boundaries, the Einstein Trust Layer provides one of the most mature enterprise isolation models in the current generative AI market.