> ## Documentation Index > Fetch the complete documentation index at: https://docs.extend.ai/llms.txt > Use this file to discover all available pages before exploring further. > > ## API version > The current API version is `2026-02-09`, served at the site root (no version prefix in URLs). > If this page URL contains `/2025-04-21/` or `/2024-12-23/`, you are reading an older API version. > Prefer the current docs at https://docs.extend.ai/llms.txt unless the user explicitly needs that older version. > Do not treat older-version pages as the source of truth for new integrations. # Validation Step > How to define validation rules for your workflows Validation steps let you define rules to validate the workflow's data and supports your most complex business logic. Rules are defined using formulas that transform and calculate data similar to most spreadsheet applications you are familiar with. Formulas can reference classification, extraction, and instruct QA step outputs, as well as data fetched from your systems using an [External Data Validation](/2024-12-23/product/workflows/external-data-validation-step) step. ## Adding a new step Start by dragging a `Validation` step into your workflow. ![](/_fern-img/49dcf3a4209f41917bbc12c04e1403b29a89dafdfef6559cfdafacdff2eeb453.webp) A Validation step has a single input step which simply determines when to run the validation. Rules can reference data from all steps that come before it, so you do not need to directly connect a step to the Validation step to validate that step's outputs. A Validation step also has two output steps, one if all the rules pass and one otherwise. Only one of the two output steps will be executed for any single workflow run. An example workflow topology is to connect the Webhook Response step if all rules pass and a Human Review step if not. ## Configuring rules Click on a Validation step's `Configure` button to configure the step's rules. The configuration page shows the variables that can be referenced in formulas on the left side and the defined validation rules on the right side. ![](/_fern-img/fbfd2fe056133a64a7375bb970a4e71ccbe6eb9044f76374996429dd0a57e1c1.webp) To add a new rule, click the `Add rule` button on the bottom of the right side of the page. To edit an existing rule instead, click the edit icon (pencil symbol) in the top right corner of the rule. A rule has the following fields: **`name`** `string` — required Name of the rule. This name will be used as a reference when viewing the results in the Dashboard or in the webhook response. --- **`description`** `string` Optional description of the rule. --- **`formula`** `string` — required Formula expression that must evaluate to a `boolean` value. See [Formulas](/2024-12-23/product/validation-rules/formulas) for details about formula syntax and functions. --- Once you are satisfied with this rule, click the accept icon (checkmark symbol) to convert the rule back to viewing mode. If you want to undo your changes to an existing rule or remove a newly added rule, click the decline icon (cross symbol) instead. When you are finished adding or editing rules, save your changes by clicking the `Save` button on the top right corner of the page. > **Warning** > > Important: Do not forget to save your changes! An edited, but unsaved rule > will have no effect on your workflow. ## Viewing results ### Dashboard Validation results can be viewed in the Dashboard once a workflow run is complete or is awaiting human review, along with other step results. ### Webhook Validation results are included in webhook requests' `WorkflowRun` object under the `stepRuns` field. > Ship your document processing with Extend. Get started with our APIs, SDKs, and guides.