Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Salesforce · Agentforce Specialist

Einstein Trust Layer and Model Controls

Agentforce Specialist · Lesson 3 of 14 · 17:19

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Salesforce Agentforce Specialist exam. In this lesson: the Einstein Trust Layer (secure grounding, prompt defense, data masking, zero data retention, toxicity detection, and the audit trail in Data 360), AI Models and bringing your own model, which model applies at the org, template, agent, and subagent levels, and how to turn off a model provider or hide a model. Includes three original practice questions, with Sunmeadow Solar, a fictional solar installer, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of December 2026.

Two questions from legal

Before Sunmeadow turns on its first templates, the legal team asks two questions. Where does customer data go when a prompt is sent to a model, and what stays behind? And can the company keep one model provider out of the org entirely?

What the Trust Layer is

The Einstein Trust Layer is the security architecture built into the platform, a mix of agreements, technologies, and controls. Every prompt from Prompt Builder or from an agent passes through it, on the way to the model and on the way back. You do not call it yourself, but you configure parts of it, and the exam asks what each part does.

Secure grounding and prompt defense

First, grounding is secure: data is retrieved with the permissions of the user who runs the prompt, so roles and field level security still apply. A technician who cannot see a field cannot leak it through a template. Then prompt defense adds system policies to the prompt, which limit hallucinations and harmful output.

Data masking

Next, data masking replaces sensitive values, such as phone numbers or identity numbers, before the prompt reaches the model. You choose which kinds of data are masked, by region and by language. And the data is encrypted in transit, all the way to the model provider.

Zero data retention

At the provider, zero data retention applies. Salesforce has agreements with the providers of the models, so your prompts and responses are not kept, and are never used to train their models. Nobody at the provider reads them either, unless there is a documented suspicion of illegal activity.

Toxicity detection

On the way back, toxicity detection scores each generated response for harmful content, and the score is logged in Data 360. A score does not rewrite the text, so for anything that reaches a customer, a person should still review it. That review is part of the design, not a sign that the tool failed.

Audit trail and feedback

Finally, the audit trail keeps the record. Prompts, responses, toxicity scores, and user feedback are stored in Data 360, once you turn on audit and feedback data. You can build reports and dashboards on them, to answer a compliance question or to improve a template. And the feedback, a thumbs up or down from users, shows which outputs need work.

Models in your org

Now the models themselves. In AI Models, you see the models that Salesforce manages, which are on by default, and you can try them in a playground. You can also bring your own model, from your own account with a cloud provider, and it joins the model library next to the others.

Which model runs

A default model is set for the org in Setup. A prompt template can keep that default, or select another model in the workspace. An agent can set its own model, which replaces the org default for that agent. And a subagent can also set its own, which wins over the agent's choice.

Turning off a provider

To keep a provider out of the org, go to Setup, then Einstein Setup, then Configure Model Providers, and turn that provider off. Everything that uses its models stops: agents, actions, prompt templates, the Testing Center, and API calls. The change takes effect within about ten minutes. So find what depends on that provider first, and test the change in a sandbox.

Hiding a model

A lighter control is to hide one model. A template that already uses a hidden model keeps working, but a clone of that template can no longer choose it. So hiding stops new use of a model, while turning off its provider stops all use.

Recap

Let's recap. The Trust Layer protects every prompt, from Prompt Builder or from an agent, on the way to the model and back. Secure grounding keeps the user's permissions, prompt defense adds policies, and masking hides sensitive values. Zero data retention means the provider keeps nothing, and trains on nothing. Toxicity scores and the audit trail land in Data 360, for review and reports. And to block a model provider, turn it off in Einstein Setup, while hiding a model only stops new use.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Legal asks what stops an outside model provider from storing customer data sent in prompts, or training on it. Which Trust Layer feature answers this?

    • Zero data retention
    • Toxicity detection
    • Secure grounding
    • Field-level security on the template
    Show the answer

    Zero data retention

    Zero data retention agreements mean the provider does not keep the data, and does not train on it. “Toxicity detection” is wrong, because toxicity detection scores the generated text, and does not control what the provider keeps. “Secure grounding” is wrong, since secure grounding decides what data enters the prompt, not what happens to it at the provider. And “Field-level security on the template” is wrong, because field level security limits what the running user sees, not what the provider stores.

  2. Compliance wants to review last month’s prompts, the responses, and their toxicity scores. Where does the admin find them?

    • In the template’s version history
    • In the prompt defense settings
    • In the audit data stored in Data 360
    • In the workspace preview
    Show the answer

    In the audit data stored in Data 360

    The Trust Layer stores prompts, responses, and scores as audit data in Data 360, ready for reports. “In the template’s version history” is wrong, because a template's versions keep its wording, not the prompts it sent. “In the prompt defense settings” is wrong, since prompt defense is a set of policies, and does not keep records. And “In the workspace preview” is wrong, because a preview shows one test run, not last month's traffic.

  3. Security says that no feature in the org may use one model provider anymore. What should the admin do?

    • Hide that provider’s models
    • Remove the Prompt Template User permission set
    • Change the org’s default model
    • Turn off the provider in Configure Model Providers
    Show the answer

    Turn off the provider in Configure Model Providers

    Turning the provider off in Configure Model Providers stops every feature that uses its models. “Hide that provider’s models” is wrong, because a hidden model still works in the templates that already use it. “Remove the Prompt Template User permission set” is wrong, since removing a permission set stops people from running templates, but agents and other features would still call that provider. And “Change the org’s default model” is wrong, because templates and agents that select that provider's model would still use it.