Skip to content

Personal Data Protection

Agents often touch systems that hold personal data: a customer table, a mailbox, an uploaded document. When personal data protection is on, values such as Turkish national ID numbers, IBANs, card numbers and phone numbers are replaced with a placeholder before they reach the model provider. The model never sees the value — only a placeholder such as ‹TCKN-1›.

The setting is in Admin Panel → Tenant Settings → Security → Personal data (PII) protection.

Why masking only the final answer is not enough

When a tool returns an ID number from a customer table, the value first goes to the model (the external provider), then to the screen, to records, to charts and Excel files. Masking only the final answer would miss most of these. Whiskers therefore masks at the source: tool results, knowledge base passages, documents uploaded to the chat, memory and the user's own message are masked before they reach the model.

Modes

Mode What happens
Off (default) Nothing changes. Agent developers can turn masking on for their own agent.
Monitor No text is changed; personal data found in every agent is only counted (the value itself is never stored). Use it to see how much personal data flows through your own data before enforcing.
Mask Masking is mandatory for every agent; the agent-level setting is locked.

The "Last 7 days" line on the card shows how many personal data values were seen in runs and in how many runs they were masked.

Turning it on for one agent

While the tenant setting is Off or Monitor, the Mask personal data switch in the agent form turns masking on for that agent only. The agent-level setting can only increase protection; it cannot be turned off while the tenant is in Mask mode. It can be changed on a published agent — no need to go back to draft.

Categories

Values are recognised by pattern and validation, without AI:

Category Validation
Turkish national ID (TCKN) official check digits
IBAN (all countries) country length + mod-97
Card number Luhn + card network prefix (Visa, Mastercard, Amex, Discover, Troy)
Phone (TR and international) a prefix (0, +90, +country code) or group separators are required; the number's validity is checked
Email address standard pattern — not selected by default (see below)

Thanks to validation, numeric business data such as sales quantities or revenue is not masked.

The email category and email assistants

If email is selected, the Microsoft 365 and Google assistants see the sender as a placeholder and cannot send email to a masked address. That is why it is not selected by default; selecting it is a deliberate choice.

Last 4 digits: for cards and phones, the last 4 digits can be shown in the placeholder (‹KART-1 ··1234›) — users can tell cards apart; in exchange the last 4 digits reach the model. No part of an ID number, IBAN or email is shown.

Custom patterns

For formats the built-in categories do not cover (another country's ID number, an internal customer number) you can define a template:

Character Meaning
9 digit
A letter
X letter or digit
space, - separator — matches even if omitted
\ takes the next character literally (\A = the letter A)
anything else literal

Examples: AA999999A (UK National Insurance number format), +994 99 999 99 99 (Azerbaijani phone), \A\Z\E9999999 (a number starting with AZE). A template needs at least 4 slots (9, A, X) and at most 40 characters. Optional validation: Luhn, Mod-97, Mod-11.

Try it first

A pattern without validation masks every value of the same shape (e.g. "a 9-digit number" also catches amounts in a table). Paste a sample text into Try the patterns under the card and see the result before saving. The text is not stored anywhere.

What changes while masking is on

  • The agent cannot search by a masked value. A placeholder is never turned back into the real value in any tool. If the agent tries to write a database query with ‹TCKN-1›, the tool does not run the query and tells the agent the value is masked — no misleading "no record found" answer is produced. An agent that must search by personal data should keep masking off (while the tenant is Off or Monitor).
  • The same value gets the same placeholder. Within a run (including sub-agents) the same ID number is always ‹TCKN-1›; the model can still tell it is the same customer.
  • Masking cannot be undone. The mapping between value and placeholder is never stored.
  • Everything the agent sends out is masked: email, SMS, HTTP calls, MCP tools, generated presentations, charts and Excel files, share links, the public API response.
  • The file of a document uploaded to the chat is not sent out. Even if the HTTP tool can send files (Allow file upload), uploaded documents are not sent while masking is on: a file's content cannot be masked. Files the agent produces itself are made from masked content and can be sent.
  • If masking fails, the run stops. Unmasked data goes nowhere; the user sees the error.

When sharing

In the share link of a run that had masking on, the user's own message is masked too. Users still see what they wrote in their own conversation history; the copy that leaves is masked.

Limits

  • Names and addresses are not recognised in this version.
  • Images: text read from an image (OCR) is masked; the image itself is out of scope.
  • Applies going forward: turning it on does not mask past records, turning it off does not unmask them.
  • Setting changes (mode, categories, last 4 digits) and the agent-level switch are written to the audit log together with their values.