Create a PII Detection Pattern
- Go to Settings > PII and Guardrails.
- Click + New Pattern.
- Configure the following fields:
| Field | Description |
|---|---|
| Pattern Name | Unique name to identify the rule. |
| Regex Definition | Regular expression used to detect the PII entity. Example—to detect email addresses: [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,} |
| Status | Enable or disable the pattern. Disabled patterns are ignored during processing. |
| Redaction Method | How detected PII is handled. See options below. |
| Access Control | Defines which components can access the original (unmasked) PII value. |
- Use Test Pattern to validate that the regex detects PII as expected.
- Click Save.
Redaction Methods
| Method | Description |
|---|---|
| Replace with random string | Replaces the detected value with a system-generated unique string. |
| Replace with predefined text | Replaces the detected value with fixed text you specify. |
| Partially mask the value | Reveals specific characters and masks the rest. Configure: Mask Character (character used for masking), Characters to Skip from Start (visible characters at the beginning), Characters to Skip from End (visible characters at the end). |
* and 12 characters skipped from the end, the email john.doe@example.com becomes ****.***@example.com.
PII Handling in Voice Interactions
PII handling behavior depends on how voice is integrated with the platform.| Voice mode | PII handling |
|---|---|
| Direct voice calls to the platform | PII handling and guardrails are not applied to the audio stream. User inputs go directly to the model; any PII shared may be present in model processing and logs. |
| Voice via AI for Service (ASR/TTS) | PII handling is applied to the text transcript generated by ASR. Detected PII is masked, redacted, or anonymized before agent processing. Voice output is generated from the filtered text, so guarded PII is not reintroduced by TTS. |