X-TALKPlaybook Edition 2.0 · 2026
Try X-TALK
Chapter 22New chapter6 min read

Personal data in AI conversations: masking and its consequences

An AI model does not need to know a customer's name, phone number or PESEL (Polish national ID number) to deal with their case. Masking personal data is a strong safeguard, but it also has minor, predictable side effects worth knowing about before you switch it on.

In a conversation, customers give a great deal of personal data: first name and surname, phone number, e-mail, address, customer number, sometimes a PESEL or a bank account number. The agent needs them to create a ticket or check an order. The language model does not. To run the conversation it only needs to know that “this is the customer's name” and “this is their e-mail”.

How masking works in X-TALK

Before content reaches the AI model, X-TALK detects personal data in it and replaces it with placeholders. The model runs the conversation on the placeholders, and when the agent calls a tool or replies to the customer, the placeholders are swapped back for the real values.

  1. 1
    The customer writes“I'm Anna Kowalska, my e-mail is [email protected]”
  2. 2
    The model sees“I'm [PERSON_1], my e-mail is [EMAIL_1]”
  3. 3
    The agent actscalls a tool with the argument e-mail = [EMAIL_1]
  4. 4
    The ticketing system receivesthe real e-mail address
  5. 5
    The customer readsa reply with the real data

This is reversible pseudonymisation: the agent can create a ticket with the customer's e-mail even though the model never saw that e-mail. For each conversation, the audit log records how much and what kind of data was masked, without the values themselves.

What is detected: first names and surnames, e-mail addresses, phone numbers, addresses, payment card numbers, PESEL, NIP (Polish tax ID), ID card numbers and bank account numbers. Polish identifiers are also checked for valid checksums, so a random string of 11 digits will not be treated as a PESEL. Optionally, town and city names can be masked too.

Three levels of protection, set for each agent

Level What is masked When to choose it
Off Nothing An internal assistant without customer data, testing
Analysis Summaries, tags, categories, hotspots and transcripts passed on for analysis. The conversation itself is unchanged A good starting point for most deployments: no impact on the conversation, and the data does not reach the analysis
Full As above + live text conversations: website chat, WhatsApp, SMS, app Sensitive sectors (health, finance, insurance, public administration), where customers give a lot of data in chat

Whatever the level: people without the administrator role (e.g. a shift manager or an analyst) can see labels in transcripts and summaries, such as “[PERSON]” or “[PHONE]”, instead of personal data. AI assistants connected via MCP always receive a masked transcript.

Consequences worth knowing about

Masking changes what the model “knows”. Most of the effects are invisible to the customer, but a few can be noticed in the conversation. None of them spoils the service if the agent's instructions are adjusted for them.

No inflection of names

The model sees “[PERSON_1]”, not “Anna Kowalska”, so it cannot inflect the first name or surname. After unmasking, the customer will see the base form, i.e. the nominative.

✕Instructions not adjusted
Agent
Thank you, Anna Kowalska. Your ticket has been created.
✓Instruction: avoid the name when addressing the customer
Agent
Thank you. Your ticket has been created with the number ZS-2026-0042.

In Polish, using the nominative when addressing someone sounds artificial. The solution is simple: with full masking, ask in the agent's instructions that it does not address the customer by first name and surname, but uses neutral forms (“Thank you”, “Your ticket has been received”). The name still reaches the ticket and the CRM correctly.

The model does not know the caller's gender

A placeholder does not show whether the person is a woman or a man. An agent that in an unmasked chat would write “We will contact you, Madam” (Polish forms of address mark gender), with full masking will write “Sir/Madam” or has to guess. It is best to state in the instructions straight away a preference for impersonal or neutral forms: “We will be in touch shortly”, “Your ticket has been received” instead of “I have received your ticket, Madam”.

Addresses: a trade-off between privacy and tools

A full address replaced with a single placeholder would be safe but useless for location tools: a shop or branch finder needs the street, number and city separately, and often the city in its base form (“Kraków”, not the inflected “w Krakowie”, meaning “in Kraków”). From a single placeholder the model cannot split the address into fields or put the city into its base form.

That is why in a live conversation X-TALK masks what identifies the person, i.e. the house and flat number, and leaves the street and town. The model sees “Długa 5 flat 3 in Kraków” as “Długa [NUMBER] in Kraków”, fills in the tool's fields correctly, and the tool still receives the full address. In post-conversation analysis and in transcripts for people without the administrator role, the whole address is masked.

The model cannot assess a masked value

The model does not see what is behind the placeholder, so it will not notice a typo in an e-mail address, check whether a phone number has the right number of digits, or compare two surnames. This kind of validation should be done by tools and ticket forms (e-mail, phone and postcode format), not by the model. This is good practice regardless of masking: validation in code is more reliable than the model's “eyeballing”.

Detection is not 100%

Recognising personal data in free text is statistics, not a list of rules. Sometimes an ordinary word is taken for a surname (and masked unnecessarily), or data written in an unusual way slips through. That is why masking is an additional layer of protection, not an exemption from data minimisation: the agent should still ask only for what it needs for the case.

A slightly longer response in chat

Detecting data in each message usually takes a few dozen milliseconds. In chat this is unnoticeable, but with full masking it is worth keeping in mind when assessing the agent's response time.

Less context in conversation reviews

A manager without the administrator role reads “[PERSON] reported a problem with delivery to [ADDRESS]”. That is enough to assess service quality, but to look into a specific complaint you need an administrator or the system in which the agent created the ticket.

How to switch on masking without spoiling the conversation

  1. 01

    Start with the “Analysis” level

    It protects data in summaries, tags and hotspots and does not change the agent's behaviour at all.

  2. 02

    Adjust the instructions before the “Full” level

    Gender-neutral forms, no addressing by first name and surname, confirming data through a tool instead of having the model retype it.

  3. 03

    Choose the types of data

    For example, mask town names only if the agent does not use location tools.

  4. 04

    Test on scenarios with data

    Creating a ticket, finding a branch, order status. Check the tool arguments and the replies in the conversation lab (chapter 18, Testing and continuously improving agents).

  5. 05

    Check the roles in the panel

    Who should see full data, and for whom labels are enough.

✅ Personal data masking0/7

Ready for the next step?

Describe your company in the free Copilot on x-talk.me. In a few minutes you will see your own agent in chat and on the phone. Or let's talk about what an AI communication centre could look like in your company.

+48 732 106 896 · x-talk.me