Merge

Combine data from multiple branches back into a single output path.

When to Use the Merge Component?

Use the Merge component when you need to:

  • Combine outputs from two or more previous steps

  • Bring data back into one path after branches

  • Append or merge lists into a single list for next steps

How to Configure the Merge Component?

Step 1: Add and Name the Merge Component

  • Add the Merge component to your flow

  • Give it a clear and descriptive name based on what you're merging (e.g., “MergeOutputandTokens”)

This helps in identifying the merged output in the next steps.

Example Use Case

You previously had:

  • A Loop Over Webhooks step → produced a list

  • A Slack – Generate Token step → produced token headers

After adding the Merge step, both outputs will be taken as inputs

  • Strategy selected: Append

  • The outputs are merged into one unified list

This lets you work with one combined result rather than handling two separate values.

circle-info

When merging lists, ensure that both lists follow the same format. This ensures the merge works correctly, and you can map the merged data without issues

Step 2: Select the Input Lists to Merge

You will see fields to add the inputs you want to merge:

  • Enter the reference for each list you want to merge e.g.:

    • {{steps.loopOverWebhooks.output}}

    • {{steps.generateToken.headers}}

Add or remove fields using the icons on the right, based on how many sources you are merging.

Step 3: Choose the Merge Strategy

You must select how the lists should be merged. For example:

  • Append → Appends the lists in order, combining them into one list

circle-info

This means list items from the second input will be added after the first list.

Step 4: Set the Number of Sources

  • Specify the number of sources you are merging

Add or remove the source fields to match this count

Step 5: Add a Success Message to Display Output

Once your merge is complete:

  • Add a Success Message component at the end of the flow

  • Output the merged value inside this step

  • Run the flow to confirm it executes successfully

This will allow you to view both merged values clearly in the final output of the flow.

Last updated

Was this helpful?