Sub topic 15
Privacy and Governance When Reviewing Conversations
This chapter assumes you can open a conversation in Agentforce and read its reasoning steps. It also assumes you know what the Einstein Trust Layer is at a high level. It covers how to review real customer conversations without creating new privacy risk. Exact permission names, retention settings, and Data Cloud object names vary by org and release, so check Salesforce Help for your edition.
Why review is a privacy event
Every earlier chapter in this tutorial asks you to read real conversations. A conversation is customer data. Customers type names, addresses, order numbers, health details, and complaints into a chat without thinking about who will read it later.
Reviewing conversations is a new use of that data. Your legal basis, internal policy, and privacy notice should cover it. Your team needs three rules:
- Only people with a reason can see conversations.
- Reviewers see the least data that still lets them diagnose the problem.
- Copies of conversations do not spread beyond the system that governs them.
What counts as sensitive in conversation data
Sensitive data appears in more places than the customer's messages. Check each of these:
| Data | Where it appears | Typical risk |
|---|---|---|
| Customer messages | Session transcript | Customers volunteer personal data you never asked for |
| Agent responses | Session transcript | The agent may repeat data from a record |
| Action inputs and outputs | Reasoning trace | Record fields, account IDs, and addresses |
| Grounding content | Retrieved knowledge or record data | Internal-only text shown in a trace |
| Feedback comments | Feedback data | Free text with names or complaints |
| Exports and screenshots | Spreadsheets, tickets, chat tools | Copies outside access controls |
The reasoning trace is the easiest to overlook. A transcript may look harmless while the action output in the trace holds a full customer record.
Least privilege for reviewers
Give review access to the roles that need it, and separate it from build access. A builder who edits topics does not automatically need to read every customer's messages.
| Role | Needs | Suggested access |
|---|---|---|
| Agent builder | Aggregated metrics, test results | Dashboards and test runs, not raw transcripts by default |
| Conversation reviewer | Sampled transcripts and traces | Read access to sessions, time-limited |
| Data or privacy officer | Audit trail, retention settings | Read access to audit data and configuration |
| Executive sponsor | Trends | Dashboards only |
Grant access with permission sets, not by sharing a login. Review the list on a schedule, for example quarterly, and remove people who changed roles. Because reviewers see data that ordinary users of the Salesforce records may not, check that conversation access does not bypass your record-level sharing rules. If a reviewer can read an agent's output about an account they could not open directly, treat that as a gap.
What the Trust Layer does and does not cover
The Einstein Trust Layer sits between your org and the large language model. Its documented protections include masking of detected personal data in prompts, a zero-data-retention arrangement with supported model providers, toxicity detection, and an audit trail. These protect the prompt path to the model.
They do not decide who in your company can read stored conversations. Masking applies to what is sent to the model. It does not guarantee that a transcript, export, or ticket you create later is free of personal data. Masking also depends on detection, and detection misses things such as an unusual ID format or a name inside a sentence. Plan for misses.
The audit trail answers a governance question: what did the agent send, and what came back. Use it when a privacy officer asks you to show how a particular response was produced.
A review access flow
The diagram shows a decision path for a reviewer who wants to inspect a conversation.
Most questions are answered at the first or second step. A drop in resolution rate for one topic, for example, calls for a sample of that topic's transcripts, not every session.
Minimize data before it leaves the system
Sometimes you must move conversation text out of Agentforce, for example to build a test set or to discuss a failure with colleagues. Redact it first. The script below replaces common identifiers with placeholders. It is a simple safety net for exports, and it does not replace Trust Layer masking or a privacy review.
import re
# Order matters: match specific formats before the broad phone pattern.
# The ORD- format is hypothetical; replace it with your own order number format.
PATTERNS = [
("EMAIL", re.compile(r"[\w.+-]+@[\w-]+\.[\w.-]+")),
("ORDER", re.compile(r"\bORD-\d{6,}\b")),
("PHONE", re.compile(r"\+?\d[\d\s().-]{7,}\d")),
]
def redact(text: str) -> str:
for label, pattern in PATTERNS:
text = pattern.sub(f"[{label}]", text)
return text
message = "Email me at [email protected] about ORD-1234567, or call +1 415 555 0100."
print(redact(message))The output is:
Email me at [EMAIL] about [ORDER], or call [PHONE].Regular expressions cannot find names or street addresses reliably. For free text, add a human check, and keep the sample small so that check is practical.
Retention, deletion, and customer requests
Decide how long review artifacts live, and write it down.
- Keep raw session data in the system of record for as long as your retention policy says, and no longer.
- Keep review copies, such as exported samples, for the length of the investigation, then delete them.
- Keep redacted regression test cases as long as they are useful. They should contain no real identifiers.
- If a customer asks for deletion under privacy law, check whether their conversations exist in exports, tickets, or test sets as well as in the original system. Copies you cannot find are copies you cannot delete.
Keep a simple register of every place conversation text has been copied. The register is short when you follow the rule above that copies stay rare.
Turning real conversations into test cases safely
Earlier in this tutorial you turned a failed conversation into a regression test with an utterance, expected topic, and expected behavior. When you do this with real data, rewrite the utterance. Keep the intent and structure, and replace the details:
Original: I want to send back the shoes from order ORD-4471920, my email is [email protected].
Test utterance: I want to send back the shoes I bought last week.The test still checks topic selection for a returns request. It carries no customer's identity. The same applies to expected responses. Do not paste an agent reply that contains a real address or amount into a test.
Common errors
- Sharing a screenshot of a trace in a chat channel. The screenshot sits outside access controls and is hard to delete. Share the conversation ID and let people with access open it.
- Assuming masking makes exports safe. Masking covers the model prompt. Redact exports yourself.
- Giving every builder transcript access. Use dashboards for most work and sampled access for diagnosis.
- Reviewing without a record. If nobody logs who looked at what, you cannot answer an audit question.
- Reading free-text feedback as harmless. Comments often contain names and complaints about named employees.
Exercises
Exercise
A builder wants to know why the Returns topic has a high escalation rate. Using the access flow in this chapter, what is the least data you should give them first, and what would justify moving to the next level?
Show answer
Start with the dashboard breakdown of escalations by topic, which is aggregate data. If it does not explain the cause, give time-limited read access to a small sample of Returns transcripts. Full reasoning traces need a further reason, such as the transcript not showing why an action was skipped, and should go through privacy approval and be logged.
Exercise
Why is it not enough to rely on Trust Layer data masking when you export 50 transcripts into a spreadsheet for a review meeting?
Show answer
Masking applies to the prompt sent to the model, and it relies on detection that can miss identifiers. It does not control who can read stored transcripts or what ends up in an export. You must redact the export yourself, share the minimum rows, restrict the file to the reviewers, and delete it afterward.