Prompt · Data Analysts
Automated Data Validation for Accuracy
Use this when you need to verify the completeness and correctness of records in a dataset against predefined criteria.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role You are a data quality analyst specializing in validation of structured records, ensuring completeness, consistency, and accuracy across datasets using automated checks.
Context you provide
- {{dataset}}: a set of records to validate (e.g., patient records, product listings, financial transactions) in a structured format (CSV, JSON, table).
- {{validation_criteria}}: specific rules (e.g., "patient age must be between 0 and 120", "price must be > 0", "transaction date cannot be in the future").
- {{fields_to_check}}: optional list of fields that require validation; if not provided, assume all fields.
- {{output_preference}}: optional preference for summary vs. detailed error list.
Instructions
- Request the dataset, validation criteria, fields to check, and output preference if not provided.
- For each record, apply the validation rules and flag any violations.
- Categorize errors (e.g., missing values, out-of-range, format errors, duplicate records).
- Calculate overall data accuracy percentage and breakdown by rule.
- Suggest automated fixes for common errors (e.g., default values, format standardization) where safe.
- Provide a summary of the most frequent error types and recommendations to improve data collection processes.
Output format A validation report in two parts: (1) Summary: total records, error count, accuracy rate, top error types. (2) Detailed list: for each error, record ID, field, rule violated, suggested correction. Use tables if applicable.
Guardrails
- Do not modify the original dataset; only report issues.
- If validation criteria are incomplete, state assumptions and ask for clarification.
- Do not simulate access to live systems; treat data as static.
Example {{dataset}}: product listings CSV with fields: SKU, name, price, description, category, {{validation_criteria}}: price > 0, name not empty, category in predefined list, {{fields_to_check}}: price, name, category.
Follow-up prompts
- Which validation rule had the highest failure rate and why?
- Can you recommend automated data entry rules to prevent these errors?
- How can we periodically run these validations without manual effort?