How to Enable PII Redaction
PII (Personally Identifiable Information) redaction automatically detects and masks sensitive information in chat messages. When a user types an email address, phone number, or credit card number, it’s replaced with a placeholder before processing.
Enable PII redaction
Section titled “Enable PII redaction”- Open your bot settings (gear icon in the Playground, or Edit on the Bots page).
- Scroll to the Privacy & Access section.
- Toggle PII Redaction to ON.
- Save.
That’s it. PII redaction is now active for all new messages to this bot.
What gets redacted
Section titled “What gets redacted”When enabled, the following types of PII are detected and masked:
- Email addresses
- Phone numbers
- Credit card numbers
- Social security numbers
- IP addresses
- API keys
- Other common PII patterns
Redacted content is replaced with a placeholder (e.g., [EMAIL REDACTED], [PHONE REDACTED]) in the copy of the message that is sent to the AI model and used for retrieval (RAG context). The original conversation record is stored unredacted — redaction applies only to what’s sent to the AI model, not to the saved message history.
Test it
Section titled “Test it”- Open the Playground for your bot.
- Type a message containing an email address (e.g., “My email is [email protected]”).
- The bot’s response should reference the redacted version, not the original PII.
When to use PII redaction
Section titled “When to use PII redaction”- Customer-facing bots where users might share personal information.
- Compliance requirements (GDPR, CCPA) that require minimizing PII storage.
- Internal bots where employees might paste sensitive data.
Related
Section titled “Related”- Bot Settings Reference — PII redaction setting
- Security, Privacy, and GDPR — broader privacy features