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

# Examples

> Complete workflows you can copy: the graph, the code to create and run it, and a real response

Every example is one workflow, end to end: the graph as JSON and as SDK code, how to upload a document and read the run, a trimmed real response, and the tips that matter for that document type. Pick the one whose shape matches your problem. The nodes it uses are on every card.

<div className="af-gallery">
  <div className="af-chips" role="group" aria-label="Filter examples">
    <button className="af-chip" type="button" data-shelf="all" aria-pressed="true">All examples</button>
    <button className="af-chip" type="button" data-shelf="read" aria-pressed="false">Read the page</button>
    <button className="af-chip" type="button" data-shelf="piles" aria-pressed="false">Messy piles</button>
    <button className="af-chip" type="button" data-shelf="money" aria-pressed="false">Money and compliance</button>
    <button className="af-chip" type="button" data-shelf="ask" aria-pressed="false">Ask your documents</button>
    <button className="af-chip" type="button" data-shelf="scale" aria-pressed="false">At scale</button>
  </div>

  <div className="af-grid">
    <a className="af-ex" href="/examples/invoice-processing" data-shelf="money">
      <div className="af-art af-art-a af-art-doc">
        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Invoice processing</div>
        <div className="af-ex-note">The header and every line item as its own row, each value carrying the phrase it was read from.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd">Extract</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/split-a-mixed-scan" data-shelf="piles">
      <div className="af-art af-art-a af-art-stack">
        <span />

        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">The scan from accounting</div>
        <div className="af-ex-note">One file holding three invoices, a shipping label and a boarding pass. Cut it up, extract each kind.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd af-nd-hot">Split</span><span className="af-nd">Extract</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/supplier-code-lookup" data-shelf="money">
      <div className="af-art af-art-c af-art-lookup">
        <span />

        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Everyone spells your supplier differently</div>
        <div className="af-ex-note">The name on the invoice becomes the supplier code your ERP files it under.</div>
        <div className="af-ex-nodes"><span className="af-nd af-nd-hot">Smart lookup</span><span className="af-nd">Extract</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/bank-statement-processing" data-shelf="money">
      <div className="af-art af-art-table">
        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Bank statement processing</div>
        <div className="af-ex-note">The statement header plus every transaction as a row, run across a folder of statements.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd">Extract</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/route-on-a-threshold" data-shelf="money">
      <div className="af-art af-art-a af-art-route">
        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Big invoices need a human</div>
        <div className="af-ex-note">Everything under the limit goes straight through; the rest takes a branch, and pings a channel.</div>
        <div className="af-ex-nodes"><span className="af-nd">Extract</span><span className="af-nd af-nd-hot">If/Else</span><span className="af-nd">Slack alert</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/contract-analysis" data-shelf="money">
      <div className="af-art af-art-c af-art-check">
        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Contract analysis</div>
        <div className="af-ex-note">Key terms and clauses, then rules that flag the ones nobody should sign unread.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd">Extract</span><span className="af-nd af-nd-hot">Validate</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/receipt-scanning" data-shelf="piles">
      <div className="af-art af-art-receipt">
        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Receipt scanning</div>
        <div className="af-ex-note">Merchant, totals and payment method off creased photos and thermal till rolls.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd">Extract</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/resume-parsing" data-shelf="piles">
      <div className="af-art af-art-stack">
        <span />

        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Resume parsing</div>
        <div className="af-ex-note">Contact details, skills, education and work history, from a pile of PDF and DOCX resumes.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd">Extract</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/email-lead-extraction" data-shelf="piles">
      <div className="af-art af-art-c af-art-mail">
        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Email lead extraction</div>
        <div className="af-ex-note">Sender, inquiry type, urgency and topics, from a raw email body sent as text.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd">Extract</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/classify-and-route" data-shelf="piles">
      <div className="af-art af-art-a af-art-route">
        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Sort invoices from receipts</div>
        <div className="af-ex-note">One inbox, two kinds of document, each routed to the fields that suit it.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd af-nd-hot">Classify</span><span className="af-nd">Extract</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/ask-your-filing-cabinet" data-shelf="ask">
      <div className="af-art af-art-a af-art-tabs">
        <span />

        <span />

        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Ask your filing cabinet</div>
        <div className="af-ex-note">Index everything the workflow parses, then ask it questions and get answers cited to the page.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd af-nd-hot">Knowledge</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/fill-a-blank-form" data-shelf="ask">
      <div className="af-art af-art-c af-art-form">
        <span />

        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">The form you have filled forty times</div>
        <div className="af-ex-note">Hand it a blank onboarding form; get the completed PDF back.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span><span className="af-nd af-nd-hot">Edit</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/parse-only-workflow" data-shelf="read">
      <div className="af-art af-art-a af-art-tiers">
        <span />

        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Parse-only workflow</div>
        <div className="af-ex-note">The same page on Flash, Fast, Standard and Agentic, with what each tier returns and costs.</div>
        <div className="af-ex-nodes"><span className="af-nd af-nd-hot">Parse tiers</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/agentic-parse-to-markdown" data-shelf="read">
      <div className="af-art af-art-c af-art-md">
        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Agentic parse to markdown</div>
        <div className="af-ex-note">Dense tables on the agentic tier, with the effort presets and per-block confidence.</div>
        <div className="af-ex-nodes"><span className="af-nd">Parse</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/daily-csv-export" data-shelf="scale">
      <div className="af-art af-art-term">
        <div><span className="af-term-key">cron</span>{' 0 6 * * *'}</div>

        <div>
          {'· 1 284 runs → runs.csv'}
        </div>

        <div>
          {'· done '}

          <span className="af-term-cursor" />
        </div>
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Daily CSV export</div>
        <div className="af-ex-note">One local day of runs, pulled in parallel and flattened into a spreadsheet.</div>
        <div className="af-ex-nodes"><span className="af-nd">Runs API</span></div>
      </div>
    </a>

    <a className="af-ex" href="/examples/evaluating-a-workflow" data-shelf="scale">
      <div className="af-art af-art-a af-art-chart">
        <span />

        <span />

        <span />

        <span />

        <span />

        <span />

        <span />
      </div>

      <div className="af-ex-body">
        <div className="af-ex-title">Evaluating a workflow</div>
        <div className="af-ex-note">Ground truth, an eval run, and the accuracy number that fails the build when a prompt drifts.</div>
        <div className="af-ex-nodes"><span className="af-nd af-nd-hot">Evals</span><span className="af-nd">Datasets</span></div>
      </div>
    </a>
  </div>
</div>

## The three shapes

Every example above is one of three graphs. [Parse](/guides/nodes/parse) alone returns the document as markdown and layout blocks. Parse into [Extract](/guides/nodes/extract) returns the fields you defined, each with a confidence and the evidence it came from. [Classify](/guides/nodes/classify) or [Split](/guides/nodes/split) in front of Extract handles a pile that holds more than one kind of document. Add [Validate](/guides/nodes/validate) to check the values and [If/Else](/guides/nodes/if-else) to route on them.

## Before you start

* Get an API key at [app.anyformat.ai](https://app.anyformat.ai) and export it as `ANYFORMAT_API_KEY`.
* Every example uses the same three calls: [create a workflow](/api-reference-v3/workflows/create), [upload and run](/api-reference-v3/workflows/upload-and-run), and [get the run](/api-reference-v3/runs/get).
* The SDK examples need `pip install anyformat` or `npm install @anyformat/sdk`. The [Quickstart](/guides/quickstart) walks through the first workflow.
* The [Nodes overview](/guides/nodes/overview) lists every node, what it returns and what it costs.
