PII Masking
Personally identifiable information (PII) includes information such as a person's name, email address, or phone number. PII masking replaces detected information with labels before it is sent to the language model in supported chat processing.
Use this setting when people may include personal information in requests and your organization wants to reduce what is exposed to the model.
Before You Start
You need permission to change project settings. Agree with your organization's data owner which information should be masked and use fictional data when testing.
Turn On PII Masking
- Open Project Settings → General.
- Under Project Configs, turn on Mask Personally Identifiable Information (PII).
- Wait for All changes saved.
- Start a test conversation using fictional personal information.
- Check that the Agent can still complete the intended task with masking enabled.
If the platform administrator requires masking across the platform, it remains enabled and the project switch cannot be changed. Contact your platform administrator if the organization-wide policy needs review.
Detection Services: Presidio and BERT Small
The PII masking engine determines how personal information is detected. The platform supports two services:
| PII Engine | How It Works |
|---|---|
| spaCy (Presidio) | Uses language-based detection and pattern rules to identify names, contact details, financial information, and supported identifiers. |
| BERT Small (hybrid) | Combines a trained language model with rules for selected information types, including people's names. It continues to use Presidio for other supported types, such as URLs, IP addresses, and some country-specific identifiers. |
A team administrator chooses the service under My Account → Settings → PII masking engine and saves the team settings. This choice applies to the team's projects; the project-level settings determine whether masking is enabled and which types to mask, subject to platform policy.
For on-premise deployments: BERT Small must be available in your instance before it can be selected. If it is marked unavailable, contact your platform administrator. Where the page reports Masking currently runs with, check that message to confirm the PII engine actually in use.
Best practices: test the service with fictional examples similar to your business data. Compare whether it masks the information you need to protect while keeping useful business terms readable. The service selection and the PII Entity Types selection serve different purposes: one chooses the detector; the other chooses what it should look for.
Choose What to Mask
When the project manages its own masking settings, the PII Entity Types section lists the types of information that can be detected and masked. Select the types relevant to your organization's data.
The tables below explain PII labels used by the platform. The exact selectable list can vary with the detection service and deployment version. Check the options shown on your settings page; BERT Small uses Presidio alongside its own detection, rather than providing an entirely separate list.
Personal, Contact, and Financial Information
| PII Entity Type | What It Means |
|---|---|
| PERSON | People's names |
| AGE | References to a person's age |
| LOCATION | Place names and locations |
| NRP | Nationality, religious group, or political group references |
| DATE_TIME | Dates and times |
| EMAIL_ADDRESS | Email addresses |
| PHONE_NUMBER | Telephone numbers |
| URL | Web addresses |
| IP_ADDRESS | Internet Protocol (IP) addresses |
| CREDIT_CARD | Credit card numbers |
| IBAN_CODE | International bank account numbers |
| CRYPTO | Supported cryptocurrency wallet addresses |
| MEDICAL_LICENSE | Medical license identifiers |
Country-Specific Identifiers
| PII Entity Type | What It Means |
|---|---|
| US_BANK_NUMBER | US bank account numbers |
| US_DRIVER_LICENSE | US driver's license numbers |
| US_ITIN | US Individual Taxpayer Identification Numbers |
| US_PASSPORT | US passport numbers |
| US_SSN | US Social Security numbers |
| UK_NHS | UK National Health Service numbers |
| UK_NINO | UK National Insurance numbers |
| AU_ABN | Australian Business Numbers |
| AU_ACN | Australian Company Numbers |
| AU_TFN | Australian Tax File Numbers |
| AU_MEDICARE | Australian Medicare numbers |
| SG_NRIC_FIN | Singapore National Registration Identity Card and Foreign Identification Numbers |
| IN_AADHAAR | Indian Aadhaar numbers |
| IN_PAN | Indian Permanent Account Numbers |
| IN_PASSPORT | Indian passport numbers |
| IN_VEHICLE_REGISTRATION | Indian vehicle registration numbers |
| IN_VOTER | Indian voter identification numbers |
Additional BERT Small Types
BERT Small also supports the following types. Their availability in the selection list depends on your deployment configuration.
| PII Entity Type | What It Means |
|---|---|
| IMEI | Mobile-device equipment identifiers |
| ORGANIZATION | Organization names |
Selecting a type enables detection for that kind of information; it does not guarantee that every instance will be found. Test the types you choose with fictional examples representative of your data.
Clearing every category does not turn masking off: an empty selection uses the platform's default category set. To stop project-level masking, use the main masking switch.
For example, you may need to mask contact details while allowing an Agent to work with non-personal product information. Review the available options with the person responsible for data privacy.
Manage Specific Terms
Where these project controls are available, use the term lists to address information that the detector handles incorrectly:
| Setting | Purpose | Example |
|---|---|---|
| Never mask these terms | Keep approved business terms visible when they are incorrectly recognized as personal information | An approved product name or model number |
| Always mask these terms | Mask a term that the detector would not otherwise recognize as sensitive | A confidential internal project name |
Type a term and press Enter or use the add control. Remove its entry to stop applying that exception. If the same term appears on both lists, masking takes priority.
Each list supports up to 200 terms, and each term must be 2–100 characters long. The limit applies separately to Never mask and Always mask. Once a list is full, remove an existing term before adding another.
Only add terms to Never mask after checking that they are safe to share. A name or phrase may be harmless in one context and sensitive in another.
Understand the Limits
Masking is an additional protection, not a guarantee that all sensitive information will be detected. Test your actual use cases before relying on it.
Turning it on does not delete or permanently redact original documents, remove user access, or clean up existing exports. Review Knowledge Base permissions, connected services, and other data-sharing settings separately. See Security & Data Practices.
Best Practices
- Test with fictional names, contact details, and business terms that resemble personal information.
- Check that the Agent's answer remains useful after masking.
- Keep exceptions limited to terms that have been reviewed.
- Recheck the behavior when introducing new document types, languages, or connected tools.
Troubleshooting
| Issue | What to Check |
|---|---|
| The switch is disabled | Platform-wide masking may be enforced |
| A product name is masked | Review whether it belongs on Never mask these terms |
| An internal name is not masked | Consider adding it to Always mask these terms |
| The Agent cannot complete a task | Check whether the task depends on information being masked; discuss the appropriate design with your administrator |