Sub topic 1
Why LLMs Create New Data Risks
Prerequisites
Assume you know Salesforce objects, fields, and user permissions. You should also understand that a large language model (LLM) generates text from a prompt, which is the instruction and context sent to it.
Why LLMs Create New Data Risks
An LLM can produce useful summaries, recommendations, and replies. However, a prompt may contain customer records, internal notes, personally identifiable information (PII), or confidential business data. Sending that data to a model creates risks:
- The prompt could include more data than the user needs.
- Sensitive values could appear in the model's response.
- A model provider might retain prompts or use them for other purposes.
- An attacker could try to manipulate the prompt or retrieve hidden information.
- Incorrect, incomplete, or poorly governed CRM data can produce an unsafe answer.
These risks are different from ordinary Salesforce access risks because the data is being transformed into natural language and processed by an LLM.
Where Agentforce Agents Send Prompts
An Agentforce agent uses topics and actions to decide what to do. An action might retrieve case fields, summarize a record, or call a business process. The agent combines the user's request with instructions and retrieved Salesforce data to create a prompt.
The prompt does not go directly from the browser to a model. Salesforce processes it through controls in the Einstein Trust Layer before sending it to a configured model endpoint.
What the Einstein Trust Layer Is
The Einstein Trust Layer is a set of Salesforce controls between CRM data, Agentforce, and the LLM. It helps enforce access, reduce exposure of sensitive values, defend prompts, and inspect responses.
The layer improves safety, but it does not replace good permissions or careful agent design.
Following One Request Through the Layer
The main sequence is:
- The user asks a question.
- Agentforce retrieves relevant data.
- Salesforce grounds the prompt with that data.
- Trust Layer protections process the prompt.
- The gateway sends the request to the model.
- Salesforce checks and returns the response.
Secure Data Retrieval
Secure retrieval means the agent fetches data according to the running user's access. Record-level sharing, object permissions, and field-level security limit what can be added to the prompt. Grounding should therefore provide relevant data that the user is already allowed to see.
An action that bypasses those controls can expose information even when the LLM is configured safely. Review permissions and retrieval logic together.
Exercise
Why must secure retrieval happen before grounding?
Show answer
Grounding adds CRM data to the prompt, so retrieval must first limit that data to records and fields the running user may access.