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

# Running Workflows

> How to run workflows on documents in anyformat

Once a workflow is published, you can run it on documents to extract structured data.

***

## Adding documents

Documents can be added to a workflow:

* **Manually** - Upload through the interface
* **Via API** - Send documents programmatically
* **Cloud storage** - Connect to Google Drive or Microsoft SharePoint

***

## Document statuses

Each document has a status that reflects its state:

| Status          | Description                                                                 |
| --------------- | --------------------------------------------------------------------------- |
| **Not started** | The workflow has not been run on this document yet                          |
| **Queued**      | The document is waiting for an available processing slot                    |
| **In progress** | anyformat is currently processing the document                              |
| **Processed**   | The document has been processed, but not yet reviewed                       |
| **Verified**    | The extracted data has been reviewed and confirmed correct (shown in green) |
| **Error**       | There was an error during processing (not counted toward usage)             |
| **Cancelled**   | Processing was cancelled before it finished                                 |

<img src="https://mintcdn.com/anyformat/8NG_m89ByyOPWzoj/images/document-pending.webp?fit=max&auto=format&n=8NG_m89ByyOPWzoj&q=85&s=b12cae743bd9f66baa5c6b0b21470274" alt="A document queued for processing" width="1484" height="888" data-path="images/document-pending.webp" />

<img src="https://mintcdn.com/anyformat/8NG_m89ByyOPWzoj/images/document-processing.webp?fit=max&auto=format&n=8NG_m89ByyOPWzoj&q=85&s=154a45bcdc05f85de327d6cac768eef3" alt="A document being processed" width="1484" height="913" data-path="images/document-processing.webp" />

***

## Running a workflow

There are two ways to start processing:

* **In bulk, from the table:** select the documents that haven't been processed and click **Run**.
* **One at a time, from the document view:** open a document (click its filename in the table) and click **Process document** in the panel on the right. If a document errored, the same button reads **Process again** so you can retry it.

Processing usually takes anywhere from a few seconds for a short document to a couple of minutes for a long one. It depends on:

* Document size
* Number of pages
* Current system load

<video autoPlay loop muted playsInline className="w-full rounded-lg" aria-label="Running documents">
  <source src="https://mintcdn.com/anyformat/Lj-IYCar0l6vJwHb/images/rundocuments.mp4?fit=max&auto=format&n=Lj-IYCar0l6vJwHb&q=85&s=8362804a41cff062864c121e9d6c8646" type="video/mp4" data-path="images/rundocuments.mp4" />
</video>

<Note>
  If a document ends up in **Error**, open it and click **Process again** to retry. Errors are usually temporary or caused by an unreadable file — errored documents aren't counted toward usage. If it keeps failing, check that the file isn't corrupted or password-protected.
</Note>

***

## Viewing results

As soon as a document finishes processing, its results appear automatically — no need to refresh. You can view them two ways:

<CardGroup cols={2}>
  <Card title="Table view" icon="table">
    Review all your documents at once. The first tab shows your documents (one row per document, one column per field); additional tabs show the output of each step in your workflow (Parse, Classify, Split, Extraction, Validation).
  </Card>

  <Card title="Document view" icon="file">
    Open one document (click its filename) to review it on its own, with each value highlighted on the page it came from. It has the same per-step tabs as the table view.
  </Card>
</CardGroup>

<img src="https://mintcdn.com/anyformat/8NG_m89ByyOPWzoj/images/tabs-per-document.webp?fit=max&auto=format&n=8NG_m89ByyOPWzoj&q=85&s=f5658d355912c0fb781bdfcf6e9f7dfa" alt="Per-step tabs for a document" width="1915" height="891" data-path="images/tabs-per-document.webp" />

***

## Exporting results

From the workflow view, you can download processed results in:

* **CSV** - For spreadsheets and data analysis
* **Excel** - For business users
* **JSON** - For integrations and automation

You can export:

* All documents at once
* Selected documents
* Individual documents (row-level export)

<img src="https://mintcdn.com/anyformat/pilIFdJ4MJRok4mo/images/export.webp?fit=max&auto=format&n=pilIFdJ4MJRok4mo&q=85&s=3df9b23483951eaf9088417b7d6a2728" alt="Exporting results" width="912" height="688" data-path="images/export.webp" />

***

## What's next?

<CardGroup cols={2}>
  <Card title="Verification & Review" icon="check-double" href="/guides/workflows/verification-review">
    Learn how to verify and correct extracted data
  </Card>

  <Card title="Analytics & Quality" icon="chart-line" href="/guides/workflows/analytics-quality">
    Monitor and improve quality
  </Card>
</CardGroup>
