Skip to main content
Version: v3.4 print this page

Workflow

What Is a Workflow?​

A workflow is the processing definition for a workspace. It describes how ADI turns uploaded PDFs into structured results: optionally split multi-document files into logical documents, then extract fields using AI models.

Each workspace has one workflow. When that workflow is successfully saved and provisioned, the workspace moves from Draft to Active and is ready for runs.

What to extract is defined separately as one or more schemas. When you start a run, you choose which schemas to apply to the files in scope.

Behind the scenes, ADI provisions an Amorphic data pipeline for the graph you configure. You manage the workflow from the workspace Workflow tab.

Workflow graph

Info

Admins and Operators can create and edit workflows when they have change access on the workspace. Deleting a workflow requires Full Access. Reviewers can view the workflow graph and related workspace content used for review, but they cannot change the processing definition.

How a Workflow Is Structured​

Workflows are linear graphs bounded by fixed Start and End nodes. Between them you add processing nodes from the catalog:

NodeCategoryPurpose
StartFixedEntry point. Represents the workspace input files.
Document Splitter (optional)ProcessSplits a multi-document PDF into logical child documents before extraction.
ExtractorIntelligenceRuns extraction across exactly two models for consensus-based results.
EndFixedExit point. Structured results flow to the selected schema output datasets and the Review Queue.

Rules:

  • The graph must connect Start → processing node(s) → End with no disconnected nodes.
  • You may include at most one Document Splitter and one Extractor.
  • If both are present, the Document Splitter must come before the Extractor.
  • At least one processing node - a Document Splitter or an Extractor - is required to save a valid workflow.

Typical shapes:

  • Start → Extractor → End - extract fields from each uploaded PDF unchanged.
  • Start → Document Splitter → Extractor → End - first split multi-document PDFs, then extract from each logical document.

How to Create a Workflow​

Create workflow

  1. Open the Workflow tab and click Create workflow.
  2. Use the Nodes panel to drag processing nodes onto the canvas (the default canvas already includes an Extractor).
  3. Connect nodes so the path runs from Start through your processing nodes to End.
  4. Click each processing node to open its configuration panel and complete the required settings.
  5. Click Save Workflow.

ADI validates that all processing nodes are configured and that the graph is fully connected before you can save. If validation fails, resolve the highlighted configuration or connection issues and try again.

Create at least one Available schema on the Schema tab before you start a run. You can create schemas before or after you save the workflow.

After the workflow is saved, use Settings on the Workflow tab to configure Auto-publish, Automatic runs, and Parallel runs. See Workflow settings.

Document Splitter Configuration​

Use a Document Splitter when a single PDF may contain multiple logical documents (e.g., several invoices in one file).

SettingRequiredDescription
Node NameYesDisplay name for the node in the graph.
ModelYesAI model used to identify document boundaries.
File DescriptionYesBrief description of the inner documents expected in the PDF.
Starting point of fileYesText or layout that marks where a logical document begins inside a multi-document PDF. Examples: Invoice header, Page 1 of.
Ending point of fileYesText or layout that marks where that logical document ends before the next one starts. Examples: Page X of Y, Grand total.
Batch PagesNoNumber of pages sent together in one Document Splitter model call. Min: 1, Max: 20.
Parallel WorkersNoHow many of those page batches run at the same time inside one file. Min: 1, Max: 20.
Recommended Setup for Document Splitter

Document Splitter uses two settings together:

  1. Batch Pages - how many pages go in each detection call.
  2. Parallel Workers - how many of those batch calls run at once for a file.

Example: one 20-page PDF with Batch Pages = 5 makes 4 detection calls on the first pass (pages 1–5, 6–10, 11–15, and 16–20). With Parallel Workers = 2, ADI runs up to 2 of those 4 calls at a time. That first-pass count is fixed for those page and batch sizes. Workers only change how many of those detection calls run together.

If that first pass finds no documents, ADI retries the same file with a smaller batch size (Batch Pages minus 2, minimum 1). For this example, that is batches of 3 pages (7 more detection calls). ADI also makes 1 extra model call to validate each document boundary it finds, so the overall total depends on how many boundaries are found and whether the fallback runs.

Smaller batches mean more model calls and smaller prompts. Larger batches mean fewer calls and bigger prompts. Higher Parallel Workers finish faster but are more likely to hit model rate limits.

Start with Batch Pages 5–10 and Parallel Workers 2–4 for typical workloads, then raise them only if runs are slow and your environment can handle more concurrent model calls.

Extractor Configuration​

The Extractor applies two models to each selected schema. Extracted values go to the Review Queue. ADI compares the two results and uses the workspace Minimum Confidence setting (set when you create the workspace) to decide which values are auto approved and which are flagged.

A value is flagged when the models disagree, a value is missing, the field is Critical, or a model's confidence is below the workspace setting.

How Minimum Confidence Evaluates Extractions​

For example, if the workspace Minimum Confidence is set to Medium:

  • If both models extract the same value and both report confidence as High or Medium, ADI auto-approves the value (provided the field is not marked Critical).
  • If either model reports confidence as Low, or if the two models disagree on the extracted value, ADI flags the field for human verification in the Review Queue.
Implications of Confidence Thresholds
  • High: Strict validation. Values are auto-approved only when both models agree with high confidence. This flags more items for human review, maximizing data accuracy for sensitive or regulatory-critical workflows.
  • Medium (Default): Balanced automation. Auto-approves values when both models agree with medium or high confidence. Recommended for standard business documents.
  • Low: Permissive validation. Allows extractions with lower confidence to pass as long as models agree. Flags fewer items, reducing manual review overhead for clean, uniform documents.
SettingRequiredDescription
Node NameYesDisplay name for the node in the graph.
Select ModelsYesChoose exactly two enabled models for consensus extraction.
Select GuardrailsNoOptional Amorphic guardrails to apply during extraction.
Extraction RulesNoOptional free-text guidance for how values should be extracted.
Max File WorkersNoOuter concurrency: how many PDF files extract at the same time. Min: 1, Max: 10. Default: 1.
Max Page WorkersNoInner concurrency: inside each of those files, how many page-and-model extraction calls run at the same time. For every file, ADI makes one model call per page per selected model (two models). Min: 1, Max: 10. Default: 1.

You select schemas when you start a run.

Recommended Setup for Extractor

Extraction uses two levels of parallelism:

  1. Max File Workers - how many files run at once.
  2. Max Page Workers - within each of those files, how many page-and-model calls run at once.

Example: a run has 10 PDFs, each 5 pages, and the Extractor uses 2 models. That is 10 page-and-model calls per file (5 pages × 2 models), unless a file reuses a prior extraction. With Max File Workers = 2 and Max Page Workers = 4, ADI extracts up to 2 files together, and within each file up to 4 of those 10 calls at a time. Peak concurrent model calls is up to 8 (2 × 4).

These settings only change how many calls run together. They do not change the total number of calls for files that are extracted. Higher values finish faster but are more likely to hit model rate limits. Lower values are slower and safer.

Start with 2–4 for both settings on typical workloads, then raise them only if runs are slow and your environment can handle more concurrent model calls.

Info

Models available in the Extractor and Document Splitter selectors come from the models enabled for the Amorphic DataPipelines AI service. If no model is set up for data pipelines, none appear on the Models page or in these node selectors. Refresh the model list in the node panel if a newly enabled model does not appear yet.

Workflow settings​

Workflow settings apply to every run in the workspace. They are separate from the node graph on the canvas. Use settings after the workflow exists to control publish behavior, automatic starts, and how many runs can be active at once.

To open settings, follow these steps:

  1. Open the workspace Workflow tab.
  2. Click Settings.

Workflow settings

The Workflow settings panel includes Auto-publish, Automatic runs, and Parallel runs.

Info

Admins and Operators can change workflow settings when they have change access on the workspace. Reviewers and users with Read Only workspace access cannot change these settings.

Auto-publish​

Auto-publish controls whether ADI writes model-approved values to the schema output dataset during the run, after schema extraction finishes for that schema.

SettingBehavior
Off (default)Approved values stay in the Review Queue until someone publishes them to the output dataset.
OnDuring the run, ADI publishes children that have no flagged fields (every field is model-approved for that child). Only approved values are written. Children that still need a person (flagged fields) are skipped and stay in the Review Queue for manual review and Publish.

Toggle Auto-publish at the top of the Workflow settings panel. The change applies to later runs for this workspace.

Values that a person approves later in the Review Queue are not auto-published. Use Publish in the Review Queue for those.

Automatic runs​

Automatic runs control when the workspace runs without someone clicking Run Workflow. Automatic runs still create normal executions that appear on the Runs tab.

Automatic runs

  1. In Workflow settings, open Automatic runs (edit control on the Automatic runs section).
  2. Under Run automatically, choose one mode:
ModeWhat it does
OffRuns only when someone clicks Run Workflow.
On a scheduleRuns at set times (for example every night).
When new files arriveProcesses new files in batches as they land.

A workspace can have a schedule or a new-file trigger, not both.

  1. For On a schedule or When new files arrive, select one or more Available schemas under Schemas in this run.
  2. Click Save schedule.

Choosing Off and saving removes an existing automatic run configuration. Turning Automatic runs Off requires Full Access on the workspace.

On a schedule​

Configure when the run starts and which files it includes:

SettingDescription
RepeatsEvery day, Every week (with Day), Every month (with Day), or Every year (with Month and Day).
AtStart time for the run.
Time zoneTime zone for the schedule.
Schedule expressionOptional cron expression if you prefer to define the schedule that way.
FilesChanged files only (new and updated since the last run) or All files.
Force re-extractionOptional when All files is selected. Runs a fresh raw extraction instead of reusing prior extraction outputs. Slower and costs more.

If a run is still going when the next scheduled run is due, the new run is skipped.

When new files arrive​

Configure how new files are grouped into a run:

SettingDescription
Batch sizeWhole number from 1 to 100. ADI starts a run when this many new files are ready.
Batch windowTime window in HH:MM:SS (minimum 00:03:00). If the window ends with fewer than Batch size files, ADI still starts a run for that partial batch.

Use batching when files arrive throughout the day so ADI does not start a separate run for every single upload.

Parallel runs​

Parallel runs set how many runs of this workflow can go at once. Use this when scheduled work and manual priority runs need to overlap without an unbounded queue of starts.

  1. In Workflow settings, open Parallel runs.
  2. Set Runs at a time (minimum 1).
  3. Click Save limit.

The settings panel shows usage such as X of Y in use. You can start a new run while others are going, up to the saved limit. If all slots are busy, a new start is blocked until one frees up.

This limit is not the same as Parallel Workers or Max File Workers / Max Page Workers on individual nodes. Those control workers inside one run. Parallel runs controls how many runs can be active together.

After You Save​

Workflow create and update are asynchronous. After you submit:

  1. ADI provisions the Amorphic data pipeline and node resources for your graph.
  2. When create succeeds, the workflow status becomes Create Complete and the workspace becomes Active.

Do not start a run until the workflow has finished provisioning successfully. If create or update fails, correct the configuration and save again.

Workflow Statuses​

StatusMeaning
Create In ProgressADI is provisioning the workflow and Amorphic data pipeline.
Create CompleteThe workflow was created successfully. The workspace is Active.
Create FailedWorkflow create did not complete. Edit and save again after correcting the issue.
Update In ProgressAn edit is being applied.
Update CompleteThe latest edit was applied successfully.
Update FailedThe latest edit did not complete.
Delete In ProgressWorkflow deletion is running.
Delete FailedWorkflow deletion did not complete.

Edit and delete actions are disabled while create, update, or delete is in progress.

How to Edit a Workflow​

Edit workflow

  1. Open the workspace Workflow tab.
  2. Click Edit.
  3. Update the node graph and node settings as needed.
  4. Save your changes.

While editing, you can Clear Workflow to remove the current graph definition and start the node configuration over. Leaving without saving discards your canvas changes.

How to Delete a Workflow​

Delete workflow

  1. Open the workspace Workflow tab.
  2. Click Delete.
  3. Confirm the deletion.

Deleting a workflow removes the processing graph. This cannot be undone. The workspace returns to Draft. Uploaded files remain. You must create a new workflow before you can run processing again.

Next Steps​

After the workflow is Create Complete and the workspace is Active:

  1. Create at least one Available schema on the Schema tab (if you have not already).
  2. Optionally open Settings to configure Auto-publish, Automatic runs, and Parallel runs.
  3. Upload PDFs on the Files tab (if you have not already).
  4. Start a run and select the schemas to apply, or rely on automatic runs. See Runs.
  5. Review extracted results in the Review Queue.