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.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.
When to use route
- You want to filter the documents that proceed downstream. Use
Keepto pass only matches,Dropto 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
| Field | Type | Required | Description |
|---|---|---|---|
| Mode | select | Yes | Routing mode: Keep, Drop, or Group |
| Filters | filter editor | When mode is Keep or Drop | Filter criteria for keep/drop modes |
| Grouping | group editor | When mode is Group | Grouping 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.Related
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