Skip to content

Splitting

Splitting means taking one workflow path and turning it into multiple paths.

The most common way to split is with an If node.

It lets your workflow do different things depending on a condition (for example: “is this text longer than 500 characters?”).

Compare these workflows:

flowchart LR
    n3[" "] L_n3_B_0@--> B["Extract Text"]
    B L_B_C_0@--> C["Send content per email"]

    n3@{ icon: "fa:circle-play", pos: "b"}
    B@{ shape: rounded}
    C@{ shape: rounded}

    L_n3_B_0@{ animation: slow } 
    L_B_C_0@{ animation: slow } 
flowchart LR
    B["Extract Text"] L_B_n1_0@--> n1["If content lenght > 500 characters"]
    n1 L_n1_n2_0@--> n2["Send content to Whatsapp"] & C["Send content per email"]
    n3[" "] L_n3_B_0@--> B

    B@{ shape: rounded}
    n1@{ shape: diam}
    n2@{ shape: rounded}
    C@{ shape: rounded}
    n3@{ icon: "fa:circle-play", pos: "b"}

    L_B_n1_0@{ animation: slow } 
    L_n1_n2_0@{ animation: slow } 
    L_n1_C_0@{ animation: slow } 
    L_n3_B_0@{ animation: slow } 

This is the basic idea: one input → different actions depending on what you find.

For a decision with three or more outcomes, the Switch node gives you one named output per branch instead of nesting If nodes. Both nodes expose named output ports, and edges attach to a port by name — so reordering branches keeps every connection intact. See named outputs on branching nodes.

See the node reference: If and Switch.