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.

This node is in beta. Its behavior may change in future releases.
The merge node combines data from multiple upstream branches into a single output. Use it to bring together results from parallel processing paths, for example merging extracted data from different document types that were split by a route node.

When to use merge

  • You split a run into branches with route and need to combine the branches before delivery. Use Key match when each branch produces records that share an identifier, Concat when you just want the lists end-to-end, Zip when items pair by position.
  • You chunked a document with route and need to reassemble the per-chunk outputs from the resulting child runs. Use Collect.
  • You enriched data via an HTTP action and need to merge the response back with the original payload. Use Key match.
  • Skip merge when only one branch reaches the output node; merge expects multiple sources.

Merge modes

Select a merge mode to control how data from multiple sources is combined.

Key match

Match items across sources by a shared property and merge their fields into combined objects. For example, if source A produces [{ lineNum: 1, text: "Hello" }] and source B produces [{ lineNum: 1, confidence: 0.95 }], key matching on lineNum produces [{ lineNum: 1, text: "Hello", confidence: 0.95 }]. Configuration:
FieldTypeRequiredDescription
SourceselectYesThe upstream node to merge from
Merge sourceselectYesThe second upstream node to merge with
KeystringYesProperty name used to match records across sources

Concat

Append outputs from multiple sources end-to-end into a single list. For example, if source A produces [{ line: 1 }, { line: 2 }] and source B produces [{ line: 3 }], concat produces [{ line: 1 }, { line: 2 }, { line: 3 }]. Configuration:
FieldTypeRequiredDescription
Sourcessource listYesThe upstream nodes to concatenate

Zip

Pair items by index position from multiple sources into combined objects. For example, if source A produces [{ page: 1 }, { page: 2 }] and source B produces [{ text: "Hi" }, { text: "Bye" }], zip produces [{ page: 1, text: "Hi" }, { page: 2, text: "Bye" }]. Configuration:
FieldTypeRequiredDescription
Sourcessource listYesThe upstream nodes to zip together

Collect

Gather outputs from child runs (created by a route node) into one array. Use this when a route node splits a document into multiple child runs and you need to reassemble the results. Configuration:
FieldTypeRequiredDescription
SourceselectYesThe upstream node whose child run outputs to collect

Inputs and outputs

Allowed inputs: Extract, HTTP action. Supports multiple input connections. Output: Combined data object from all configured sources.

Route action

Split data into branches before merging

Extract action

Extract data before merging

Transform action

Transform merged data into a specific format

Review action

Review merged data before delivery