Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.docpipe.ai/llms.txt

Use this file to discover all available pages before exploring further.

The route node sends data down different pipeline paths based on configurable conditions. Use it to handle different document types, apply different processing logic based on content, or filter out unwanted documents.

When to use route

  • You want to filter the documents that proceed downstream. Use Keep to pass only matches, Drop to discard them.
  • You want to batch related documents together for downstream nodes. Use Group.
  • You want different downstream processing depending on a metadata or content condition you can express as a filter.
  • Use classify instead when the decision needs to read the document’s content semantically (rules text or AI similarity). Route is for deterministic filtering on data you already have.

Configuration

FieldTypeRequiredDescription
ModeselectYesRouting mode: Keep, Drop, or Group
Filtersfilter editorWhen mode is Keep or DropFilter criteria for keep/drop modes
Groupinggroup editorWhen mode is GroupGrouping configuration for group mode

Modes

To classify documents by content type or AI similarity, use the dedicated Classify action node.

Keep

Passes documents through only if they match the filter criteria. Documents that don’t match are dropped from the pipeline.

Drop

The inverse of Keep. Drops documents that match the filter criteria and passes everything else through.

Group

Groups related documents together before passing them downstream. Useful for batching documents by type, sender, or other properties.

Inputs and outputs

Allowed inputs: Trigger nodes, route, parse, review. Output: Data passed to the matching output edge(s) based on the routing conditions.

Conditional routing guide

Set up conditional routing with examples

Parse action

Parse documents before routing on content

Extract action

Extract data after routing

Merge action

Merge routed branches back together