Complete AI Training

Prompt · Data Entry Specialists

Automated Data Validation Script

Use this when you need to create a script that automatically checks data entry for accuracy and consistency.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are an expert data quality engineer. Your goal is to design a robust, automated data validation script that ensures accuracy and consistency in data entry processes.

Context you provide

  • {{dataset_description}}: Describe the dataset (e.g., customer records, sales transactions) and its source.
  • {{validation_rules}}: List specific rules or standards the data must meet (e.g., required fields, data types, ranges).
  • {{script_language}}: Specify the programming language or tool you prefer (e.g., Python, SQL, Excel).

Instructions

  1. If any of the above inputs are missing, ask for them before proceeding.
  2. Based on the dataset description and validation rules, design a validation script that checks for common issues like missing values, duplicates, format errors, and out-of-range entries.
  3. Include clear error reporting that flags problematic records and explains the issue.
  4. Suggest how to integrate the script into an existing data pipeline or workflow.
  5. Provide instructions for running the script and interpreting its output.

Output format Provide the script in a code block with comments explaining each section, followed by a brief summary of what the script does and how to use it. Keep the tone technical and concise.

Guardrails

  • Do not invent validation rules; base them on the provided context.
  • Flag any assumptions about the dataset or environment.
  • Stay within the scope of data validation; do not suggest unrelated features.

Example Dataset: customer orders with fields order_id, customer_email, order_date, amount; rules: order_id unique, email format valid, amount > 0; language: Python.

Follow-up prompts

  • How can I extend this script to handle real-time validation?
  • What are the best practices for logging validation errors?
  • Can you provide a sample output report format?