PII and Data Governance
People often share personal data with an AI Employee. An employee asks to update their SSN, or pastes their bank details into a payroll question. Ema looks for this data in what people send, and decides how each place gets it: the person who sent it, other people, the AI model, integrations and logs.
Ema turns PII protection on for each workspace. Then you turn it on for each AI Employee that needs it. New AI Employees start with protection off. If you don't see PII Management under Settings → Governance, it isn't on for your workspace, and Ema doesn't mask personal data. To turn it on, ask your Ema representative.
Types of personal data
Ema finds 52 kinds of personal data and sorts them into six types:

For Government IDs and Passwords and Keys, select See examples on the tab to list every kind, including the 15 countries. To add a type, contact your Ema representative.
Where personal data shows up
Personal data can show up in five places:
| Place | What it means |
|---|---|
| Your own data, on screen | When you view your own details |
| Others' data, on screen | Someone else's details you can access |
| AI model | What the AI model receives |
| Integrations | What connected apps receive for a task |
| Logs | Ema system logs |
In a chat, data belongs to the person who typed it. If Jane types her SSN, it is her own data. Anyone else who views it, such as an admin reading her conversation, sees others' data.
What Ema does in each place
In each place, Ema shows a value in one of four ways:
| Label | Meaning | Example |
|---|---|---|
| Original | Shown or sent exactly as entered. | 123-45-6789 |
| Partial mask | Only part of the value is visible. | •••-••-6789 |
| Full mask | Hidden completely. Nothing is visible. | •••••• |
| Pseudonym | A stand-in that replaces the real value. | [SSN_48213097] |
Which one depends on the type and the place. Ema sets these rules, and they are the same for every workspace.
| Type | Your own data, on screen | Others' data, on screen | AI model | Integrations | Logs |
|---|---|---|---|---|---|
| Personal details | Original | Partial mask | Pseudonym | Original | Full mask |
| Device and Location details | Original | Full mask | Pseudonym | Original | Full mask |
| Payment and Bank details | Original | Partial mask | Pseudonym | Original | Full mask |
| Medical details | Original | Full mask | Pseudonym | Original | Full mask |
| Government IDs | Original | Partial mask | Pseudonym | Original | Full mask |
| Passwords and Keys | Original | Full mask | Pseudonym | Original | Full mask |
You always see your own data. The AI model always gets a pseudonym. Integrations always get the original, so they can do their task. Logs never show the value. Only what other people see changes with the type.
An example
Jane sends this message to an HR AI Employee:
My SSN is 123-45-6789. Please update it in my HR record.
Jane sees her own SSN. An admin who reads her conversation later sees •••-••-6789. The AI model gets [SSN_48213097], and Ema puts the real value back before Jane sees the reply. When the AI Employee updates her record, the HR system gets the real SSN.
See the policy in your workspace
System admins: go to Settings → Governance → PII Management. Select Preview to walk through a sample message.

Builders: open any AI Employee, go to Configuration, and select View workspace policy → on the Data Protection card.
Turn protection on for an AI Employee
Each AI Employee has a Data Protection card at the bottom of its Configuration tab. A new AI Employee starts with protection off, so turn it on when people will send it personal data. The switch covers chat messages, answers to review requests, inputs that start a run, and dashboard rows. It also covers tool results during a run. It never changes the instructions you write as a builder.
Keep protection on unless the AI model needs the real value to do its job. For example, an AI Employee that checks the domain of an email address can't do that with a pseudonym. When protection is off, Ema doesn't mask anything people send to this AI Employee. The AI model and other people see it exactly as entered.
- Open the AI Employee and go to the Configuration tab.
- Scroll down to Data Protection.
- Turn on Protect personal data in messages. To turn protection off, turn the same switch off.

The change applies from the next message. You don't need to publish again. To change the switch, you need edit access to the AI Employee. Without it, the switch is greyed out.
Data lifecycle
The retention orchestrator manages the full data lifecycle across all platform services, including the LLM gateway's two append-only tables. Both tables are purged by the retention service on time-based expiry, workspace churn, and data subject erasure requests.
| Data type | Table | Default retention | Included in data subject erasure |
|---|---|---|---|
llm_token_usage | llmgateway.token_usage | 365 days | No. Holds foreign-key UUIDs and token counts only, no free text. |
llm_request_log | llmgateway.request_response_logs | 90 days | Yes. error_message can contain provider error text that quotes a prompt. |
Both tables are workspace-scoped and carry no AI Employee column. A purge request scoped to a single AI Employee is refused rather than silently widened to the whole workspace. The retention service owns the windows and the triggers; the LLM gateway only deletes rows it is instructed to remove.
Legal holds and audit retention
A legal hold freezes a workspace's audit events for litigation or investigation. While a hold is active, the platform's audit retention purge will not delete any events for that workspace, even if they have passed their normal retention window.
The behavior is fail-closed: if the platform cannot confirm whether a hold is active (for example, because of a temporary service disruption), the purge is also skipped for that workspace. Keeping events past their window is recoverable; deleting them under a hold is not. A hold on one workspace does not affect the purge schedule for any other workspace.
Purge does not resume automatically on hold release. The retention sweep runs on a daily cycle. Events that were preserved under a hold are purged on the next sweep after the hold is released, provided their retention window has passed.
What's next
- Audit log: see who did what in your workspace.
- Governance and permissions: which roles can open Governance and edit an AI Employee.
- Integrations Hub: connect the apps your AI Employees use.