Workflows
A workflow is a saved set of steps and models that, attached at the gate, takes a run from packet to filed documents unattended.
Build workflows under Workflows in the app. One is the organization's default.
Steps
Each step uses the model the workflow sets for it.
| Step | What it does |
|---|---|
| Preview | Optional. A cheap first pass that proposes where each document in the packet begins and ends. |
| Parse | Required. Reads the pages in full. |
| Classify | Composes the read pages into documents, names them, and suggests a requirement on the expected document list for each. |
| Extract | Pulls field values using the document schema for each document type. |
Steps run in order. By design, there is no branching.
Digital pages
The Parse step reads every page with OCR by default. Set Digital pages to LiteParse on the step, and every page with text in the PDF is read by LiteParse, its tables rebuilt, with no model and no OCR cost. A scan still goes to OCR, and so does a page with hidden text.
Example: a closing package exported by a loan system. LiteParse reads its pages, and a page with hidden text goes to OCR.
LiteParse is for documents, not forms: it does not read a tick box drawn as lines, or the text inside a picture. It is also a parse engine of its own, which reads every page of a run, scans included.
Versions
Like lists, a workflow version is a draft until activated and frozen once active. Only an active version can run. Publishing a new version changes what the workflow does without changing its id, so callers keep calling the same id.
What attaching a workflow means
Taking the gate with a workflow attached is one consent for the whole chain. When the run lands, the workflow matches every document to the requirement the run suggested. A document no requirement fits is matched to its kind, such as Letter. The ledger records those decisions as made by Workflow, under the identity of whoever took the gate.
A file the run reads as several documents is split, and each document is filed on its own. Example: a file read as a pay stub and a W-2 is split in two, and each is filed to its requirement. A person's decision on those pages stands.
A workflow never overrides red flags at the gate, rejects a document or deletes anything. Those stay with a person. Anything it was unsure of stays unfiled in Triage. Example: a bank statement that could belong to either of two accounts on the case stays unfiled.
Over the API
GET /workflows returns your workflows and their versions. A workflow is callable by id as soon as it has an active version. See run a workflow.
Sheaf