Skip to main content
PII detection patterns define the rules the Platform uses to identify and protect sensitive data in user inputs. Each pattern uses a regular expression to detect a specific type of sensitive information and specifies how matched values are handled.

Create a PII Detection Pattern

  1. Go to Settings > PII and Guardrails.
  2. Click + New Pattern.
  3. Configure the following fields:
FieldDescription
Pattern NameUnique name to identify the rule.
Regex DefinitionRegular expression used to detect the PII entity. Example—to detect email addresses: [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}
StatusEnable or disable the pattern. Disabled patterns are ignored during processing.
Redaction MethodHow detected PII is handled. See options below.
Access ControlDefines which components can access the original (unmasked) PII value.
  1. Use Test Pattern to validate that the regex detects PII as expected.
  2. Click Save.

Redaction Methods

MethodDescription
Replace with random stringReplaces the detected value with a system-generated unique string.
Replace with predefined textReplaces the detected value with fixed text you specify.
Partially mask the valueReveals 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).
Example: With mask character * 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 modePII handling
Direct voice calls to the platformPII 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.