Sub topic 11
Handling AI output: accuracy, leakage, and storage
This chapter assumes you have read the earlier chapters on data classification, approved tools, and tool settings. You should already know which tools your employer approves and how your data is classified. Here the focus moves from what you send to what comes back.
Why output needs the same care as input
AI output is not neutral text. It can contain customer data you supplied earlier in the conversation. It can contain invented details that look like customer data. It can also end up stored in places that your input never reached. Treat each response as a new piece of work product that needs checking before it goes anywhere.
Three risks matter most:
- Accuracy: the output states something false about a customer.
- Leakage: the output carries customer data to a person or system that should not have it.
- Storage: the output is saved somewhere with weaker controls than the source data.
Accuracy: do not trust claims about customers
AI tools can produce confident but wrong statements. This is called hallucination. In customer work, the typical errors are a wrong account balance, a wrong date, a refund policy that does not exist, or a summary that merges two customers' cases.
If you used pseudonymized input, a second error is possible. The tool may swap tokens, for example writing CUSTOMER2 where CUSTOMER1 belongs. Restoring names locally then sends the message to the wrong person.
Before you use output, do these checks:
- Compare every figure, date, and name against the source record.
- Confirm that the token-to-name mapping still matches the context.
- Remove claims you cannot verify instead of keeping them.
- Have a human approve anything sent to a customer.
Leakage: what output can carry
Output can leak data in several ways.
- Echoed input. A summary may repeat personal details you did not need in the result.
- Carried context. In a long chat, earlier pasted records can surface in a later answer meant for someone else.
- Shared conversations. A share link or exported chat exposes the whole history, not only the last answer.
- Generated links and file references. Agents may include internal URLs or file paths in their replies.
The diagram shows where a response can go after it is generated.
A simple scan before you paste output elsewhere catches some leaks. The function below reuses the pattern idea from the redaction chapter to flag emails in a response that should have none.
import re
EMAIL = re.compile(r"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}")
def find_leaks(output: str) -> list[str]:
return EMAIL.findall(output)
reply = "Summary sent. Follow up with [email protected] on Monday."
leaks = find_leaks(reply)
if leaks:
print("Review before sharing:", leaks)This only finds email addresses. It will not catch names, account numbers, or free-form identifiers, so it supports human review and does not replace it.
Storage: where output ends up
Output often outlives the chat. Chat history, browser caches, downloaded files, notes apps, and tickets can all hold copies. If the output contains customer data, those copies inherit the classification of that data.
Apply these rules:
- Save output only in systems approved for the data's classification.
- Do not paste output containing customer data into personal notes, private chats, or unapproved drives.
- Delete chat history when your retention settings allow it and the work is finished.
- Label saved AI-assisted content as such, so later readers know to verify it.
If the output contains only pseudonymized text, keep the mapping separate and protect it as customer data. The mapping is what makes the tokens identifying.
Common mistakes
| Mistake | Why it is a problem | Fix |
|---|---|---|
| Pasting output straight into a customer email | Unchecked errors or extra data reach the customer | Review against the source record first |
| Sharing a chat link to show a colleague a good answer | The link exposes the full history | Copy only the cleaned answer |
| Saving a summary in a personal notes app | Storage falls outside approved controls | Use the approved system |
| Restoring names without checking tokens | Wrong customer receives the message | Verify each token mapping |
Exercise
An AI tool summarizes a support thread and you plan to paste the summary into a shared team document. Name three checks you should make before pasting.
Show answer
Check the summary against the source record for accuracy. Scan it for customer data that the document's audience should not see, such as extra personal details or another customer's information. Confirm the shared document's permissions and storage are approved for the data's classification.