Original:
Customer: Maya Patel
Order: 7843921
Email: [email protected]
Account: Premium, customer ID 991204, last four digits 4821
Message: "I was charged twice for the annual plan on 2026-10-11. Please refund order 7843921."
Cleaned prompt:
A [PREMIUM_CUSTOMER] reports two charges for an annual plan on [DATE].
The customer requests a refund.
What checks should support perform before issuing a refund?
Consider duplicate payment IDs, refund status, and account history.Lesson 3 of 5 · 8 min
AI Privacy Basics
Clean a Prompt Before Sending
- Remove secrets and personal details before sending a prompt.
- Remove fields the task does not need. Use consistent placeholders only when a value or relationship matters.
- Check quoted text, logs, screenshots, and attachments for hidden data.
Redaction is more than deletion
A useful redaction removes information that identifies a person, account, system, or secret while preserving the facts needed for analysis. Do not simply delete half the ticket. Remove unnecessary identifiers and fields entirely. When a sensitive value or its relationship to another value is needed for analysis, replace it with a clear placeholder such as [CUSTOMER_NAME], [ORDER_ID], or [PLAN].
A model can still reason about a failed refund when it knows the order status, error message, product type, and timeline. It does not need the customer's real name, email address, or full account number.
A safe prompt-cleaning pass
- List what the model needs to answer the question.
- Remove passwords, tokens, API keys, session IDs, and private URLs.
- Remove names, emails, phone numbers, addresses, order numbers, account IDs, and other fields the task does not need. Use consistent placeholders only when an identifier's presence or relationship is necessary for the analysis.
- Generalize details that could identify someone, such as an exact date, location, rare job title, or small customer group.
- Inspect quoted replies, copied logs, screenshots, documents, and attachments. Redact those sources too.
- Read the result as if you were the model. Ask whether the remaining combination could identify a person or expose a system.
- Use an approved tool and follow your company's data classification rules before sending.
From a real ticket to a safe prompt
This ticket contains a customer name, order number, email address, account details, and a copied reply. The cleaned version keeps the facts needed to diagnose the problem without sending direct identifiers.
Placeholders must stay consistent
Remove identifiers and fields entirely when the task does not need them. When an identifier's presence or relationship is necessary, use the same placeholder for the same value throughout a prompt. If one paragraph says [ORDER_ID] and another says [SECOND_ORDER], the model may treat them as different orders. Keep relationships that matter: two events can use [ORDER_ID] and [ORDER_ID] if they refer to the same order, or [ORDER_A] and [ORDER_B] if they are different.
Preserve categories and patterns when they help. For example, replace a real timestamp with [EVENT_TIME_1] and [EVENT_TIME_2], or replace an email with [CUSTOMER_EMAIL]. Do not invent realistic personal data to fill the gap.
Hidden data still counts
A prompt is not safe because the visible summary is redacted. Identifying details often remain in quoted email text, copied terminal output, image metadata, spreadsheet tabs, document comments, or an attached file. A screenshot may show a browser URL containing a customer ID or a token.
Before sending, remove attachments that are not required. Crop or edit screenshots, clear document metadata when appropriate, and search copied text for email addresses, tokens, phone numbers, and IDs. If you cannot inspect an attachment confidently, do not upload it.
Keep a reversible local workflow
Keep the original ticket in the approved system of record. Create a separate sanitized working copy in an approved location only when company policy permits it. Restrict access to the sanitized copy and delete it according to the applicable retention policy. Use a local editor or an approved redaction tool rather than an unapproved website. After getting an answer, verify it against the original record inside your approved systems.
Redaction reduces exposure; it does not make every use lawful or approved. Check the data classification, the tool's retention settings, your company's policy, and whether a human reviewer is required.
Quick check
2 questions · one answer each1. Which prompt best preserves useful context while protecting a customer?
Pick one. The first pick counts.
2. What should you check after redacting the visible ticket text?
Pick one. The first pick counts.
Sign in to save your progress.