Skip to content

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.


  1. Open your bot settings (gear icon in the Playground, or Edit on the Bots page).
  2. Scroll to the Privacy & Access section.
  3. Toggle PII Redaction to ON.
  4. Save.

That’s it. PII redaction is now active for all new messages to this bot.


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.


  1. Open the Playground for your bot.
  2. Type a message containing an email address (e.g., “My email is [email protected]”).
  3. The bot’s response should reference the redacted version, not the original PII.

  • 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.