Skip to main content

Einstein Trust Layer

Salesforce's secure AI architecture for generative AI: grounding, data masking, prompt defense, toxicity scoring, audit and zero-data retention.

Quick answer

What is Einstein Trust Layer?

The Einstein Trust Layer is Salesforce's secure AI architecture between your data and the model. It grounds prompts in what the user can access, can mask the sensitive data you select in supported features (masking is disabled for agents), and scores toxicity from 0 to 1. That matters because it governs what a model sees and what you can audit.

Last updated:

The Einstein Trust Layer is the set of agreements, security technology, and data and privacy controls that Salesforce places around its generative AI and Agentforce features. Salesforce Help describes it as a secure AI architecture built into the Salesforce platform. It sits between a large language model (LLM) and your employees and customers.

Why did Salesforce create the Einstein Trust Layer? To provide data security and privacy controls for generative AI. Trailhead's module on the Trust Layer says Salesforce built it to help organizations use generative AI safely and securely, so customers get the benefit of generative AI without compromising their data security and privacy controls. The same unit names Trust as Salesforce's #1 value.

Einstein Trust Layer components

Salesforce Help lists six components, named here as Salesforce names them:

  • Zero-Data Retention Policy: under Salesforce's agreements with external model providers, such as OpenAI, no data is used for LLM model training or product improvements by third-party LLMs, and no data is retained by them.
  • Dynamic Grounding with Secure Data Retrieval: prompts are grounded only with data the running user can access, keeping role-based controls and field-level security in place.
  • Prompt Defense: system policies that help limit hallucinations and reduce the likelihood of unintended or harmful output. Salesforce describes them as one way to defend against jailbreaking and prompt injection attacks.
  • Data Masking: sensitive data is detected by pattern or by field classification and replaced with placeholder text before the prompt reaches the LLM, then demasked in the response.
  • Toxicity Scoring: content is scored for toxicity, and the scores are logged in Data 360 as part of the audit trail.
  • Audit: prompts, responses and trust signals are logged and stored in Data 360, with prebuilt reports and dashboards.

Audit and feedback data sit in your own Data 360 instance (formerly Data Cloud), where you control retention; Salesforce also stores them for 30 days for compliance purposes.

How toxicity scoring works

Salesforce's toxicity detection uses machine learning models to flag toxic content in prompts and responses. Detection on responses is on by default and cannot be changed. Detection on prompts is a beta that is off by default. The models recognize five categories: violence, sexual, profanity, hate and physical. Each category gets a score, plus an overall score, on a range from 0 to 1 where 1 is the most toxic. Scores are stored in Data 360. Salesforce notes that no model can guarantee 100% accuracy.

Agentforce agents and data masking

Salesforce Help states that pattern-based and field-based LLM data masking is disabled for agents. Its reason is that masking can remove context an agent needs, which affects the accuracy and relevance of the response. A prompt template called through an agent action runs without masking, even if the same template is masked when used directly. The zero-data retention policy still applies to agent traffic. Does the Einstein Trust Layer mask data for Agentforce agents? has the detail.

Einstein GPT Trust Layer: the 2023 name

Salesforce announced the Einstein GPT Trust Layer on 12 June 2023 as part of AI Cloud and said it would be generally available that month. Salesforce Help now calls it the Einstein Trust Layer, and Trailhead titles its module The Agentforce Trust Layer. The names refer to the same layer.

Models you connect yourself

Salesforce's bring your own LLM feature (BYOLLM) in AI Models routes requests through the Models API, and Salesforce's developer documentation says Trust Layer features are fully supported on that path. Inference then runs on your own provider instance under your own credentials, so check the retention terms on that account. Salesforce also states that Trust Layer capabilities apply only to generative AI and Agentforce features. A request that another application sends to a model provider outside those features does not pass through the Trust Layer. The masking, access checks and audit on that path are whatever that application provides, and retention is set by whichever contract covers that provider account.

Where GPTfy fits

GPTfy runs inside your Salesforce org and connects the model you choose (BYOM) through admin-controlled Named Credentials. It masks data across four layers before the callout, covering 16 of the 18 HIPAA PHI identifiers, and writes a Security Audit Record for each prompt and response. Raw data stays in your Salesforce org; masked data is sent to your AI provider. It works alongside the Einstein Trust Layer rather than replacing it.

Why Einstein Trust Layer matters

The Trust Layer is what a security reviewer evaluates when a Salesforce team asks to turn on generative AI or Agentforce. Each component answers a review question. Can the model see records the user cannot? Secure data retrieval limits grounding to what the user can access. Which sensitive values reach a third party? That depends on masking. Will the provider keep or train on the data? The zero-data retention policy covers that. Can you produce what was sent and returned? That is the audit trail's job. The answers differ by feature. Masking applies to embedded features such as Einstein Service Replies but is disabled for agents, so a design document written for one does not describe an Agentforce rollout. Audit data lives in Data 360, and producing it depends on generative AI data collection and storage being turned on. Teams that map each AI feature to the controls that apply to it avoid discovering gaps after go-live, when a regulator or internal auditor asks for evidence.

Einstein Trust Layer in practice

  1. Example 1

    Service reply drafted with masking on

    A service rep uses Einstein Service Replies on a case that includes a customer's name and Social Security number. With those data types selected for masking in Einstein Trust Layer setup, the Trust Layer detects them and replaces them with placeholders before the prompt reaches the LLM and restored in the draft the rep sees. With audit data collection on, the audit trail keeps both the original and the masked prompt.

  2. Example 2

    Agent grounded on the running user's access

    An Agentforce agent answers a question about an account. Retrieval uses the permissions of the user it runs as, so it can ground only on records and fields that user can see. Because masking is disabled for agents, those values reach the model unmasked, under Salesforce's zero-data retention policy with the provider.

  3. Example 3

    One prompt template, two data flows

    A prompt template used directly in service replies applies masking based on the Einstein Trust Layer configuration. The same template called through an agent action runs with masking disabled. A security review should record these as two separate data flows.

  4. Example 4

    Reviewing toxicity scores after a pilot

    After a pilot, an admin opens the Trust Layer prebuilt reports and dashboards in Data 360 to review toxicity trends by feature and over time, and checks responses with overall scores close to 1 before widening the rollout.

Frequently asked

Einstein Trust Layer, common questions

  • Why did Salesforce create the Einstein Trust Layer?
    To provide data security and privacy controls for generative AI. Trailhead's module on the Trust Layer says Salesforce built it to help organizations use generative AI safely and securely, and that it lets customers get the benefit of generative AI without compromising their data security and privacy controls. The same unit names Trust as Salesforce's #1 value, the answer to the second question in that unit's quiz.
  • What is toxicity scoring in the Einstein Trust Layer?
    Machine learning models score prompts and responses for toxic content in five categories: violence, sexual, profanity, hate and physical. Each category gets a score and the Trust Layer adds an overall score, from 0 to 1, where 1 is the most toxic. Scores are logged in the audit trail in Data 360. Detection on responses is on by default; detection on prompts is a beta that is off by default.
  • Does Salesforce let AI providers train models on my data?
    Salesforce Help says that under its zero-data retention policy with external model providers, such as OpenAI, no data is used for LLM model training or product improvements by third-party LLMs, and no data is retained by them. Salesforce's agent documentation adds that information sent to the LLM is not retained, viewed, or used for training by the provider after the response is sent back to Salesforce.
  • Does the Einstein Trust Layer mask data for Agentforce agents?
    No. Salesforce Help states that pattern-based and field-based LLM data masking is disabled for agents, because masking can remove context an agent needs and affect the accuracy and relevance of its response. Masking is available for embedded generative AI features such as Einstein Service Replies and Einstein Work Summaries. The zero-data retention policy still applies to agent traffic.
  • Does the Einstein Trust Layer cover a model I license myself?
    It depends on the path. Salesforce's BYOLLM feature in AI Models routes requests through the Models API, and Salesforce says Trust Layer features are fully supported there; inference runs on your own provider instance, so check the retention terms on that account. Trust Layer capabilities apply only to Salesforce generative AI and Agentforce features. An application that sends requests to a provider outside them is not covered by it, so check what masking, access checks and audit that application provides, and whose contract with the provider sets retention.
  • What was the Einstein GPT Trust Layer?
    The original name. Salesforce announced the Einstein GPT Trust Layer on 12 June 2023 as part of AI Cloud, saying it would help prevent LLMs from retaining sensitive customer data and would be generally available that month. Salesforce Help now calls it the Einstein Trust Layer, and Trailhead titles its module The Agentforce Trust Layer.
  • Does masking mean nothing is sent to the AI provider?
    No. Masking changes what is sent, not whether a request is sent. With the Einstein Trust Layer, the prompt still goes to the LLM: values detected for masking are replaced with placeholders, the rest of the prompt is sent as written, and the response is demasked when it returns. Masking reduces what the provider sees; it does not stop the callout.
  • Is a trust layer enough for HIPAA or GDPR?
    It is one control among several, not a certification. Masking reduces what reaches a third party and audit records support an access review, but scope, retention terms with your provider and your own policies all matter. Check which features you use: Einstein Trust Layer masking is disabled for agents, so an agent rollout needs its own review.

Go deeper

Learn more about Einstein Trust Layer