⚡ Key Points: 1-Minute Summary
- It's Built-in, Not a Button: The Einstein Trust Layer is an architectural foundation providing zero data retention, toxicity scoring, and audit trails.
- Masking Exceptions: Contrary to popular belief, data masking for LLMs is disabled for Agentforce agents. It primarily applies to embedded AI features.
- Apex Callouts Bypass It: Direct Apex callouts to external systems step outside the Trust Layer boundary entirely.
- Prerequisites Matter: You cannot even view the Trust Layer settings page until Salesforce Data Cloud (Data 360) is properly configured in your org.
๐ก️ Core Concepts: What It Covers (and What It Doesn't)
The Einstein Trust Layer acts as a secure gateway between your Salesforce data and external Large Language Models (LLMs). Here is exactly how it functions:
- What it provides: Ironclad zero-retention agreements with LLM providers (meaning they cannot train their models on your data), automated toxicity scoring, and a secure audit trail.
- It is not a toggle switch: You don't "turn on" zero retention. It is handled automatically via contractual gateways when you use standard Salesforce AI pathways.
- The Data Masking Myth: Many developers assume all AI data is masked. It is not. Data masking for LLMs is explicitly disabled for Agentforce agents. Masking configurations currently apply to embedded generative AI features like Work Summaries and Einstein Service Replies.
- The Setup Catch: Looking for the configuration page? The Trust Layer settings will remain hidden until you have successfully set up Data 360 in your org.
- The Boundary Line: These native protections only apply to data flowing through official prompt templates.
Here is a simple map of the Trust Layer boundary:
Einstein Trust Layer
├─ COVERS
│ ├─ Zero data retention with model providers (Contractual)
│ ├─ Toxicity scoring
│ └─ Audit trail
├─ DOES NOT COVER
│ ├─ Data masking for Agentforce agents (Disabled)
│ └─ Direct Apex callouts (Sits outside the boundary entirely)
└─ PREREQUISITE
└─ Setup page requires Data 360 to display
Rule: When discussing AI security, state precisely what the Trust Layer covers, and explicitly name the two major gaps (masking for agents and custom Apex callouts).
Gain: Instant technical credibility. Because most people overstate what the Trust Layer does, precision makes you stand out to architects and security teams.
Price: You have to manually engineer data masking, filtering, and audit logging on any direct-callout path you build.
Limits: Agent masking is disabled. The settings page requires Data Cloud (Data 360) integration.
Mirror: Saying "We enabled the Trust Layer to protect this" is a red flag. It's not a switch, and saying so reveals a lack of hands-on experience.
Later: Understanding these boundaries directly dictates how you design custom external actions and Model Context Protocol (MCP) tools.
๐ฌ Core Q&A
A: You need to be incredibly precise here, because this feature is almost always overstated. The Trust Layer provides a contractual and technical gateway ensuring that when data hits an LLM, it isn't retained or used for training. It also filters toxic responses and logs the interaction.
However, there are two massive gaps you must design around. First, data masking is currently disabled for Agentforce agents; it only applies to embedded AI features. Second, these native protections only cover requests routed through official prompt templates. If you write a direct Apex callout to an external service, you completely bypass the Trust Layer. On those custom paths, security and data masking fall entirely on the development team.
A: The configuration page will remain hidden until you have successfully provisioned and configured Data 360 (Data Cloud). This frequently catches developers off guard when setting up new scratch orgs or sandboxes.
๐ 2-Minute Self-Check
- Q1. Name the four security layers of Salesforce AI.
A1. User Context, Field-Level Security (FLS), Sharing Rules, and the Einstein Trust Layer. - Q2. Does the Trust Layer automatically mask PII for Agentforce agents?
A2. No. Data masking is disabled for active agents; it applies to embedded generative AI features like Work Summaries. - Q3. What integration method completely bypasses the Trust Layer?
A3. Direct Apex callouts. If you build them, you own the masking, toxicity filtering, and audit logging. - Q4. What must be set up before you can view Trust Layer settings?
A4. Data 360 (Data Cloud).