Block Types & Use Cases

Workflows are built using modular blocks, each performing a specific function — from document ingestion to routing results or involving human review.

Below is a detailed overview of each block type and its use cases.


1. Integrations (Input Blocks)

BlockPurposeExample Use Case
File UploadIngest documents directly from Doscumo uploads.A user uploads PDFs or images to start document processing.
Email Document UploadAutomatically ingest attachments from incoming emails.Forward vendor invoices to a specific email address for auto-processing.
API IngestionAccept documents or data via API calls from external systems.Connect a third-party app that sends documents programmatically for extraction.

2. Transform Blocks

Extraction Blocks

BlockPurposeExample Use Case
Data ExtractionExtract structured data from a document using a trained model.Parse invoice totals, vendor names, and dates from scanned PDFs.

Pre-Processing Blocks

BlockPurposeExample Use Case
Merge JSONMerge multiple JSON outputs into one structured payload.Combine outputs from multiple model runs into a single data object.
Python Code (Pre-processing)Run a small code snippet or AI-generated logic on input data before extraction.Clean up raw text fields, normalize formats, or prepare data for extraction.

Classification Blocks

BlockPurposeExample Use Case
Document Type ClassifierAutomatically detect the type of document (e.g., invoice, receipt, ID).Route each document to the correct extraction model based on type.

Post-Processing Blocks

BlockPurposeExample Use Case
Python Code (Post-processing)Apply transformations or calculations to extracted data.Compute tax values, reformat dates, or combine extracted fields.
Categorize with AIAutomatically group or label data into predefined categories.Categorize transactions by expense type or client account.

Human in the Loop

BlockPurposeExample Use Case
Human in the LoopPause the flow for manual review or decision-making.Ask a human to verify a low-confidence extraction result before continuing.

Conditional Blocks

BlockPurposeExample Use Case
RouterAdd conditional logic (IF/ELSE) based on extracted data values.If total amount > $10,000 → send for review, else → auto-approve.