Sub topic 3
What the Einstein Trust Layer Is
Prerequisites
This chapter assumes you know basic Salesforce objects, fields, and user permissions. It also assumes you know what a large language model (LLM) and a prompt are, and that you are aware of privacy concerns such as personally identifiable information (PII).
The idea in one paragraph
The Einstein Trust Layer is a set of controls that sits between your Salesforce data, Agentforce agents, and the LLMs that generate text. An agent never talks to a model directly. Each prompt and each response passes through the layer, which applies protections on the way out and on the way back. The goal is to let you use generative AI on CRM data without handing that data to a model provider unprotected.
The controls it groups together
The layer is not one feature. It is a pipeline of separate controls. Each one addresses a different risk.
| Control | What it protects against |
|---|---|
| Secure data retrieval and grounding | Prompts that include data the user should not see |
| Data masking | Sensitive values leaving Salesforce in readable form |
| Prompt defense | Instructions that push the model to misbehave |
| LLM gateway and zero data retention | Providers storing or learning from your prompts |
| Toxicity detection | Harmful or inappropriate output reaching the user |
| Demasking | Placeholders appearing in the final answer |
| Audit trail | No record of what was sent and returned |
Later chapters cover each control in detail. This chapter only places them in the pipeline.
Where it sits
Notice that the layer works in both directions. Some controls act before the prompt leaves Salesforce, and others act on what comes back.
A simplified ordering
The sequence below is a working model. Exact ordering and behavior can vary by feature and release.
- The user asks the agent a question.
- Secure data retrieval and grounding add CRM data the user may access.
- Data masking replaces sensitive values with placeholders.
- Prompt defense adds instructions that guard against misuse.
- The LLM gateway sends the prompt to the model provider, under zero data retention.
- The model returns a response.
- Toxicity detection scores the response.
- Demasking restores the original values.
- The audit trail records the interaction.
- The response is shown to the user.
Common misunderstandings
- The layer does not make output correct. It reduces data exposure and harmful output. A response can still be wrong.
- It does not replace your permission model. Grounding uses the running user's access, so weak permissions still produce weak protection.
- It is not a single switch. Some behavior depends on configuration and on which model you use.
Exercise
A teammate says, "The Trust Layer means we can ignore field-level security, because the layer protects everything." What is wrong with this claim?
Show answer
The layer grounds prompts using the running user's permissions, so it depends on your field-level security and sharing settings rather than replacing them. If a user can see a field, it can reach the prompt. Permissions remain your responsibility.