

PII Redaction
PII redaction is the process of finding personal data in text or files and masking or removing it before it is stored, shown or sent to an AI model.
What is PII redaction?
PII redaction is the process of finding personally identifiable information in text or files and masking or removing it. It is applied before the content is stored, shown to staff or sent to an AI model. Typical targets are names, email addresses, phone numbers, payment card numbers and government identifiers.
In customer support, PII redaction deals with what customers type without thinking. A customer pastes a full card number into a chat. Another attaches a passport photo to an email. Redaction limits who and what sees that data. This entry is general information and is not legal advice.
How PII redaction works
PII redaction works in two stages: detection of personal data, then replacement of what was found. Each stage can be done in several ways.
Detection usually combines two methods:
- Pattern matching. Rules catch data with a fixed format, such as card numbers, email addresses and phone numbers.
- Entity recognition. A language model spots data without a fixed format, such as names and street addresses.
Replacement also has common variants:
- Masking. The value is hidden behind characters, sometimes leaving the last digits visible.
- Placeholders. The value is swapped for a label such as a bracketed "EMAIL" or "CARD NUMBER".
- Reversible substitution. The value is swapped for a stand-in that an authorised system can map back.
Redaction can run at different points. It can run when a message arrives, before the message is saved. It can run before text is sent to an AI model. It can run when data is exported to analytics.
Example: a customer writes "My card 1234 1234 1234 1234 was charged twice". After redaction, the stored message reads "My card [CARD NUMBER] was charged twice". The agent can still handle the double charge.
Why PII redaction matters in customer support
PII redaction matters in customer support because the inbox collects personal data that the team never asked for. Once stored, that data is visible to agents, copied into exports and included in AI prompts.
Redaction changes four things for a support team:
- Risk. A leaked transcript without card numbers or identifiers does less harm.
- Access. Agents see what they need for a refund status check, not the full payment details.
- AI use. Less personal data travels to the model that drafts or sends answers.
- Reuse. Redacted transcripts are safer to use for training material, quality review and reporting.
Redaction also has a cost. Remove too much and the AI agent cannot do its job. An order tracking request needs the order number. A password reset needs the account email. The rule set must separate what is needed from what is merely present.
PII redaction vs zero data retention
PII redaction removes personal data from the content, and zero data retention stops a party from storing the content at all. Redaction changes what is sent. Zero data retention changes what is kept.
The two controls cover different gaps. Redaction protects data inside your own helpdesk and in every later copy. Zero data retention applies to one party, usually the model provider.
PII redaction is also different from anonymisation. Redacting a name from a ticket does not always make the customer unidentifiable. Other details in the conversation can still point to the person.
Support teams with strict requirements combine redaction, retention terms and data residency instead of choosing one.
How to implement PII redaction
Implement PII redaction by deciding which data types to remove, at which point, and then testing on real transcripts.
- List the data types. Review past tickets and note what customers share: cards, identifiers, health details, passwords.
- Sort by need. Mark what agents and the AI agent need to resolve a ticket, and what they never need.
- Choose the points. Decide whether to redact on arrival, before the model, on export, or at all three.
- Cover attachments. Screenshots and PDF files carry personal data too, not only message text.
- Test on real conversations. Check for missed values and for needed values removed by mistake.
- Review regularly. New products and new markets bring new identifier formats.
Treat redaction as one of your AI guardrails, with a named owner in your AI governance programme. Your data protection officer can confirm how the rules relate to the GDPR.
Where PII redaction fits in an AI support stack
PII redaction fits at the points where a customer message is stored, shown to an agent or passed to a model. In an AI helpdesk, those points sit in the inbox and in the AI agent. Customerly describes how it handles customer data on its security page and its GDPR page. Use those pages as the source for Customerly's position on personal data.
FAQ
What counts as PII in a support conversation?
PII in a support conversation is any information that identifies a person, directly or in combination. Names, emails, phone numbers, addresses, card numbers and identifiers are common examples. Legal definitions differ by country, so check the ones that apply to you.
Does PII redaction make an AI agent less accurate?
PII redaction can make an AI agent less accurate if it removes data the task needs. An order lookup without the order number fails. Careful rules keep task data and remove the rest.
Is PII redaction required by law?
Data protection laws generally set goals, such as limiting the personal data you keep, without naming one technique. PII redaction is one way to work towards those goals. Ask your data protection officer what your situation requires.
What should we ask a vendor about PII redaction?
Ask a vendor which data types can be redacted, at which point and whether attachments are covered. Ask to test with your own sample conversations. You can raise these questions with Customerly when you book a demo.
Related Terms
Zero Data Retention (ZDR)
Zero data retention (ZDR) is an arrangement in which an AI model provider does not store prompts or outputs once a request has been processed.
Data Residency
Data residency is the physical or geographic location where an organization's data is stored and processed, such as a specific country or region.
AI Guardrails
AI guardrails are the rules and checks that limit what an AI agent may say and do. Learn how they work in customer support and how to set them.
AI Governance
AI governance is the set of policies, roles and controls a company uses to decide how AI is chosen, deployed, monitored and held accountable.
GDPR (General Data Protection Regulation)
GDPR is a data protection regulation introduced by the EU to protect the privacy of its citizens. It applies to organizations within and outside the EU.
EU AI Act
The EU AI Act is the European Union's regulation on artificial intelligence. It sets duties by risk level, including transparency towards people.




