> ## 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, run it on documents to extract structured data.

***

## Adding documents

Add documents to a workflow three ways:

* **Manually:** upload through the interface
* **Via API:** send documents programmatically
* **Cloud storage:** import from Microsoft OneDrive or SharePoint. See [Cloud storage](/guides/cloud-storage).

***

## Document statuses

Each document has a status that reflects its state:

| Status          | Description                                                                   |
| --------------- | ----------------------------------------------------------------------------- |
| **Not started** | The workflow has not run on this document yet                                 |
| **Queued**      | The document waits for an available processing slot                           |
| **In progress** | anyformat is processing the document                                          |
| **Processed**   | anyformat processed the document. Nobody has reviewed it.                     |
| **Verified**    | Someone reviewed the extracted data and confirmed it correct. Shown in green. |
| **Error**       | Processing failed. This document is not counted toward usage.                 |
| **Cancelled**   | Processing stopped 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

Two ways start processing:

* **In bulk, from the table:** select the unprocessed documents and click **Run**.
* **One at a time, from the document view:** open a document by clicking its filename in the table, then click **Process document** in the panel on the right. After an error, the same button reads **Process again**.

Processing takes a few seconds for a short document, and a couple of minutes for a long one. Three things drive it:

* 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**. Errors are usually temporary, or caused by an unreadable file. An errored document is not counted toward usage. If it keeps failing, check that the file is not corrupted or password-protected.
</Note>

***

## Viewing results

As soon as a document finishes processing, its results appear. You do not refresh. View them two ways:

<CardGroup cols={2}>
  <Card title="Table view" icon="table">
    Review all your documents at once. The first tab shows one row per document and one column per field. Further tabs show each node's output: Parse, Classify, Split, Extraction, Validation.
  </Card>

  <Card title="Document view" icon="file">
    Click a filename to open one document on its own, with each value highlighted on the page it came from. It carries the same per-node 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-node tabs for a document" width="1915" height="891" data-path="images/tabs-per-document.webp" />

***

## Exporting results

From the workflow view, download processed results in:

* **CSV:** for spreadsheets and data analysis
* **Excel:** for business users
* **JSON:** for integrations and automation

Export:

* All documents at once
* Selected documents
* One document, as a 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">
    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>
