How to Write Private AI Prompts: Protect Company Data
Learn how to write private AI prompts by sanitizing your data. Discover effective techniques to protect company information while using AI tools securely.
AI Data Privacy for Office Workers5 min read

You can protect sensitive information while using generative AI by applying manual masking, generalization, and template-based prompting to your inputs. These techniques ensure that private details are stripped away before they reach cloud-based models, allowing you to benefit from AI efficiency without risking data exposure.

When you use generative AI, you are interacting with a model that processes context and patterns rather than just querying a database. Traditional redaction—such as deleting a name from a spreadsheet—is often insufficient because LLMs are designed to recognize relationships between disparate pieces of information.
Standard redaction focuses on direct identifiers like names or phone numbers. While removing these is a necessary first step, it ignores how AI models process information. An LLM can easily infer a person's identity by analyzing surrounding context, such as a specific job title, a unique project code, or a combination of rare attributes. If you remove the name but leave the department, project name, and meeting date, the AI may still reconstruct who is being discussed.
The danger lies in quasi-identifiers—data points that become revealing when combined. For example, a salary figure paired with an office location and a niche job title can identify an individual. Furthermore, AI models are prone to re-identification through linkage. Because these models are trained on vast amounts of public data, they can cross-reference your input with public profiles or organizational charts. To truly protect your data, you must adopt a strategy that accounts for the context-aware nature of modern AI.
When processing sensitive documents like performance reviews or client contracts, manual scrubbing is a reliable way to ensure no identifying details reach an AI prompt.
Maintain document logic by using standardized placeholders. Instead of deleting a name, replace it with a generic label that the AI can track. For example, replace "John Doe" with [CLIENT_NAME_1] and "ABC Corp" with [COMPANY_A]. By keeping these tags consistent, the AI recognizes relationships between entities without knowing their actual identity.
AI models excel at identifying patterns, meaning specific data points like exact dates or salary figures can act as "fingerprints." Convert precise details into broader categories. Instead of "June 14, 2024," use "mid-June." If analyzing compensation, replace specific amounts with ranges like "Tier 1" or "Band B." This reduces granularity, making it difficult for the model to link information back to a specific individual.
Before pasting text, perform a final sweep for high-risk identifiers that provide an immediate link to a person or project. Specifically, remove:
Email addresses and phone numbers.
Internal project codes or case numbers.
Physical addresses or specific office locations.
When your workload involves large documents, manual scrubbing becomes impractical. Local, offline de-identification tools are essential here. By running these applications on your own machine, you ensure sensitive information is masked before it touches the cloud.

These tools generally fall into two categories: browser-based sanitizers and local scripts. Browser extensions can scan input fields for patterns like email addresses and replace them with generic placeholders. For those with technical comfort, simple Python scripts using named-entity recognition libraries can automate this process for entire files.
If you use pseudonymization—replacing a real name with a consistent token—you must be diligent about your mapping table. If this "key" is stored in an unencrypted file, you have created a map for re-identification. Always keep this mapping table in a password-protected, encrypted location and ensure only authorized personnel have access.
Once your data is scrubbed, how you frame your request determines whether the AI maintains that privacy.
Adopt "Template Prompting" by defining your variables clearly at the start of your prompt. For example: "I am providing a document where sensitive details have been replaced with placeholders. Please treat these as abstract variables and do not attempt to infer the original identities." This prevents the model from trying to "fill in the blanks" using its internal knowledge.
Even with careful masking, AI models can perform "deductive disclosure" by inferring identity from remaining context. Always review the generated output. If the AI outputs phrases like "Based on the project timeline, this is likely [Real Name]," your input was too descriptive. In such cases, further generalize your data by removing the specific dates or identifiers that triggered the inference.
Balancing the utility of generative AI with data privacy is about building a habit of caution. By treating every prompt as a potential public record, you protect your professional reputation and your organization’s proprietary information. Explore our resources to learn more about integrating secure AI workflows into your daily routine.
AI Data Privacy for Office Workers5 min read
Learn how to write private AI prompts by sanitizing your data. Discover effective techniques to protect company information while using AI tools securely.
AI Data Privacy for Office Workers5 min read
Learn the risks of using public ai tools for work and how to protect client data with proper prompt hygiene and a secure traffic light usage framework.
AI Data Privacy for Office Workers4 min read
Learn how to draft secure AI usage policies for employees in five steps to protect data, prevent shadow AI, and ensure responsible technology adoption.
Need advice?