Documentation
DocsAdvanced FeaturesGoto / Loop Nodes
Goto / Loop Nodes
Use goto nodes to jump to a previous node, creating loops. A maxIterations safety guard prevents infinite loops.
Goto Node
{
id: "n4",
type: "goto",
label: "Retry sequence",
targetNodeId: "n1", // jump back to node n1
maxIterations: 3, // allow up to 3 loops
nextNodeId: "n5" // fall through here when maxIterations exceeded
}targetNodeId— The ID of the node to jump to.maxIterations— Maximum number of times this goto can fire (default: 10).- When
maxIterationsis exceeded, execution continues tonextNodeIdinstead of looping.
Keep maxIterations low (3-5) for email workflows to avoid spamming contacts with repeated messages.