Skip to main content

Overview

Workflow nodes are the building blocks of document processing pipelines. Each node has specific inputs, outputs, and configuration options.

Node Categories

Nodes are organized into three categories:
CategoryPurpose
CoreWorkflow entry/exit points and utilities
ToolsDocument processing operations
LogicConditional flows and data transformations

Core Nodes

Document (Start)

Document

The entry point for your workflow. Upload documents here for processing.
Outputs: File Configuration: None (just upload your document in Run mode) Supported Formats:
  • PDF documents
  • Images (PNG, JPG, JPEG, GIF, WebP, TIFF, BMP)
  • Microsoft Word (.docx, .doc)
  • Microsoft Excel (.xlsx, .xls)
  • Microsoft PowerPoint (.pptx, .ppt)
Usage:
  • Drag multiple Document nodes for workflows that combine multiple inputs
  • Each Document node can receive one file per workflow run
  • Files are automatically converted to PDF when required by downstream nodes

Webhook (End)

Webhook

Send workflow outputs to an external HTTP endpoint.
Inputs: File, JSON Configuration:
SettingDescription
Webhook URLThe HTTPS endpoint to receive the data
HeadersCustom HTTP headers (e.g., authentication tokens)
Example Configuration:
{
  "webhook_url": "https://api.yourapp.com/webhook",
  "webhook_headers": {
    "Authorization": "Bearer your-token",
    "X-Custom-Header": "value"
  }
}
Webhook Payload: The webhook receives a JSON payload containing:
  • completion: The extraction result with parsed data
  • file_payload: Document metadata including filename and URL
  • user: User email address (if authenticated)
  • metadata: Additional workflow metadata
See Webhooks for details on securing and handling webhook requests.

Note

Note

Add comments and documentation to your workflow.
Inputs: None
Outputs: None
Notes don’t affect workflow execution—they’re purely for documentation. Use them to:
  • Explain complex logic
  • Document configuration choices
  • Leave instructions for teammates

Tools Nodes

Extract

Extract

Extract structured data from documents using a JSON schema.
Inputs: File, plus optional additional inputs (Text, JSON, File) Outputs: JSON (data), JSON (likelihoods when using consensus) Configuration:
SettingDescriptionDefault
SchemaJSON Schema defining fields to extract{}
ModelAI model for extractionretab-small
TemperatureRandomness in extraction (0-1)0
Image ResolutionDPI for document rendering150
ConsensusNumber of parallel extractions (1-10)1
Reasoning EffortHow much the model “thinks”minimal
Additional InputsNamed inputs for context (text, JSON, or files)[]
Schema Example:
{
  "type": "object",
  "properties": {
    "invoice_number": { "type": "string" },
    "total_amount": { "type": "number" },
    "vendor": {
      "type": "object",
      "properties": {
        "name": { "type": "string" },
        "address": { "type": "string" }
      }
    }
  }
}
Consensus Mode:
When n_consensus > 1, the node runs multiple extractions in parallel and returns:
  • data: The consensus result
  • likelihoods: Confidence scores for each field (0-1)
Additional Inputs: You can add named input handles to provide extra context during extraction:
  • Text inputs: Instructions or context as plain text
  • JSON inputs: Structured data from other nodes
  • File inputs: Additional reference documents

Parse

Parse

Convert documents to structured text/markdown using AI vision.
Inputs: File
Outputs: File (parsed document), Text (extracted content)
Configuration:
SettingDescriptionDefault
ModelAI model for parsingretab-small
Image ResolutionDPI for document rendering150
Use Cases:
  • Pre-process documents before extraction
  • Convert scanned PDFs to searchable text
  • Extract text from images

Split

Split

Split multi-page documents into separate PDFs by category.
Inputs: File (PDF)
Outputs: Multiple File outputs (one per category)
Configuration:
SettingDescription
CategoriesList of document categories with names and descriptions
ModelAI model for classification
Category Example:
{
  "categories": [
    {
      "name": "Invoice",
      "description": "Pages containing invoice details, line items, and totals"
    },
    {
      "name": "Contract",
      "description": "Legal agreement pages with terms and signatures"
    },
    {
      "name": "Supporting Documents",
      "description": "Receipts, certificates, and other attachments"
    }
  ]
}
Each category creates a separate output handle. Connect downstream nodes to process each category differently.
Non-PDF documents are automatically converted to PDF before splitting.

Classifier

Classifier

Classify documents into one of the predefined categories.
Inputs: File
Outputs: Multiple File outputs (one per category, only the matched category receives the document)
Configuration:
SettingDescription
CategoriesList of document categories with names and descriptions
ModelAI model for classification
Difference from Split:
FeatureSplitClassifier
InputMulti-page documentSingle document
OutputMultiple PDFs (pages grouped by category)Same document routed to one category
Use CaseSeparating bundled documentsRouting different document types
Example:
{
  "categories": [
    {
      "name": "Invoice",
      "description": "Documents containing billing information and payment requests"
    },
    {
      "name": "Receipt",
      "description": "Proof of payment or purchase confirmation"
    },
    {
      "name": "Contract",
      "description": "Legal agreements and binding documents"
    }
  ]
}
The AI analyzes the document and routes it to exactly one category. Downstream nodes connected to other categories are skipped.

Agent Edit

Agent Edit

Fill PDF forms using AI with natural language instructions.
Inputs: File, Text (instructions)
Outputs: File (filled document)
Configuration:
SettingDescription
InstructionsNatural language instructions for filling the form
Example Instructions:
Fill this W-9 form with the company information from the input data.
Use the vendor_name for "Name" and vendor_address for the address fields.
Leave signature fields blank.
The Text input provides instructions or data to use for filling. Connect this to an Extract node’s JSON output (which converts to text instructions).

Template Edit

Template Edit

Fill documents using a pre-defined template.
Inputs: Text (instructions/data) Outputs: File (filled document) Configuration:
SettingDescription
Template IDThe template to use for filling
Templates define a mapping between data fields and form fields. Create templates in the Templates section of your dashboard.

Logic Nodes

Human in the Loop (HIL)

Human in the Loop

Pause workflow execution for human review and approval.
Inputs: JSON
Outputs: JSON (verified data)
Configuration: None (inherits schema from connected source) How It Works:
  1. Connect to an Extract or Functions node (schema is automatically inherited)
  2. When the workflow runs, it pauses at the HIL node
  3. A reviewer sees the extracted data alongside the source document
  4. The reviewer can approve, modify, or reject the data
  5. After approval, the verified data continues through the workflow
Use Cases:
  • Validate critical extractions before sending to downstream systems
  • Quality control for high-value documents
  • Compliance requirements that mandate human oversight
The HIL node automatically inherits the JSON schema from the connected upstream node. It also preserves any computed fields from Functions nodes.

Functions

Functions

Add computed fields using Excel-like formulas.
Inputs: JSON
Outputs: JSON (with computed fields)
Configuration:
SettingDescription
FunctionsList of computed fields with target paths and expressions
Supported Functions:
FunctionDescriptionExample
SUMSum of valuesSUM(items.*.price)
AVERAGEAverage of valuesAVERAGE(scores.*)
COUNTCount of itemsCOUNT(line_items.*)
MIN / MAXMinimum/maximum valueMAX(items.*.quantity)
IFConditionalIF(total > 1000, "Large", "Small")
CONCATJoin stringsCONCAT(first_name, " ", last_name)
ROUNDRound numberROUND(amount, 2)
Example Configuration:
Target: subtotal
Expression: SUM(line_items.*.amount)

Target: tax
Expression: subtotal * 0.1

Target: total
Expression: subtotal + tax
Functions are evaluated in dependency order. You can reference other computed fields in expressions.
See Functions Documentation for the complete formula reference.

If / Else

If / Else

Route data to different branches based on conditions.
Inputs: JSON
Outputs: Multiple JSON outputs (one per branch: If, Else If, Else)
Configuration:
SettingDescription
ConditionsList of conditions to evaluate in order
Has ElseWhether to include a default else branch (default: true)
Condition Structure: Each condition can have multiple sub-conditions combined with AND/OR:
{
  "conditions": [
    {
      "branch_name": "if",
      "sub_conditions": [
        { "path": "data.total_amount", "operator": "is_greater_than", "value": 1000 },
        { "path": "data.vendor.country", "operator": "is_equal_to", "value": "US" }
      ],
      "logical_operator": "and"
    }
  ]
}
Available Operators:
TypeOperators
Existenceexists, does_not_exist, is_empty, is_not_empty
Comparisonis_equal_to, is_not_equal_to
Stringcontains, starts_with, ends_with, matches_regex
Numberis_greater_than, is_less_than, is_greater_than_or_equal_to, is_less_than_or_equal_to
Booleanis_true, is_false
Arraylength_equal_to, length_greater_than, length_less_than
Dateis_after, is_before, is_after_or_equal_to, is_before_or_equal_to
How It Works:
  1. Conditions are evaluated in order (If, Else If 1, Else If 2, …)
  2. The first matching condition determines the output branch
  3. Data is routed to exactly one branch
  4. If no conditions match and has_else is true, data goes to the Else branch
  5. Downstream nodes on non-matched branches are skipped
Example Use Cases:
  • Route high-value invoices for additional approval
  • Process documents differently based on vendor country
  • Flag incomplete extractions for review

Merge PDF

Merge PDF

Combine multiple PDF documents into a single file.
Inputs: Multiple File inputs (configurable)
Outputs: File (merged PDF)
Configuration:
SettingDescription
InputsNamed input slots for PDFs to merge
Example Configuration:
{
  "inputs": [
    { "name": "Cover Page" },
    { "name": "Invoice" },
    { "name": "Terms and Conditions" }
  ]
}
PDFs are merged in the order defined by the inputs list. Non-PDF documents are automatically converted before merging.

API Call

API Call

Make HTTP requests to external APIs and use the response in your workflow.
Inputs: JSON (optional request body or parameters) Outputs: JSON (API response) Configuration:
SettingDescriptionDefault
URLThe API endpoint URLRequired
MethodHTTP method (GET, POST, PUT, PATCH, DELETE)POST
HeadersCustom HTTP headers (e.g., authentication){}
Body TemplateJSON template with placeholders for input data{}
Example Configuration:
{
  "url": "https://api.example.com/validate",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer ${API_KEY}",
    "Content-Type": "application/json"
  },
  "body_template": {
    "invoice_number": "{{data.invoice_number}}",
    "amount": "{{data.total_amount}}"
  }
}
Use Cases:
  • Validate extracted data against external systems
  • Enrich documents with data from your CRM or ERP
  • Trigger actions in third-party services based on extraction results
  • Look up additional information using extracted identifiers
Placeholders: Use {{path.to.field}} syntax to reference values from the input JSON:
  • {{data.invoice_number}} → Inserts the invoice_number field
  • {{data.vendor.name}} → Inserts nested fields
  • {{data.line_items[0].amount}} → Inserts array elements
API Call nodes execute synchronously. For long-running operations, consider using webhooks to trigger external workflows asynchronously.

Merge JSON

Merge JSON

Combine multiple JSON objects into a single structured object.
Inputs: Multiple JSON inputs (configurable)
Outputs: JSON (merged object)
Configuration:
SettingDescription
InputsNamed input slots for JSON objects to merge
Example Configuration:
{
  "inputs": [
    { "name": "invoice_data" },
    { "name": "vendor_data" },
    { "name": "line_items" }
  ]
}
Output Structure: The merged output wraps each input under its named key:
{
  "invoice_data": { ... extracted invoice fields ... },
  "vendor_data": { ... extracted vendor fields ... },
  "line_items": { ... extracted line items ... }
}
This is useful for:
  • Combining extractions from multiple documents
  • Aggregating data from parallel processing branches
  • Creating comprehensive outputs from Split or Classifier workflows

Node I/O Types

Understanding input/output types helps you connect nodes correctly:
TypeColorDescription
FileBlue (📎)Documents, PDFs, images
JSONPurple ({ })Structured data objects
TextCyan (📄)Plain text strings

Compatibility Matrix

Source → TargetFileJSONText
File
JSON
Text

Tips for Building Workflows

Identify what data you need at the end, then work backwards to determine which nodes you need.
Instead of computing values after receiving webhook data, use Functions nodes to add totals, percentages, and derived fields directly in the workflow.
When handling different document types, use Classifier to route each document to the appropriate extraction schema before processing.
When handling mixed document bundles (e.g., invoice + contract in one PDF), use Split first, then apply specific Extract schemas to each category.
When processing multiple documents or branches, use Merge JSON to combine all extracted data into a single structured output.
Route data based on extracted values—for example, send high-value invoices to a different webhook or flag certain conditions for review.
Run your workflow with documents that have missing fields, poor scan quality, or unusual formats to ensure robust handling.