Nodes

Linked Flows

Prerequisites

  • You should already have created a Flow.
  • You should have at least one other Flow in your account to link to.
  • Preferably you've already captured real data in the Flow's trigger.

In this article you'll learn:

The Linked Flows node allows you to create conditional workflows by routing data to different flows based on specific conditions. This enables you to build complex, branching data pipelines where different paths are taken depending on the data being processed.

How Linked Flows work

The Linked Flows node evaluates conditions against your input data and, when a condition matches, triggers another flow with the current data. This allows you to:

  • Route data to different processing pipelines based on content
  • Implement business logic that branches based on data values
  • Build modular flows that can be reused in different contexts

Configuring conditions

Each linked flow has a condition that determines when it should be triggered. Conditions compare two values using an operator.

Setting up a condition

For each linked flow, you'll configure:

  1. Value A: The first value to compare (usually from your input data)
  2. Operator: How to compare the values
  3. Value B: The second value to compare (can be static text or from input data)
  4. Target Flow: Which flow to trigger when the condition matches

Available operators

  • == (equals) - Values are exactly equal
  • != (not equals) - Values are different
  • < (less than) - Value A is less than Value B
  • <= (less than or equal) - Value A is less than or equal to Value B
  • > (greater than) - Value A is greater than Value B
  • >= (greater than or equal) - Value A is greater than or equal to Value B
  • in - Value A is contained within Value B
  • not_in - Value A is not contained within Value B

Using placeholders in conditions

You can use placeholders to reference data from previous nodes:

  • $data.status - References the "status" field from input data
  • $data.amount - References the "amount" field
  • $trigger.data.user_type - References data from the trigger

Example conditions

Example condition in Linked Flows

Route based on customer status: - Value A: $data.customer_status - Operator: == - Value B: premium - Target Flow: "Premium Customer Processing"

Route based on order amount: - Value A: $data.order_total - Operator: > - Value B: 1000 - Target Flow: "High Value Order Processing"

Route based on region: - Value A: $data.region - Operator: in - Value B: US,CA,MX - Target Flow: "North America Processing"

Execution mode: If/Else

Ideal for mutually exclusive routing - at most one path will be taken. The Linked Flows node runs in the if/else mode. Only the first matching condition is executed. Once a condition matches, no further conditions are evaluated. It works like a traditional if/else statement in programming.

Test input data

To test your Linked Flows node, you need input data that contains the fields referenced in your conditions.

The Input data is displayed as individual editable fields in the Preview box. When you have a previous node in your flow, the output data from that node automatically appears as the test input data for the current node. You can edit each field value individually to test different scenarios.

Test input data in the Linked Flows node

If this is the first node in your flow (connected directly to a trigger), the test input data will be populated with the data captured from your trigger.

Example test data:

{
  "customer_id": 12345,
  "customer_status": "premium",
  "order_total": 1500,
  "region": "US"
}

Output and flow execution

When a condition matches, the Linked Flows node triggers and runs the target flow.

The input data of the current node is passed to the linked flow as input data. The linked flow runs independently and can have its own trigger, nodes, and outputs.

In the preview panel you'll see which flow will be triggered based on the test input data and conditions you've set up.

Example output in Linked Flows

Common use cases

Customer segmentation

Route to different flows based on customer attributes.

Multi-region processing

Handle data differently based on geographic region:

  1. User data includes location
  2. Linked Flows node routes based on region
  3. EU flow: GDPR-compliant processing
  4. US flow: standard processing

Best practices

Keep conditions simple

Use clear, simple conditions that are easy to understand and maintain. Complex nested logic can be hard to debug.

Use descriptive flow names

Give your linked flows descriptive names that clearly indicate their purpose, like "High Value Order Processing" instead of "Flow 2".

Test thoroughly

Test all possible condition paths to ensure your routing logic works correctly with different types of input data.

Consider fallback flows

Think about what happens when no conditions match. You might want to add a catch-all condition or a default flow.