Skip to content

Document Processing

Flow-Like can read, transform, and extract structured information from document collections. Prefer deterministic readers and converters first, then add schema extraction or a configured AI model when layout or language makes rules insufficient.

A Flow-Like document-processing workflow from files to structured outputs

InputStart withAdd when needed
Digital PDFText extraction or page renderingAI extraction for complex visual layouts
Scanned PDFRender pages to imagesVision-capable extraction and validation
Excel workbookCell, worksheet, or table nodesAI table extraction for unusual layouts
CSVBuffered reader or database registrationBatching and schema validation
ImageRead, inspect dimensions, crop, resize, convertBarcode reading, annotation, or AI extraction
DOCX or PPTXNative extraction and editing nodesTemplate-specific replacement or generation
HTMLConvert to MarkdownSection or keyword extraction
NeedNode
Count pagesPDF Page Count
Render one pagePDF Page To Image
Render every pagePDF To Images
Extract selectable textExtract Text
Split or extract page rangesSplit PDF, Extract Pages
Rotate pagesRotate Pages
Merge filesMerge PDFs

Use text extraction for digitally generated PDFs. Render pages when downstream work depends on the visual layout or when the source is scanned.

AI Extract Document can describe images and recover content from visually complex documents. AI Extract Documents handles multiple files in parallel.

Pass a configured model that supports the source format. Do not hard-code a vendor-specific model name into reusable boards. Model availability and capabilities depend on the configured provider.

For structured output, define a schema and validate the extracted values before writing them. An invoice schema might look like:

{
"vendor": "string",
"invoice_number": "string",
"date": "date",
"line_items": [
{
"description": "string",
"quantity": "number",
"price": "number"
}
],
"total": "number"
}

Use deterministic checks for totals, dates, identifiers, and required fields. Route low-confidence or invalid records to review instead of silently accepting them.

NeedNode
Read a cellExcel Read Cell
Write a cellExcel Write Cell
List sheetsGet Sheet Names
Create a sheetNew Worksheet
Copy a sheetCopy Worksheet

Use Extract Tables (Excel) for predictable workbook layouts. Use Extract Tables AI (Excel) when tables have irregular headers, spacing, or multiple regions that deterministic extraction cannot identify reliably.

For either path:

  1. inspect sheet names and choose the intended worksheet;
  2. define expected columns and types;
  3. normalize headers;
  4. validate row counts and required fields;
  5. preserve the source workbook or a stable reference to it.

Buffered CSV Reader reads large CSV files in batches. Keep the batch size appropriate to row width and downstream work, and validate the header before processing the first batch.

CSV files can also be registered in a DataFusion session and queried with SQL:

SELECT
c.name,
SUM(s.amount) AS total
FROM sales AS s
JOIN customers AS c
ON s.customer_id = c.id
GROUP BY c.name
ORDER BY total DESC;

SQL is useful for joins, aggregation, and filtering, but it does not replace source validation. Confirm delimiters, quoting, encoding, and numeric or date conventions when files come from multiple systems.

NeedNode
Load an imageRead Image
Read dimensionsGet Dimensions
ResizeResize Image
CropCrop Image
Convert color representationColor Convert
Adjust contrastContrast
Read a QR code or barcodeRead QR-/Barcode
Draw review annotationsDraw Boxes
Save an imageWrite Image

Resize large scans before model-based extraction when the reduced image still preserves the required text. Keep the original file for audit, reprocessing, or a higher-resolution retry.

The document catalog includes native operations for office files:

  • Extract Text from DOCX, replace text or images, merge documents, and build documents from paragraphs, tables, images, and links.
  • Extract Text from PPTX, replace slide content, merge presentations, and add slides, tables, charts, shapes, or speaker notes.

Use placeholder and replacement operations for controlled templates. Use native creation nodes when the workflow needs to assemble a new document from structured data.

TaskNode
Convert HTML to MarkdownHTML to Markdown
Extract content sectionsExtract Content Sections
Extract deterministic keywordsRAKE Keywords, YAKE Keywords
Extract semantic keywordsAI Keywords
Summarize a documentSummarize Document
Render a text templateRender Template

Choose deterministic keyword extraction when reproducibility and cost matter most. Use a model when the task depends on meaning rather than surface terms, and record the provider and model configuration with the run when reproducibility matters.

For a folder or upload collection:

  1. enumerate the input files;
  2. identify or validate each file type;
  3. send each type through its dedicated reader;
  4. normalize all results into a shared schema;
  5. validate required fields and business rules;
  6. store the structured result and source reference;
  7. route failures or uncertain extractions to review;
  8. emit a summary with processed, skipped, reviewed, and failed counts.

Limit concurrency for large documents and external model calls. A large collection should be restartable, so save progress or make each file operation idempotent.

  • File type is validated instead of trusted from the extension alone
  • Original files or stable source references are retained
  • Deterministic extraction is preferred where it is sufficient
  • Model choice is configurable and supports the input format
  • Required fields and business rules are validated
  • Large collections are batched and concurrency-limited
  • Low-confidence results have a review path
  • Sensitive document content is not exposed in logs
  • Output records include provenance back to the source