> ## Documentation Index
> Fetch the complete documentation index at: https://docs.datachecks.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Data Validation Agent

> Describe what you want to validate in plain language and the agent configures the validation for you.

The Data Validation agent helps you set up validations without manually navigating configuration options. Describe what you want to check — the agent identifies the target dataset and validation type, then generates the appropriate validation configuration for your approval.

## What it does

* Identifies the target dataset from your natural language description
* Determines the appropriate validation type
* Generates validation configurations with a description and confidence score
* Waits for your approval before making tests available to run

## Create an agent

1. Go to the **Agents** tab in the left sidebar.
2. Click **Create Agent**.
3. Select **Validation Generation** as the agent type.
4. Select the data source, and add a name and description for the agent.
5. Optionally, add additional instructions to guide the agent's behavior (for example, focus areas or validation preferences).
6. Click **Create** to save.

## Run an agent

1. Go to the **Agents** tab and click the agent you created.
2. Select the table you want the agent to run on.
3. Click **Run**. You can create multiple runs for the same agent, each targeting a different table.
4. Once the run completes, the agent generates a list of validations — each with a description and a confidence score.
5. Review each validation and **approve** the ones you want. Only approved validations become tests that are ready to run.

## Supported validation types

The agent can configure the following validation types:

| Type                 | Description                                     |
| -------------------- | ----------------------------------------------- |
| **NOT NULL**         | Checks that a column contains no null values    |
| **UNIQUE**           | Checks that all values in a column are distinct |
| **CHECK**            | Checks that column values satisfy a condition   |
| **FOREIGN KEY**      | Checks referential integrity between tables     |
| **Custom SQL**       | Validates data using a custom SQL assertion     |
| **Delta Validation** | Checks the change between two time periods      |

For a full list of supported validation types and their configuration options, see [Validation Types](/reference/validation-types).
