---
title: "Redact sensitive data in customer messages"
description: "Brainfish can replace sensitive data in customer messages with placeholders before the message is saved or sent to the AI."
canonical_url: "https://help.brainfi.sh/articles/redact-sensitive-data-in-customer-messages-rccRcfvdrg"
md_url: "https://help.brainfi.sh/articles/redact-sensitive-data-in-customer-messages-rccRcfvdrg.md"
---
# Redact sensitive data in customer messages

Brainfish can replace sensitive data in customer messages with placeholders before the message is saved or sent to the AI.

## What gets redacted

Email addresses, phone numbers, card data, IBANs, US social security numbers, passport and driver’s licence numbers, street addresses, dates of birth, passwords, and secrets such as API keys and auth tokens. Names and locations are not redacted. Each match is replaced with a placeholder that names the type of data removed.

For example, “My email is jane\@example.com” is stored and sent to the AI as “My email is \[EMAIL\_ADDRESS]”. Phone numbers appear as \[PHONE\_NUMBER] and card numbers as \[CREDIT\_CARD\_DATA].

![Redaction of sensitive data in 'Analytics' > 'Threads' ](https://help.brainfi.sh/api/attachments.redirect?id=cab8a7c3-425c-4f68-b224-44fd14ac7b75 " =1157x164")

## Turn it on

1. Go to ‘Agents’ and open the agent you want to protect.
2. In the ‘Config’ tab, expand ‘Agent Settings’.
3. Switch on ‘Redact sensitive data’.
4. Click ‘Save’.

![Enable 'Redact sensitive data' in 'Agent Settings' to mask sensitive customer data.](https://help.brainfi.sh/api/attachments.redirect?id=59377fad-aee4-47dd-8b2d-dc978ff649db " =980x328")

## Where it applies

Redaction applies to the Widget, Help Center, Slack and Microsoft Teams, and to Public API requests to `/v1/agents/answer` made with an agent key. The setting belongs to each agent, so turn it on for every agent you want covered.

## Things to know

* It adds a short delay to every answer.
* If redaction fails, the message isn’t answered and the customer is asked to try again. Brainfish never falls back to the original text.
* Attachments aren’t redacted.
* Detection is best-effort. Only data detected with high confidence is redacted, so it may not catch every sensitive value.
