Redact Personal Information with Consistent Tokens and an Audit Log

Get your pasted text back with personal details replaced by consistent typed tokens, plus a separate audit table showing every masked item.

Text prompt for ChatGPT and Claude

Prompt

Prompt
You are a data privacy specialist. The user will paste raw text right after this prompt. Your job is to redact all personal information from the text and produce a separate audit table of what was masked.

Rules:
1. Replace every person name, email address, phone number, street address, account or ID number, and organization name tied to an individual with a consistent typed token such as Person_1, Email_1, Phone_1, Address_1, Id_1, or Org_1.
2. Reuse the exact same token whenever the same entity appears more than once so the text stays readable.
3. Preserve all surrounding wording, punctuation, dates that are not birthdates, and non-personal facts unchanged.
4. Do not guess or invent missing details; if a string looks like a partial ID or unclear name, flag it in the audit table as needing review.

Output format:## Redacted Text
The full pasted text with typed tokens in place.

## Audit Log
A Markdown table with columns: Token | Category | Original Value | Occurrences.

End with one short line noting any ambiguous items that may still need human review before sharing.

Example output

Example for: a customer support escalation note from a regional utility company.

Redacted Text

On Tuesday, Person_1 called from Phone_1 regarding an overdue invoice on account Id_1. Person_1 stated that the billing notice was sent to Address_1 instead of their new mailing address. Our agent, Person_2, confirmed that Email_1 is still listed as the primary contact for Org_1. Person_1 requested a callback at Phone_1 before 4:00 PM on Friday, and asked that a copy of the updated statement be sent to Email_1.

Audit Log

TokenCategoryOriginal ValueOccurrences
Person_1Person NameMarcus Vance3
Phone_1Phone Number555-014-88212
Id_1Account IDACCT-9940211
Address_1Street Address412 Oakridge Lane, Portland1
Person_2Person NamePriya Nair1
Email_1Email Addressm.vance@northstar-logistics.example2
Org_1OrganizationNorthstar Logistics1

Note: Confirm whether the city name in Address_1 or the internal agent name Person_2 should also be excluded from your external report.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Reusing typed tokens like Person_1 keeps multi-paragraph stories readable without exposing real identities.
  • The separate audit table lets you verify every replacement and spot missed items in seconds.
  • Preserving dates and non-personal facts ensures the redacted text remains useful for analysis.

Use before sharing customer emails, transcripts, or notes externally. Paste the raw text right after the prompt in ChatGPT, Claude, or Gemini.

Common edits

  • Add a rule to keep internal employee names unmasked if you only want customer details hidden.
  • Ask for a CSV-formatted audit log instead of a Markdown table if you need to paste it into a spreadsheet.

Reuse it: Use in a workflowTurn into a skillAdapt in the builder

More in Data Analysis
Data Analysis

Plan Dataset Anonymisation with a Column-by-Column Action Table

Get a column-by-column anonymisation plan specifying whether to drop, mask, bucket, or keep each field before sharing data externally.

Data Analysis

Classify Customer Reviews by Sentiment and Topic with Verbatim Quotes

Get a summary count table of your customer reviews grouped by topic and sentiment, paired with one verbatim quoted example for each topic.

Data Analysis

Clean Copy-Pasted PDF Text Without Changing Original Wording

Get clean, readable text from messy PDF copy-pastes with broken lines, split hyphens, and stray headers removed while keeping the original wording.

Data Analysis

Compare Two Document Versions by Added, Removed, and Reworded Text

Get a structured diff report separating added, removed, and reworded text with exact paragraph or line locations.

Data Analysis

Convert a Markdown Table to CSV or JSON with Row and Column Validation

You get a clean CSV or JSON conversion of your Markdown table, plus a row-and-column count check that flags any ragged rows.

Data Analysis

Turn Voice-Memo Transcripts into Decisions, Actions, and Questions

You get clean, structured notes from a rambling voice-memo transcript, sorted strictly into verified decisions, action items with owners, and open questions.