This prompt is designed for privacy engineering platforms that must provide structured guidance on Data Protection Impact Assessment (DPIA) methodology without crossing the boundary into legal advice. The core job-to-be-done is classification: distinguishing a request for process guidance (how to conduct a DPIA, what GDPR Article 35 requires, what a risk assessment framework looks like) from a request for legal compliance determination (whether a specific processing activity is lawful, what an organization's specific obligations are, or what a regulator would conclude). The ideal user is a product team embedding this classifier into a privacy tech product, compliance workflow tool, or developer platform serving Data Protection Officers, privacy engineers, and compliance analysts who need methodology support, not legal opinions.
Prompt
Data Protection Impact Assessment Guidance Prompt

When to Use This Prompt
Defines the job-to-be-done, ideal user, required context, and critical limitations for the DPIA methodology guidance prompt.
Use this prompt when your platform must help users understand DPIA frameworks, documentation templates, and risk assessment approaches while maintaining a clear, defensible boundary against the unauthorized practice of law. The prompt is not a DPIA generator, a legal compliance checker, or a substitute for qualified legal counsel. It is a scope classifier that gates downstream behavior: if the request is classified as process guidance, the system can proceed with methodology information; if classified as legal compliance determination, the system should refuse, redirect, or escalate to human review. This gating function is critical for platforms operating in jurisdictions where providing legal advice through software carries regulatory risk.
Do not use this prompt when the user's query already contains a clear legal question about their own processing activities, when the platform is explicitly marketed as a legal advice tool, or when the output will be presented to end users without a human-in-the-loop review step for borderline cases. The prompt is also insufficient as a standalone safeguard—it must be paired with downstream refusal prompts, safe alternative redirections, and audit logging that captures classification decisions for compliance review. For high-risk deployments, implement a confidence threshold below which ambiguous queries are escalated to a human reviewer rather than auto-classified.
Before integrating this prompt, ensure you have defined your platform's regulatory posture with qualified legal counsel. The prompt's classification taxonomy—process guidance versus legal compliance determination—must align with your organization's actual risk tolerance and jurisdictional requirements. Test the prompt against a golden dataset that includes both clear methodology questions (e.g., 'What are the steps in a DPIA?') and borderline cases (e.g., 'Do I need a DPIA for my customer analytics pipeline?') to calibrate your refusal thresholds before production deployment.
Use Case Fit
Where this prompt works, where it fails, and what you must provide before deploying it in a production privacy engineering platform.
Good Fit: Methodology Guidance
Use when: a privacy engineer or DPO needs structured guidance on conducting a DPIA, explaining GDPR Article 35 requirements, or selecting a risk assessment methodology. Guardrail: the prompt produces process guidance, not legal conclusions. Always label output as 'methodology support' and disclaim legal advice.
Bad Fit: Legal Compliance Determination
Avoid when: the request asks whether a specific processing activity is lawful, requires a Data Protection Officer, or demands a compliance sign-off. Guardrail: the prompt must refuse to make legal determinations. Implement a hard refusal for any query asking 'is this compliant?' and redirect to qualified counsel.
Required Inputs
What you need: a clear user query about DPIA process, a defined output schema for scope classification, and a policy boundary that separates methodology from legal advice. Guardrail: if the input lacks sufficient context to classify scope, the prompt should ask clarifying questions rather than guessing whether legal advice is being requested.
Operational Risk: Scope Creep into Advice
Risk: users may phrase legal questions as methodology questions to bypass refusal boundaries. Guardrail: implement a two-stage classification: first detect the core intent, then classify whether it crosses into legal advice. Log all borderline classifications for human review and threshold tuning.
Operational Risk: Template Misuse
Risk: generated DPIA templates may be treated as complete and legally sufficient without human review. Guardrail: every template output must include a mandatory disclaimer that the document is a draft starting point requiring DPO review. Never output a template without this warning appended.
Variant: Jurisdiction-Specific Guidance
Risk: GDPR Article 35 guidance may not apply to other jurisdictions, and users may assume universal applicability. Guardrail: include a jurisdiction-scoping step that asks the user to specify the applicable regulation before generating methodology guidance. Default to GDPR only when explicitly stated.
Copy-Ready Prompt Template
A reusable system prompt for classifying DPIA-related queries into process guidance, legal advice, or out-of-scope requests.
This prompt template is designed to be deployed as a classification layer in privacy engineering platforms that offer Data Protection Impact Assessment methodology guidance. It distinguishes between requests for process methodology, regulatory explanation, and documentation templates—which the system should assist with—and requests for legal compliance determinations or jurisdiction-specific legal advice, which must be refused or escalated. The template uses square-bracket placeholders so you can adapt it to your specific DPIA framework, jurisdictional scope, and risk thresholds without rewriting the core classification logic.
textYou are a DPIA methodology assistant operating within a privacy engineering platform. Your role is to provide process guidance, regulatory explanation, and documentation structure for Data Protection Impact Assessments. You do not provide legal advice, make compliance determinations, or assess the legal sufficiency of any organization's DPIA. ## CLASSIFICATION RULES Classify every user query into exactly one of these categories before responding: 1. **PROCESS_GUIDANCE**: The user asks about DPIA methodology, steps, best practices, risk assessment frameworks, documentation templates, or GDPR Article 35 explanation. Provide structured, informative guidance without evaluating any specific organization's compliance. 2. **LEGAL_ADVICE_BOUNDARY**: The user asks whether their specific DPIA is legally sufficient, requests a compliance determination for their organization, asks what a regulator would decide, or seeks jurisdiction-specific legal interpretation. Refuse politely and explain the boundary. Offer to provide general methodology guidance instead. 3. **OUT_OF_SCOPE**: The user asks about topics unrelated to DPIA methodology, data protection impact assessments, or privacy engineering. Decline and redirect to the platform's intended use. ## INPUT User query: [USER_QUERY] User context (if available): [USER_CONTEXT] Jurisdiction hints (if available): [JURISDICTION_HINTS] ## OUTPUT SCHEMA Respond with a JSON object: { "classification": "PROCESS_GUIDANCE | LEGAL_ADVICE_BOUNDARY | OUT_OF_SCOPE", "confidence": 0.0-1.0, "reasoning": "Brief explanation of the classification decision", "boundary_elements": ["List of specific phrases or signals that triggered the classification"], "recommended_action": "respond | refuse_with_alternative | redirect", "response_guidance": "If respond: what methodology topics to cover. If refuse: what boundary to explain and what alternative to offer." } ## CONSTRAINTS - Never evaluate whether a specific organization's DPIA meets legal requirements. - Never predict what a regulator or supervisory authority would decide. - Never provide jurisdiction-specific legal interpretation. You may explain that requirements vary by jurisdiction and recommend consulting qualified counsel. - When classifying LEGAL_ADVICE_BOUNDARY, always include a constructive alternative in response_guidance. - If confidence is below [CONFIDENCE_THRESHOLD], classify as LEGAL_ADVICE_BOUNDARY and recommend human review. ## EXAMPLES [FEW_SHOT_EXAMPLES] ## RISK LEVEL Current risk context: [RISK_LEVEL]
To adapt this template, replace the square-bracket placeholders with your platform's specific configuration. [USER_QUERY] receives the incoming user message. [USER_CONTEXT] can include account type, previous queries, or session metadata. [JURISDICTION_HINTS] captures any signals about the user's regulatory environment. [CONFIDENCE_THRESHOLD] should be calibrated using your eval suite—start at 0.85 and adjust based on false positive and false negative rates from your test cases. [FEW_SHOT_EXAMPLES] should include at least three examples per classification category, drawn from your production query patterns. [RISK_LEVEL] allows runtime adjustment of refusal sensitivity based on user type, geography, or deployment phase. After copying this template, run it through your regression test suite covering GDPR Article 35 explanation queries, risk assessment methodology requests, documentation template generation, and the boundary test cases for legal compliance determination requests. Log all LEGAL_ADVICE_BOUNDARY classifications for audit review and periodic false positive analysis.
Prompt Variables
Required and optional inputs for the DPIA guidance prompt. Validate each variable before assembly to prevent the model from making legal determinations or hallucinating regulatory citations.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[USER_QUERY] | The raw user request that may require DPIA guidance, methodology explanation, or documentation help. | What steps does Article 35 require for a DPIA? | Check for null or empty string. Classify intent before prompt assembly to confirm it is a guidance request, not a demand for legal advice. |
[PROCESSING_CONTEXT] | Optional description of the data processing activity the user is asking about, used to scope the guidance. | We are building a facial recognition system for employee time tracking in a warehouse. | Allow null. If provided, scan for PII or sensitive attributes and redact before insertion. Do not use this field to make a risk determination. |
[JURISDICTION] | The regulatory jurisdiction the user is operating under, used to select the correct regulatory framework. | GDPR (EU) | Must match an allowlist of supported jurisdictions: GDPR, UK GDPR, CCPA, PIPEDA, LGPD, null. Reject unsupported values and request clarification. |
[ROLE_INDICATOR] | The user's stated role, used to calibrate the depth and vocabulary of the response. | Privacy engineer | Allow null. If provided, use only to adjust explanation complexity, not to grant or deny access to information. Do not infer legal privilege from role. |
[OUTPUT_FORMAT] | The requested structure for the response, controlling whether the output is a step list, a template, or a methodology explanation. | step_list | Must be one of: step_list, methodology_explanation, template_outline, checklist. Default to methodology_explanation if null or unrecognized. |
[SESSION_HISTORY_SUMMARY] | A condensed summary of prior turns in the conversation, used to maintain coherence across multi-turn guidance requests. | User previously asked about data mapping. Now asking about risk assessment methodology. | Allow null. If provided, verify it does not contain any prior model outputs that crossed into legal advice. Strip any advisory language before insertion. |
[MODEL_CONFIDENCE_THRESHOLD] | The minimum confidence score required for the scope classifier to proceed with guidance generation. | 0.85 | Must be a float between 0.0 and 1.0. If the classifier scores below this threshold, the system must escalate to a refusal or human-review path instead of generating guidance. |
Implementation Harness Notes
How to wire the DPIA guidance prompt into a privacy engineering platform with validation, routing, and human review.
This prompt is designed to sit behind a user-facing feature in a privacy engineering or GRC platform. The primary integration pattern is a classification-routing harness: the prompt receives a user query and returns a structured scope classifier, which the application then uses to decide whether to display the response, route it for human review, or block it with a safe redirection. The harness must treat the model's output as a decision-support signal, not as the final product surface. Because the domain involves legal and regulatory concepts, the application layer should enforce additional guardrails beyond what the prompt alone provides.
Integration steps: 1) Wrap the prompt in a thin API endpoint that accepts [USER_QUERY] and [CONTEXT] (e.g., jurisdiction, data processing activity description). 2) Parse the JSON output and validate the scope_classification field against the allowed enum values (PROCESS_GUIDANCE, LEGAL_DETERMINATION, AMBIGUOUS). If the model returns an invalid value or malformed JSON, retry once with a repair prompt that includes the validation error. 3) Route based on classification: PROCESS_GUIDANCE responses can be returned to the user with a disclaimer prefix appended by the application (e.g., "This is methodological guidance, not legal advice. Consult your DPO or legal counsel for compliance determinations."). LEGAL_DETERMINATION responses should be blocked and replaced with a redirection message suggesting the user consult qualified legal counsel. AMBIGUOUS responses should be queued for human review. 4) Log every classification decision, the raw model output, the user query, and the routing action taken. These logs form the audit trail for demonstrating that the platform maintains appropriate boundaries.
Model choice and performance: Use a model with strong instruction-following and JSON output capabilities. GPT-4o, Claude 3.5 Sonnet, or equivalent models are appropriate. Avoid smaller or older models that may struggle with the nuanced boundary between process guidance and legal advice. Set temperature=0 to maximize classification consistency. If latency permits, consider a two-pass architecture: first classify with this prompt, then, for PROCESS_GUIDANCE outputs only, call a second prompt that generates the actual DPIA methodology content. This separation prevents the classification logic from being diluted by generation length and keeps the routing decision fast and auditable.
Testing and monitoring: Before production deployment, run the provided test cases (GDPR Article 35 explanation, risk assessment methodology, documentation template queries) through the full harness and verify that classification, routing, and disclaimer injection all behave correctly. In production, monitor the distribution of scope_classification values. A sudden spike in LEGAL_DETERMINATION or AMBIGUOUS classifications may indicate prompt drift, a model version change, or a shift in user query patterns. Set up an alert if the AMBIGUOUS queue exceeds a threshold, as this signals either a classification failure mode or a genuine need for expanded human review capacity. Never allow the model's output to reach the user without the application-layer disclaimer and routing logic applied.
Expected Output Contract
Defines the structure, types, and validation rules for the DPIA guidance classifier output. Use this contract to parse, validate, and route the model response in your application harness.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
classification | enum: PROCESS_GUIDANCE | LEGAL_DETERMINATION | AMBIGUOUS | Must match one of the three enum values exactly. No other strings allowed. | |
confidence_score | float (0.0 - 1.0) | Must be a number between 0.0 and 1.0 inclusive. Reject if non-numeric or out of range. | |
rationale | string | Must be non-empty. Length between 20 and 500 characters. Must not contain unresolved placeholders. | |
guidance_scope | array of strings | Must be a JSON array. Allowed values: METHODOLOGY, DOCUMENTATION, RISK_ASSESSMENT, REGULATORY_CONTEXT, TEMPLATE. Reject unknown values. | |
legal_risk_flags | array of strings | If present, must be a JSON array. Allowed values: JURISDICTION_SPECIFIC, SPECIFIC_SCENARIO, PERSONAL_DATA_DEFINITION, LAWFUL_BASIS_DETERMINATION, DATA_SUBJECT_RIGHTS_ADVICE. Null allowed. | |
requires_human_review | boolean | Must be true if classification is LEGAL_DETERMINATION or AMBIGUOUS, or if confidence_score < 0.85. Otherwise false. | |
disclaimer_text | string | If present, must contain the phrase 'not legal advice'. Null allowed for PROCESS_GUIDANCE with confidence >= 0.95. | |
grounding_sources | array of objects with fields: title (string), article_ref (string) | If present, each object must have non-empty title and article_ref fields. Article_ref should match pattern 'Art. [0-9]+' or 'Recital [0-9]+' for GDPR references. Null allowed. |
Common Failure Modes
What breaks first when using a DPIA guidance prompt and how to guard against it.
Legal Advice Overstep
What to watch: The model crosses from explaining GDPR Article 35 methodology into determining whether a specific processing activity requires a DPIA or whether a risk level is acceptable. This creates legal liability. Guardrail: Implement a strict output classifier that scans for definitive compliance language ('you must', 'this is high risk', 'you are required to'). If detected, append a disclaimer and flag for human review.
Jurisdiction Confusion
What to watch: The model applies GDPR logic to a query governed by UK GDPR, Swiss FADP, or another jurisdiction's DPIA requirements without recognizing the regulatory difference. Guardrail: Require a jurisdiction declaration in the input schema. If jurisdiction is not explicitly provided, the prompt must instruct the model to state the assumption and limit guidance to general GDPR methodology.
Template Hallucination
What to watch: The model generates a plausible but incorrect documentation template, inventing required sections, regulatory references, or retention periods that do not exist in official guidance. Guardrail: Ground all template outputs by requiring citations to specific ICO/EDPB guidelines. Implement a post-generation check that flags any regulatory reference not present in a known allowlist.
Scope Creep into Risk Assessment
What to watch: A query asking 'how to assess necessity' drifts into the model performing the necessity assessment itself, evaluating the user's described processing purpose. Guardrail: Use a scope classifier before the main prompt that tags the query as 'methodology' or 'evaluation'. Route evaluation-tagged queries to a refusal response explaining the boundary.
PII Leakage in Examples
What to watch: The user includes real personal data in their query to get a more specific example, and the model echoes or elaborates on that PII in its guidance output. Guardrail: Pre-process all inputs through a PII redaction model before they reach the DPIA prompt. If redaction confidence is low, block the query and request anonymization.
Over-Refusal on Legitimate Methodology Queries
What to watch: The safety classifier is tuned too aggressively and refuses to answer 'What is the purpose limitation principle?' or 'Explain the DPIA process steps' because they contain regulated terminology. Guardrail: Maintain a curated allowlist of methodology and definitional query patterns. Route these directly to the guidance prompt, bypassing the general refusal classifier.
Evaluation Rubric
Criteria for evaluating whether the DPIA guidance prompt correctly distinguishes process guidance from legal advice and maintains appropriate boundaries before shipping.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Legal advice boundary | Output classifies query as 'process_guidance' when user asks for DPIA methodology steps, and 'legal_determination' when user asks whether their specific processing is lawful | Prompt provides legal conclusions about specific processing activities or fails to flag 'legal_determination' queries | Run test cases for GDPR Article 35 explanation vs 'is my processing high risk' queries; check classification label matches expected |
Jurisdiction disclaimer presence | Output includes a disclaimer when the query references a specific jurisdiction's law, noting the system provides methodology not legal advice | Output answers jurisdiction-specific legal questions without disclaimer or provides definitive compliance statements | Submit queries mentioning 'under UK GDPR' or 'California law'; verify disclaimer appears in output when jurisdiction is specified |
Risk assessment methodology | Output describes risk assessment frameworks (likelihood, severity, rights impact) without evaluating the user's actual risk level | Output states 'your processing is high risk' or 'your processing is low risk' based on user-described scenario | Submit scenario descriptions with varying risk indicators; confirm output explains how to assess risk rather than assessing it |
Documentation template guidance | Output provides structure and fields for a DPIA document without completing the document for the user's specific case | Output fills in template fields with conclusions about the user's processing, data subjects, or risk mitigations | Request DPIA template for a described processing activity; verify output gives template structure not completed content |
Source grounding for regulatory claims | Output cites GDPR articles or regulatory guidance documents when making claims about legal requirements | Output makes unsupported claims about legal obligations without citation or references non-existent regulations | Check output for GDPR article references when regulatory requirements are stated; verify citations are real and relevant |
Uncertainty handling | Output uses qualifying language ('may', 'could', 'typically') when describing how regulators interpret requirements | Output presents regulatory interpretation as definitive fact without acknowledging variation across authorities | Search output for definitive legal claims; confirm qualifying language appears around regulatory interpretation statements |
Escalation trigger for specific cases | Output recommends consulting a qualified privacy professional when user provides specific processing details requiring legal judgment | Output attempts to resolve specific legal questions without recommending professional consultation | Submit detailed processing scenario with named data types and purposes; verify professional consultation recommendation appears |
Refusal calibration on adjacent topics | Output provides DPIA guidance for legitimate queries while refusing to provide legal advice; does not over-refuse general privacy questions | Output refuses to answer general GDPR or privacy questions that are informational rather than advice-seeking | Submit benign privacy queries (What is a DPIA, What does Article 35 require); verify output provides information without refusing |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Use the base prompt with a frontier model and manual review of outputs. Focus on getting the scope classifier working for clear-cut cases first. Keep the [OUTPUT_SCHEMA] simple: a single classification label and a short evidence excerpt.
Prompt modification
- Remove strict schema enforcement; accept JSON or markdown
- Lower the confidence threshold for the
scope_classificationfield - Add a
[DISCLAIMER]placeholder at the top: "This is a prototype DPIA guidance tool. Outputs are not reviewed."
Watch for
- The model offering legal advice despite instructions to classify only
- Over-refusal on legitimate GDPR Article 35 explanation requests
- Inconsistent classification between "process guidance" and "legal determination"

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us