Workflow step

Merge

Merge connects the outputs of one If or Paths to a shared next step. It runs once when every branch selected for this event has reached it.

Find or create a contact

  1. Under true on If, add the action that finds the contact. Under false, add the action that creates it.
  2. Choose Add step → Merge. Select the If step. Check which branch ends the editor will connect.
  3. Choose Add output field and name it contact_id. Enter the result path for each branch, for example contact.id for the lookup and id for creation. Use $ for the whole branch result.
  4. Save Merge and add your next action below it. Map its contact input to the Merge output field contact_id.

Read several Paths results

The branches array contains one entry per selected branch, in the router’s configured order. Each entry has an id and an output. A named field uses the first selected branch with a configured, present value. Zero, false and explicit null are values. A field without a matching value returns null. Use separate output fields or the array to keep multiple values.

When the continuation runs

  • If selects exactly one branch. Paths includes matching custom branches and Always branches, or its Fallback when applicable. When nothing matches, Merge and its continuation are skipped.
  • An empty branch connects directly from the router and contributes its incoming data. A selected branch that ends early at a Filter, misses an edge condition, or fails before reaching Merge prevents the continuation. A Delay postpones the continuation until the branch resumes. Stop retains its workflow-wide behavior.
  • One router can have one Merge. Connect each branch once. The editor follows each branch to its end. If a branch forks again, close that fork first. A branch with several simultaneous connections on one output has no single end; use an explicit router and join for that section.
  • Close an inner router with its own Merge before joining the outer branches. Inside a Loop, each item has its own branch results and continuation. A join cannot cross Loop boundaries. A failed item follows the Loop’s configured stop-or-continue policy.
  • Inspect the Merge output in Run history. An intentional full rerun creates a separate execution.

A retry within the same workflow version uses the saved router decision and completed sibling outputs. If the run version changed and a step-only rerun needs a sibling result from the old routing graph, start from the trigger.