---
title: "Data Audit on Every File Upload"
slug: data-quality-audit
url: https://invertbio.com/docs/assist-use-cases/data-quality-audit
keywords: ["assist","use case","automation","data quality","import preview","skill"]
---

# Data Audit on Every File Upload

Every file your team uploads is audited by Assist before a single value lands in Invert. You write the rules once; Assist checks each new import against them when it is ready for review, and tells you what is off.

> Assist does recurring work on its own: on a schedule, or when something happens, such as a new file upload.

## The problem

Bad data rarely announces itself. A pH probe drifts out of range for an hour, a required property is left empty, a column arrives in the wrong unit. Nobody notices until a plot looks wrong or a report goes out with a number that cannot be right. By then the data is in Invert, formulas have run on it and the fix means tracing it back to the file.

Checking every upload by hand is the obvious answer, and the one nobody has time for.

## How it works

The audit is three Invert features working together:

-   A **Data Audit Skill** holds your rules: the quantities you expect, the ranges they must stay in, the properties that have to be filled.
-   **Import Preview** holds every uploaded file for review so it can be inspected before it is committed.
-   An **Automation** triggered by **Import preview ready** runs the Skill on the data waiting for approval and posts the findings to an Assist session.

## Setting it up

1.  **Write the Skill.** On the **Skills** page, create a Skill with your checklist, or ask Assist to draft it from a good data set. A few lines are enough to start:

    ```text
    Expected quantities: pH, DO, Temperature, VCD, Viability, Glucose, Lactate, Titer
    Ranges: pH 6.6-7.4, Temperature 30-38 °C, Viability 0-100 %, Glucose 0-15 g/L
    Required properties: Cell Line, Reactor ID, Operator, Media Lot
    Report one table per check and finish with PASS or NEEDS ATTENTION.
    ```

2.  **Create the Automation.** On the **Automations** page, select the Skill, set the trigger to **Import preview ready** and, if you like, limit it to specific **Mappings**. Leave **Notify when finished** on.
3.  **Upload as usual.** Import Preview is on by default for single-file uploads, so nothing changes for the people uploading data.

![Automation configuration with the data completeness Skill, the "Import preview ready" trigger and one mapping](/docs/assist-use-cases/data-quality-audit/image-1.png)

## What happens on every upload

1.  Invert prepares the file for your review and shows the preview.
2.  The Automation fires. Assist opens a session, loads the data waiting for approval and works through your checks.
3.  Assist flags every finding with run, quantity, value and timestamp: a quantity that never appears, a pH excursion, an empty Media Lot. It closes with a verdict, PASS or NEEDS ATTENTION.
4.  You get a notification. If the audit passed, click **Complete import**. If not, fix it right there: _"drop the two glucose readings above 15 g/L, they are sampling errors"_. Assist prepares an updated preview for you to approve, or you dismiss the preview and re-upload a fixed file.

Nothing is written until you click **Complete import**. A failed audit never reaches your workspace.

![Assist session started by the automation: the audit verdict beside a per-run data completeness chart](/docs/assist-use-cases/data-quality-audit/image-2.png)

## Why it matters

-   **Clean data by default.** Every analysis, formula and report downstream starts from data that passed your rules.
-   **Zero extra effort for uploaders.** The audit runs on the preview that exists anyway.
-   **Rules that evolve.** Add a check in plain language and it applies to the next upload.

## Example prompts

-   _"Add a check for osmolality between 280 and 400 mOsm/kg to the Data Audit Skill."_
-   _"Which of these findings are new compared with last week's upload of the same mapping?"_
-   _"Plot the flagged pH excursion in the context of the whole run."_

## Related guides

-   [Assist](/docs/user-guides/assist)
-   [Automations](/docs/user-guides/automations)
-   [Skills](/docs/user-guides/skills)
-   [Import](/docs/user-guides/import)
