Some of the most sensitive information your organization holds lives in free text. It turns up as a Social Security number in an email or a credit card number typed into a chat with an AI agent. Once that text feeds search and AI agents, far more humans can read those details. Traditional data masking can hide a whole column of structured data, but it cannot reach inside a paragraph of unstructured text to mask one sensitive phrase.
Dynamic data masking in Data 360 now covers the documents you index for search and AI grounding. It also covers text fields in data tables, like agent conversation logs. In both places, it masks only the sensitive values at query time, based on who is asking. The rest of the text stays readable, so people and agents can still use it.
Set up masking for documents and text fields
Enable tagging, then create the policies that hide sensitive information.
Why unstructured data is the governance blind spot
Most teams already govern their structured data well. You can mask a credit card column or hide a customer record from users who have no reason to see it. Free text has been the blind spot. The same personal and health information you carefully protect in a database sits in plain view inside emails, PDFs, chat transcripts, and feedback comments.
Until now, the choices for that text were blunt. You could hide an entire document from a user, which defeats the point of indexing it. For a text field, masking the whole field hides the entire conversation from the people debugging an agent. Or you could leave the sensitive text fully exposed, which is a compliance risk the moment access widens.
How unstructured data masking works
Both capabilities rely on the Dynamic Data Masking feature already in use for structured columns. You decide who a policy applies to based on each user’s permissions. Data 360 enforces it in query results and leaves the stored data unchanged. Nothing is scanned until you opt the content in.
- In documents. You pick which document objects get automatic content tagging. Tags are generated when the corresponding search indexes are created, and assigned depending on the specified confidence threshold. The masking policy then hides every value that carries a tag you select, for example a PII tag.
- In text fields. You attach the Free Text Field tag to the column you want covered, like the message text in agent conversation logs. This enables Data 360 to detect sensitive values inside that field at query time. You write the masking policy the same way you do today. For example, the policy can mask any email addresses Data 360 detects.
Document detection reads context to find what patterns miss
Masking depends on detectors finding the right values in the first place. Older approaches relied on fixed patterns, which work for values with a predictable shape, like a card number. Those patterns fall apart on information that only makes sense in context. A diagnosis mentioned in passing or an account reference phrased in an unusual way slips right past a pattern rule.
Data 360 uses AI-driven detection that also reads the surrounding words and phrases to get more context. It detects sensitive content that pattern matching misses, and it avoids flagging harmless text that only looks risky. Both kinds of error are costly: over-masking strips the meaning out of a document, and under-masking leaks the data you set out to protect. Document detection also works with custom classifications you define for the regulated content in your industry.
See it in action
A bank’s loan application document holds the customer’s Social Security and driver’s license numbers. It also holds the loan type and terms. Two employees need to work with it.
- A loan underwriter (Alex, in the example below) asks an AI agent about the application. The answer shows everything, including the sensitive numbers.
- A loan specialist (Shawn) asks the same question and gets the same answer with the Social Security and driver’s license numbers masked. The loan terms read normally.
Both answers come from the same document. The policy decides what each person sees when they ask.
The same bank’s sales team uses an employee agent to look up records, and Data 360 keeps a transcript of each conversation the agent has. When a rep asks “What are my new leads?”, the agent’s reply in the transcript lists each lead’s contact details. An operations manager debugging the agent opens that transcript and sees the phone numbers and email addresses masked. The rest of the reply stays readable, so the operations manager can still follow what the agent returned.
Dashboards on those logs keep working because masking applies only when someone reads individual records. Metrics such as session volume and abandonment rates are unaffected.
Key takeaways
- Unstructured data governance makes your documents and text fields trusted enterprise context for agents and humans in the agentic era.
- Sensitive values are masked at the point of access based on permissions, so you can ground AI agents on your documents and allow analytics and operations teams to access agent conversation transcripts.
FAQ
Does this change my stored data? No. Masking applies only to query results, so your stored data stays intact.
What can it mask? Sensitive values inside the documents you index for search and AI grounding, including PDFs, emails, chats, and text files. It also masks values inside text fields you opt in on data tables, such as agent conversation logs.
Will masking a text field break my dashboards? No. Unstructured data masking applies only when individual records are read, so aggregations and metrics built on the same data are unaffected.
Who sees the masked version? Anyone the policy targets. Data 360 applies masking at query time based on user permissions, so it holds for Agentforce and for other agents that connect through APIs or MCP. It also covers data you access through zero copy.
Get hands-on with Data Governance in Data 360
Start with the basics of data governance in Data 360, including AI tagging and policy-based governance.
Then plan your data governance strategy and set up policies in Data 360.











