Einstein Copilot answers questions by grounding its prompts in whatever record data sits in the org it's connected to, and it does not care whether that org is production or a sandbox spun up for testing last Tuesday. If your sandbox still holds real customer names, case notes, and contact details, every prompt a tester types can push that data straight into a generative model's context window. Einstein Copilot sandbox masking is not a nice-to-have for teams building prompt templates and custom actions. It is the control that decides whether your test environment leaks GDPR-covered data into an AI feature nobody audited for it.

Most admins think about masking in terms of reports, list views, and the occasional integration user pulling data via API. Copilot changes that calculus. It reads records dynamically, assembles them into natural-language context, and hands that context to a model that generates a response a human then reads, copies, or acts on. Masking has to happen before any of that, not after.

How Copilot Grounds Its Answers in Your Org Data

Copilot actions retrieve records through standard objects, custom objects, and in many orgs, flows that query related lists before handing results to the prompt template. A support rep asking "summarize this customer's last three cases" triggers a retrieval that pulls Case subject lines, descriptions, and often the Contact record attached to them.

That retrieval step is where masking either does its job or doesn't. If the sandbox has been refreshed without a masking pass, the retrieval pulls the real subject line, the real case description, and the real contact email. The model doesn't know it's looking at test data. It just summarizes what's in front of it, and what's in front of it might be an actual customer's billing dispute or medical note.

Prompt templates compound this. Admins build templates with merge fields like {!Case.Description} or {!Contact.Email}, and those merge fields resolve against whatever data exists at runtime. A template built and tested in a masked sandbox behaves identically in an unmasked one. The only difference is what shows up on screen, and in this case, what shows up on screen is a live PII record sitting inside a generated response.

Four Leak Paths Specific to Generative Prompts

Field-level masking stops a lot of accidental exposure, but Copilot introduces leak paths that standard masking tools weren't designed around. We see four show up repeatedly in customer environments.

Each of these paths bypasses the usual masking checkpoints because they're generated at runtime, not stored in a field your masking policy already scans.

Why Standard Field Masking Isn't Built for This

Most masking tools, including earlier versions of our own approach, work by scanning known PII fields on known objects and replacing values during a refresh. That catches Contact.Email, Lead.Phone, and the usual suspects. It does not catch a value that gets assembled on the fly from three different fields and handed to a model as unstructured text.

Copilot's context windows are exactly that kind of assembly. A prompt template referencing Case.Description, Contact.Name, and Opportunity.Amount combines three separately-masked (or separately-missed) fields into one block of text. If even one of those three fields wasn't covered by your masking policy, the generated output can still contain real data, and the masked fields around it won't flag the problem because the leak isn't in a field at all. It's in the model's response.

This is why we tell Salesforce architects to stop treating Copilot as just another consumer of sandbox data and start treating it as a new surface that needs its own masking review. The question isn't "did we mask Contact and Case" anymore. It's "did we mask every field that any active prompt template, action, or flow can touch."

Free-Text and Summarization Fields Compound the Risk

Free-text fields are already a known weak spot for masking tools, since pattern-matching a description field for names, addresses, or account numbers is harder than swapping a structured email field. Copilot makes this worse because its entire value proposition is summarizing and rephrasing free text.

A Case Description field with an unmasked customer complaint doesn't just sit there as raw data anymore. Copilot reads it, restates it, and often expands on it with inferred context, meaning the same PII can show up phrased differently in multiple places: the original field, the generated summary, the chat response, and potentially the feedback log. Masking one occurrence and missing the others doesn't solve the problem, because the model has already repackaged the data in a form that's harder to search for and flag.

Table stakes for any masking approach used alongside Copilot: it has to replace the PII in the source field with something that still reads like plausible test data, so when the model summarizes it, the summary itself is also harmless.

Masking gapWhy Copilot makes it worse
Free-text fields skipped by pattern rulesCopilot summarizes and rephrases them, spreading the PII into new generated text
Merge fields in prompt templatesResolve against live data every time the template runs, with no masking checkpoint
Multi-turn chat contextCarries earlier unmasked values forward into later responses
Feedback and tuning logsStore generated output, including any PII the model repeated, outside the original object

A Masking Checklist Before You Enable Copilot in Sandbox

If your org has Copilot actions or prompt templates active in any sandbox, run through this before the next refresh, not after a tester reports something odd in a generated response.

None of this is exotic. It's the same discipline GDPR's Article 25 expects for any system processing personal data by design, applied to a feature that happens to generate new text instead of just displaying existing fields.

Where MaskEzee Fits

MaskEzee replaces real PII with realistic fake data before every sandbox refresh, and it's built to cover the fields Copilot actually touches, not just the obvious ones. That includes free-text Case and Opportunity fields, Contact and Lead records referenced by prompt templates, and custom objects wired into Copilot actions through flow-triggered automation.

Because the replacement data is structurally realistic, consistent names, valid-looking emails, plausible case descriptions, Copilot's summaries and generated responses stay useful for testing without ever touching a real customer's data. That's the actual goal here: a sandbox where admins can build and test Copilot prompt templates with confidence, instead of hoping nobody asks the model to summarize the wrong case.

Frequently Asked Questions

Does Einstein Copilot send sandbox data to a public AI model?

Copilot's underlying model processes whatever data is grounded into the prompt at runtime, which can include live sandbox records if they haven't been masked. Salesforce's trust layer is designed to prevent that data from being used to train a shared global model, but the prompt and response still pass through processing and can be logged for feedback and tuning. If the sandbox data is real customer PII, it has still left its original field and entered a new processing path, which is exactly what GDPR's data minimization principle is meant to prevent.

Can standard Salesforce masking tools handle Copilot prompt data?

Standard masking tools that only scan known PII fields on known objects will miss data assembled dynamically into a Copilot prompt template or generated in a multi-turn conversation. They also tend to under-cover free-text fields, which Copilot relies on heavily for summarization. A masking approach built for Copilot-enabled orgs needs to cover every field referenced by active prompt templates and actions, not just a default PII field list.

What happens to PII in Copilot feedback logs?

Thumbs-up and thumbs-down feedback on generated responses gets stored separately from the original record, often for review and model tuning purposes. If the generated response contained unmasked PII, that PII now exists in the feedback log as well, outside the object where your masking policy originally applied. These logs need their own review or purge process since a standard sandbox refresh won't necessarily clear them.

Should masking run before or after Copilot indexes sandbox data?

Masking needs to complete before any Copilot retrieval or indexing job runs against the refreshed sandbox. If masking and indexing run in parallel, there's a real risk Copilot reads and caches unmasked data before the replacement finishes. Sequencing this correctly is part of setting up the refresh pipeline, not something to leave to default job ordering.

Why do free-text fields matter more for Copilot than for normal masking?

Copilot's core function is summarizing and rephrasing text, so any PII sitting in an unmasked free-text field doesn't just stay put, it gets restated in generated summaries, chat responses, and sometimes feedback logs. That spreads the exposure across multiple locations instead of one field, making it harder to find and remove after the fact. Masking free-text fields with realistic replacement content, not blank values, prevents this spread while keeping the data usable for testing.