Sub topic 8
Sending less: data minimization
Prerequisites and scope
This chapter assumes you have used an AI chat or coding assistant. It also assumes you know roughly what customer records contain at your workplace, and that you have read your employer's acceptable-use policy. Earlier chapters covered data types, how prompts travel, and classification. This chapter covers the step that comes right after classification: deciding how much of a record to send at all. The next chapter covers redaction and pseudonymization in detail.
What data minimization means
Data minimization is the practice of sending an AI tool only the data it needs to do the task, and nothing more. It is a core principle in privacy law, including the GDPR's "data minimisation" requirement (personal data must be adequate, relevant, and limited to what is necessary). Many contracts and internal policies repeat it.
Minimization works because exposure is proportional to what you send. Data you never include cannot be retained by a vendor, logged, surfaced in a shared chat, or leaked through a connector. Minimization also costs nothing in tooling. It is a decision you make before you press Enter.
Redaction and pseudonymization are techniques for transforming data you decided to send. Minimization comes first and asks a different question: does this field need to be in the prompt at all?
The core question
Before every prompt, ask: what is the smallest input that still lets the tool do this job well?
Answering it takes three checks:
- Task need. What exactly do I want back? A summary, a rewritten email, a bug diagnosis, a category label?
- Field need. Which parts of the input does the tool need to produce that output?
- Detail need. For each part it needs, how precise must it be?
Most tasks need far less than the original record. A tone rewrite of a complaint reply needs the wording of the reply. It does not need the customer's account number, address, or order history.
Four ways to send less
Cut fields you do not need
Remove whole categories of information that have no bearing on the task. Typical examples are signature blocks, email headers, account IDs, billing addresses, and internal ticket metadata.
Generalize precise values
Keep the meaning and drop the precision. The tool often needs a category, not the exact value.
| Original detail | Generalized version | Works when the task is... |
|---|---|---|
| Date of birth 14 March 1987 | Age band 35-40 | Segmenting or tone-matching |
| Street address and postcode | Region or country | Regional policy questions |
| Exact salary or invoice total | Range ("over 10,000") | Triage or prioritization |
| Full timestamp | Date only, or "last week" | Timeline summaries |
| Job title and employer | Industry and company size | Persona or market analysis |
Use a sample, not the whole set
If you need help with a pattern, send a handful of representative rows, not the export. For a spreadsheet of 5,000 support tickets, 10 to 20 diverse examples are usually enough to design a classification scheme. You can then apply the scheme locally to the full set.
Replace data with a description
When the tool needs to understand structure, describe the data instead of pasting it. For a formula, a query, or a script, the column names and types are enough. Real values are not.
For example, instead of pasting a customer table, send this:
-- Table: customers
-- Columns: id (int), signup_date (date), plan (text: 'free'|'pro'|'enterprise'), country (text)
-- Task: write a query that counts new pro signups per country per month in 2025.The assistant can write a correct query from the schema alone. No customer record leaves your environment.
A worked example
A support lead wants help drafting a reply to an angry customer. The raw ticket looks like this:
From: [email protected]
Account: 88213-AX, Enterprise plan, renewal 2026-02-01
Address: 14 Mill Lane, Leeds LS1 4AB
Card on file: Visa ending 4421
"I was charged twice for January and nobody has answered my last
three emails. I have been a customer for six years. Fix this or I
am cancelling."Apply the three checks.
- Task need: a calm, apologetic reply that addresses a double charge and slow response.
- Field need: the complaint text, and the fact that this is a long-standing customer. The tool does not need the email address, account number, street address, or card details.
- Detail need: "six years" matters for tone. The renewal date does not matter unless the reply must mention it.
The minimized prompt becomes:
Draft a calm, apologetic reply to a long-standing customer (six years).
They were charged twice for one month and have had three unanswered
emails. They threaten to cancel. Offer to investigate the duplicate
charge and confirm a refund timeline. Do not invent specific dates or
amounts.
Customer message: "I was charged twice for January and nobody has
answered my last three emails. I have been a customer for six years.
Fix this or I am cancelling."This prompt carries the complaint and the context that shapes tone. It carries no identifier that links the text to a person. The lead then adds the customer's name and real refund details locally, after the draft comes back.
The complaint text itself can still contain identifying content, such as a name or a unique detail, so a quick read-through remains part of the process.
Minimization in different tasks
Different tasks tolerate different amounts of reduction.
| Task | What usually must stay | What can usually go |
|---|---|---|
| Rewrite or polish a message | The message body | Names, IDs, contact details |
| Summarize a call transcript | The conversation content | Speaker names, account numbers, phone numbers |
| Debug a failing query or script | Schema, error text, a few fake rows | Real customer rows |
| Classify feedback by theme | Comment text | Author, email, order number |
| Analyze churn trends | Aggregated counts and rates | Individual-level records |
| Review a contract clause | The clause text | Counterparty details elsewhere in the document |
For debugging, a good habit is to build synthetic data: invented rows with the same shape as the real ones. Replace "Ana Diaz, 14 Mill Lane" with "Test User, 1 Example Street". The bug usually reproduces just as well.
Aggregate before you ask
If the question is about a population, compute the numbers locally and send only the results. The tool needs to reason about the statistics, not read the rows.
import csv
from collections import Counter
def churn_summary(path: str) -> dict[str, int]:
"""Count churned customers per plan without exposing any row."""
counts = Counter()
with open(path, newline="") as f:
for row in csv.DictReader(f):
if row["status"] == "churned":
counts[row["plan"]] += 1
return dict(counts)
# Example output you could paste into a prompt:
# {'free': 412, 'pro': 87, 'enterprise': 6}Be careful with small groups. A count of 1 or 2 in a narrow segment (for example, "enterprise customers in one small country") can point to a specific, identifiable customer. A common rule of thumb is to suppress or merge groups below a minimum size, such as 5, although your organization's policy sets the actual threshold.
Files, uploads, and long documents
Minimization applies to attachments as much as to typed text. Files are risky because they carry more than you see.
- Spreadsheets can hold hidden columns, other sheets, and cell comments.
- PDFs and documents can contain metadata (author, edit history) and tracked changes.
- Email threads include the quoted history below your reply, often with other people's details.
- Screenshots capture browser tabs, notification pop-ups, and sidebars.
- Log files and code repositories often include tokens, URLs with IDs, and request payloads.
Before uploading, copy only the relevant section into a fresh document, or crop the screenshot. Do not upload the whole file and trust the tool to ignore the rest. The tool receives everything in the file whether or not it uses it.
Minimization across a conversation
A chat has memory within a session. Data you paste at the start stays in the context for later turns, and some tools keep it in history or in a stored "memory" feature. Two habits help:
- Start a new conversation when you switch to a different customer or task, so earlier data does not travel along.
- Do not paste a full record "just in case" and then ask follow-up questions. Add detail only when a specific question needs it.
Common errors
- Sending the whole record because it is faster. Pasting everything saves seconds and expands exposure. Build the habit of trimming first.
- Assuming an approved tool removes the need to minimize. An approved enterprise tool lowers vendor risk. It does not cancel the minimization duty, your classification rules, or the chance that a shared workspace exposes the data to colleagues who should not see it.
- Generalizing too little. Replacing a name but leaving a rare job title, a small town, and an exact date can still identify one person. Combinations of ordinary details can single someone out.
- Generalizing too much. If you strip so much that the answer is useless, you will be tempted to paste the original next time. Aim for the smallest input that works, not the smallest input possible.
- Forgetting free text. Structured fields are easy to drop. Names, places, and personal stories hide inside comment boxes and transcripts.
- Minimizing the prompt but not the context. Custom instructions, uploaded reference files, and connected sources can add data that you did not type into the prompt.
When you cannot minimize enough
Sometimes the task truly needs identifying detail, such as verifying a specific customer's contract terms. In that case:
- Check the classification of the data. Your rules may forbid it in any AI tool, or allow it only in specific approved tools.
- Use only a tool approved for that class of data, with the settings your organization requires.
- Ask whether the task should be done without AI, or by a person with the right access.
- Ask your security or privacy contact if the rules do not cover the case. Do not decide alone and hope it is fine.
A minimization workflow
Keeping it practical
Minimization works when it is quick. Some ways to make it routine:
- Keep reusable prompt templates with placeholders such as "[complaint text]" so you paste only the part that matters.
- Prepare a few synthetic sample records for common debugging tasks.
- Export only the columns you need from reports, not the full table.
- Write the question first, then collect the data. Starting from the question keeps the input small.
Summary
Data minimization means sending the smallest input that still gets the job done. You cut unneeded fields, generalize precise values, sample instead of exporting, describe structure instead of pasting data, and compute aggregates locally. You also check attachments and conversation history, because they carry data you did not intend to send. When what remains is still sensitive, redact or pseudonymize it, which the next chapter covers.
Exercise
A colleague wants an AI assistant to help write a SQL query that finds customers whose subscription lapsed more than 30 days ago. They plan to paste 200 rows from the production customers table, including names, emails, and plan dates, "so the AI sees what the data looks like." Describe a minimized alternative and explain which minimization techniques it uses.
Show answer
Send the schema instead of the rows: the table name, column names and types (for example id int, plan text, lapse_date date, status text), a sentence describing the goal, and optionally two or three invented rows such as "Test User, [email protected]". This uses "replace data with a description" and synthetic data. The names and emails are dropped because the query logic does not depend on them. The assistant can write a correct query from the structure, and the colleague runs it locally against the real table, so no customer record leaves the environment.
Exercise
You need an AI tool to find themes in 3,000 customer feedback comments. Each row has the author's name, email, order number, and comment. List what you would remove or change before sending, and name one risk that remains after you do so.
Show answer
Remove the name, email, and order number columns, and send only the comment text. To limit volume further, send a representative sample (for example 50 to 100 comments) to design the themes, then apply the themes to the full set locally. The risk that remains is free text: comments may mention names, places, or unique events that identify a person, so read through the sample, and redact or pseudonymize anything identifying before sending.
Exercise
A report shows churn by country and plan. One cell reads "enterprise, Iceland: 1". Why is it risky to paste this into a prompt even though it is an aggregate, and what can you do?
Show answer
A group of one points to a single customer, so someone who knows the customer base could identify them and learn their status. You can merge the small group into a broader one (for example "enterprise, other countries"), suppress the cell, or apply your organization's minimum group size, commonly around 5, before sending.