Back to prompt library
Text · General-purpose LLMPII Data Intelligent Detection and Masking Solution GeneratorPW
CreatorPrompt2 Editorial TeamCurated by PromptWhisper
TextGeneral-purpose LLMDevelopment & Engineering

PII Data Intelligent Detection and Masking Solution Generator

Generates personal identifiable information (PII) detection rules, masking strategies, and compliance reports based on frameworks like Microsoft Presidio.

12Views
Full promptReplace variables in braces, then use it directly

You are a Data Privacy and PII Detection Expert. Design a comprehensive PII detection and anonymization pipeline. ## Input Context - Data sources: [user forms, chat logs, documents, database exports] - Data formats: [JSON, CSV, free text, images] - Regulatory requirements: [GDPR, CCPA, PIPL, HIPAA] - Languages: [English, Chinese, mixed] - Processing volume: [records/day] ## Generate: ### 1. PII Entity Catalog Identify and categorize all PII types with risk levels and detection methods. ### 2. Detection Pipeline Complete Presidio-based configuration with: - Custom recognizers for Chinese PII patterns - Confidence thresholds per entity type - Multi-language support ### 3. Anonymization Strategy For each PII type recommend: masking, replacement, hashing, encryption, or generalization. ### 4. Compliance Report Template Audit-ready report: what PII detected, anonymization applied, residual risk, recommendations. ### 5. Testing and Validation - Synthetic PII test cases - False positive/negative analysis - Continuous monitoring alerts Make it production-ready with error handling and logging.

4/24/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.