> ## 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.

# Creating Workflows

> How to create and configure workflows in anyformat

There are **two ways to create a workflow**, plus a head-start option:

* **Describe it** *(recommended for most people)* — type what you want in plain language and anyformat builds a Parse → Extract workflow for you (Parse reads the document, Extract pulls out the fields), with suggested fields.
* **Build it yourself in [Studio](/guides/studio/index)** — arrange the steps visually on a canvas. Use this when you need more than Parse → Extract (sorting documents by type, splitting multi-document files, validation rules).
* **Start from a template** — begin from a ready-made workflow for a common document type and tweak it. See [Templates](#starting-from-a-template) below.

This page covers the **describe it** flow. For the visual editor, see the [Studio guide](/guides/studio/index).

***

## Describe it (from the home screen)

The easiest way to start is from the **home** screen, where you'll find a text box similar to a chat interface.

Here, you can:

* Describe the type of document you want to process
* Explain what you want to extract
* Upload a sample document

You can upload documents by:

* Dragging and dropping
* Clicking **Add document**

<Tip>
  **Our recommendation:** Provide both a description *and* a sample document. This gives the best starting point.
</Tip>

When you're ready, click the **send icon** (the arrow button in the box) to start. anyformat creates a workflow that reads your document and suggests the fields to extract.

<video autoPlay loop muted playsInline className="w-full rounded-lg" aria-label="Creating a workflow from the home screen">
  <source src="https://mintcdn.com/anyformat/Lj-IYCar0l6vJwHb/images/createfromhome.mp4?fit=max&auto=format&n=Lj-IYCar0l6vJwHb&q=85&s=46b2373841ed99b84e6763d1f6f0d7be" type="video/mp4" data-path="images/createfromhome.mp4" />
</video>

***

## Starting from a template

If your document is a common type, you can start from a **template** instead of describing everything from scratch. A template is a ready-made workflow with the fields already defined for that document type — for example an invoice (vendor, line items, taxes, totals, due dates, currency).

When you pick a template:

1. A new workflow is created with the fields already filled in.
2. You adjust the fields to match your exact needs (add, remove, or rename).
3. From there you follow the same Define → Refine → Publish flow as any other workflow.

Templates just save you the setup — everything stays editable. See [Versions & templates](/guides/workflows/versions-templates) for the full list of available templates.

***

## The workflow lifecycle

Every workflow goes through **three steps**:

<Steps>
  <Step title="Define">
    Define what data you want to extract
  </Step>

  <Step title="Refine">
    Check and improve quality
  </Step>

  <Step title="Publish">
    Make the workflow available for use at scale
  </Step>
</Steps>

You always move in this order.

<video autoPlay loop muted playsInline className="w-full rounded-lg" aria-label="From Define to Refine">
  <source src="https://mintcdn.com/anyformat/Lj-IYCar0l6vJwHb/images/definetorefine.mp4?fit=max&auto=format&n=Lj-IYCar0l6vJwHb&q=85&s=c513382a484d23eb89a1d7f9fe583abe" type="video/mp4" data-path="images/definetorefine.mp4" />
</video>

***

## Step 1: Define

This is where you define **what data you want**.

### The workspace layout

During definition, the screen is split into two areas:

<CardGroup cols={2}>
  <Card title="Document viewer (left)" icon="file">
    * Displays the uploaded document
    * Shows one document at a time
    * Supports multi-page documents

    You can scroll through pages, switch pages, zoom in/out, and search within the document.
  </Card>

  <Card title="Fields panel (right)" icon="list">
    * Add fields manually
    * Ask AI to suggest fields
    * Edit existing fields

    Each field has a name, a type, and instructions.
  </Card>
</CardGroup>

***

### AI suggestions

Suggestions are generated based on:

* The prompt
* The document
* Or both

You can:

* Add suggested fields
* Edit them later
* Ignore them completely

Suggestions are optional helpers.

***

### Adding fields manually

To add a field:

1. Click **New field**
2. Choose:
   * Field name
   * Field type *(see [Field types](/concepts/field-types))*
   * Instructions (or let AI generate them from the name)

You can also:

* Duplicate fields
* Delete fields (from the three-dot menu on the field card)

<video autoPlay loop muted playsInline className="w-full rounded-lg" aria-label="Creating a field">
  <source src="https://mintcdn.com/anyformat/Lj-IYCar0l6vJwHb/images/createfield.mp4?fit=max&auto=format&n=Lj-IYCar0l6vJwHb&q=85&s=57d231e27705197fd017e05f8d315455" type="video/mp4" data-path="images/createfield.mp4" />
</video>

<video autoPlay loop muted playsInline className="w-full rounded-lg" aria-label="Editing or deleting a field">
  <source src="https://mintcdn.com/anyformat/Lj-IYCar0l6vJwHb/images/editfield.mp4?fit=max&auto=format&n=Lj-IYCar0l6vJwHb&q=85&s=14503dda7d19d895dbb219d1af1e1551" type="video/mp4" data-path="images/editfield.mp4" />
</video>

***

### Special field types

For some field types:

* **Select / Multiselect** - define option names and descriptions
* **Object (Subtable)** - define subfields

When editing a field:

* Click the field
* View its properties in the card preview
* See options or subfields directly

***

### Before moving on

Before continuing:

* Make sure all fields are **saved**
* You can edit fields later, but saving now avoids issues

***

## Step 2: Refine

This step is about **checking and improving quality**.

### Running the workflow

* Processing runs automatically
* It may take a few moments to complete

***

### Reviewing results

You can review results using:

* The document view
* The Markdown representation

Markdown helps verify that parsing worked correctly.

***

### Visual grounding

Each extracted field is linked to its location in the document:

* Highlighted in a single color in the document viewer
* Clicking a field highlights it in the document — and clicking an area in the document highlights the corresponding field

This helps you understand **where values came from**.

***

## Step 3: Publish

Once you've reviewed the results and they look correct:

* You can publish the workflow

After publishing:

* Upload additional documents
* Apply the workflow at scale
* Start generating data

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

***

### After publishing

Published workflows:

* Appear in the home
* Appear in the Workflows section
* Can be reused and run multiple times

***

## What's next?

<CardGroup cols={2}>
  <Card title="Running Workflows" icon="play" href="/guides/workflows/running">
    Learn how to run workflows on documents
  </Card>

  <Card title="Verification & Review" icon="check-double" href="/guides/workflows/verification-review">
    Review and verify extracted data at scale
  </Card>
</CardGroup>
