Content Redaction is currently available for Enterprise tier only.
- You have administrator access to configure Content Redaction
- You understand whether original sensitive data should be viewable or permanently removed
How Content Redaction Works
When a customer sends a message containing sensitive data, AiChat performs the following in real time:- Detection: Identifies supported data patterns.
- Redaction: Replaces the value with a placeholder (e.g.,
[EMAIL REDACTED]). - Storage: Saves only the masked version in the conversation history
- AI Processing: Only the masked content is sent to AI providers to ensure data privacy.
Supported Data Types
AiChat includes built-in detection for the following:
Custom Patterns: Businesses can create custom redaction rules using regular expressions (regex) to mask organization-specific data like Employee IDs or account numbers.
Data Handling Options
Administrators can choose between two policies for handling original sensitive data: Allow Viewing Original Data- Behavior: Original values are encrypted and stored.
- Agent Access: Support Agents can click a masked token to reveal or copy the original value.
- Use Case: Recommended for support teams that must verify customer details.
- Behavior: Original values are discarded immediately and cannot be recovered.
- Access: No reveal option is available to anyone.
- Use Case: Best for organizations with strict compliance or data minimization requirements.
- Warning: Once data is removed under this policy, it cannot be restored, even if settings are changed later.
Configure PII Masking
Enable Masking
- Navigate to Settings > Content Redaction.
- Toggle Enable Content Redaction.
- Select specific data types to detect (e.g., enable Email but disable Phone).
- Select your Data Handling Policy.
- Click Save.
Add Custom Masking Patterns
- In Content Redaction, click Add Pattern.
- Provide a Pattern Name, the Regex Pattern, and a Test Input.
- Review the preview and Save.
Key Considerations
- PII Masking only applies to customer messages and free-text responses collected through Collect nodes. Bot and agent responses are not redacted.
- Data submitted through Collect with Form is not redacted. Use Collect with Form when you need to collect sensitive information accurately.
- Customers using AiChat Web Chat will see sensitive information masked after the message is sent.
- Customers using social messaging platforms such as WhatsApp will continue to see their original unmasked messages on their own devices, as the conversation history is stored outside of AiChat.