> This page is for version Scripted.
> For other versions, use one of these documentation indexes:
> - Generative (default): https://developers.ada.cx/generative/llms.txt
> - Scripted: https://developers.ada.cx/scripted/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.ada.cx/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.ada.cx/_mcp/server.

# Filter sensitive or unwanted content from Answer training

## Question Filters\[#UUID-2356477c-3b05-09d3-a899-5e42108e0c1a_id_360018351673_id_filters]

Under **Settings** > **Bot Setup**, there's a tab for **Filters and
Redactions**. Activating these filters prevents the addition of
questions to the Improve view if they contain any of the following:

* Gibberish

* A link

* Profanity

* Sensitive information (credit cards, SINs, SSNs, addresses)

The filters do not stop gibberish, links, profanity, or sensitive
information from appearing in the chat and in the Conversations view on
the Ada dashboard.

To learn more about analyzing past chat content, see [Improve incomplete or overlapping Answer training](/scripted/docs/build-and-maintain-your-bot/train-and-manage-answers/improve-incomplete-or-overlapping-answer-training) and
[View past chatter conversations](/scripted/docs/build-and-maintain-your-bot/train-and-manage-answers/view-past-chatter-conversations).

## Special considerations for the sensitive information filter\[#UUID-2356477c-3b05-09d3-a899-5e42108e0c1a_id_360018351673_id_special-considerations-for-the-sensitive-information-filter]

When this filter is turned on, sensitive information is still visible in
the chat interface and in the Conversations view of the dashboard. The
data is also stored on Ada's database. If you would like sensitive
information scrubbed out, read more about Redaction below.

## Redactions\[#UUID-2356477c-3b05-09d3-a899-5e42108e0c1a_id_360018351673_id_redaction]

**PII Redactions** provides a more thorough filter for sensitive data.
In contrast to the Sensitive Information Filter, PII Redactions scrubs
chatter information from the chat interface and dashboard. By extension,
the sensitive information is not stored in the Ada database.

### Create a custom redaction

You can ensure that your chatters' information stays safe and secure by telling your bot what types of information it should keep private. That way, if chatters provide high-risk information that you don't want your bot to use, you can ensure it doesn't leave the conversation.

#### How redactions work\[#how-redactions-work]

When Ada redacts information, this is what happens:

* Your bot doesn't use redacted information in its reasoning or when generating responses for your chatters. It acts as if the chatter never provided that information in the first place.
  * Similarly, if your bot hands off the conversation to a human agent, the human agent is unable to see the redacted information.
  * For this reason, be careful that you don't accidentally redact too much - redacting information that your bot needs will impact its ability to resolve chatter inquiries.
* Redacted information doesn't appear in conversation transcripts, and is covered with beeps in voice recordings.

You can control redactions by using regular expressions (regex) to define exact matching patterns your bot will follow.

* Because regex is very literal, if values don't follow a consistent pattern (e.g., names or addresses), your bot can't reliably redact them.
* If you need help writing your regex patterns, try a site like [RegExr](https://regexr.com/) to help you put it together and test that it works.
  > **Tip**
  >
  > It can be tricky getting your regex patterns to work as intended. They can often be too exact, excluding some use cases; or too broad, including more than you wanted them to. Make sure you test a variety of use cases to ensure you're capturing the right amount of information.

#### Create a custom redaction\[#create]

1. On the Ada dashboard, go to **Settings** > **Bot setup** > **Redactions**.
2. Either toggle on an existing custom redaction, or click **Create redaction** to create a new one. The Create redaction window opens.
3. Under **Redaction name**, enter a name for your redaction. Your bot won't send the redaction name to the LLM; this is for your use only.
4. Under **Redaction regex**, enter your regex pattern.
5. Under **Test your regex**, enter an example value to ensure that your regex pattern is working properly. Make sure you test values you want your bot to redact, as well as values you want it to leave alone!
6. Click **Save**.

### Credit cards

Redaction of credit card information is a mandatory filter. It is active
by default in all bots, and can't be switched off.

#### Redacted credit card number in the chat interface:

![](/_fern-files/_img/0a7818903b1de227387f1207554d66be00b4704b0faed79bafeddcea0bb1508f.webp)

Redacted credit card number in the Ada dashboard Conversations view:

![](/_fern-files/_img/344ef764bce559b60cf983a18735864356f4d9fb310e54e11d5d1ff8823dfc8c.webp)

## Interaction between the sensitive information filter and redaction\[#UUID-2356477c-3b05-09d3-a899-5e42108e0c1a_id_360018351673_id_interaction-between-sensitive-information-filter-and-redaction]

If you have the Sensitive Information Filter toggled on as well as
Redaction enabled, Redaction will *override* the filter. The original
question will appear in the Improve view (if Unanswered/Not Helpful) but
the sensitive information will be redacted. By extension, the sensitive
information will not be stored in Ada's database.

## Sensitive variable

For clients with personalization features enabled, you also have the
option to utilize the Sensitive Variable, which can be used to handle
sensitive chatter information. Its value is always redacted in the Ada
bot dashboard and is permanently deleted after 24 hours.

When creating Sensitive Variables in the answer editor, you select
Availability > All Answers (Redacted), and saved sensitive variables
are yellow in color.

For more information, see [Temporarily store private information using sensitive variables](/scripted/docs/build-and-maintain-your-bot/personalize-conversations/temporarily-store-private-information-using-sensitive-variables).

---

Have any questions? Contact your Ada team, or email us at [](<mailto:help@ada.support%20%E2%80%9CHelp Docs inquiry%E2%80%9D>).