DocsNodesLogicEnd Node

End Node

Loading node sections...

Overview

The End Node is used to stop the execution of a flow immediately. When the flow reaches this node, Lamatic skips any nodes that would execute after it and routes execution directly to the Final Trigger Response node.

Node Type Information

TypeDescriptionStatus
Batch TriggerStarts the flow on a schedule or batch event. Ideal for periodic data processing.❌ False
Event TriggerStarts the flow based on external events (e.g., webhook, user interaction).❌ False
ActionExecutes a task or logic as part of the flow (e.g., API call, transformation).âś… True

This node is an **Action** node that immediately ends flow execution and jumps to the Final Trigger Response node.

Place an End Node on any branch where you want to stop early (for example, after a validation failure or a “no-op” condition). Any nodes connected after the End Node won’t run.

Features

Key Functionalities
  1. Immediate termination: Stops the current execution path as soon as it’s reached.
  2. Skip downstream execution: Prevents any nodes after the End Node from running.
  3. Predictable exit point: Routes execution to the Final Trigger Response node to finish the run cleanly.
Benefits
  1. Cost control: Avoid unnecessary model calls, API requests, or processing once a result is already decided.
  2. Cleaner flow logic: Replace complex branching workarounds with a clear “stop here” node.
  3. Safer automation: Prevent side effects (writes, sends, deletes) when a condition indicates execution should halt.

What Can You Build?

  1. Guard rails / validation gates: End the flow when required inputs are missing or invalid.
  2. Early return logic: Return a response when a cached result exists, without running the rest of the pipeline.
  3. Conditional short-circuiting: Stop non-relevant branches (for example, when a user is not eligible for a path).

Setup

  1. Add the End Node to the point in your flow where execution should stop.
  2. Connect your branch/path into the End Node.
  3. Ensure your flow has a Final Trigger Response node to produce the final output.
  4. Deploy the project.

Configuration Reference

The End Node does not require configuration. Its behavior is defined by its position in the flow.

Low-Code Example

Stop execution on a condition

nodes:
  - nodeId: endNode_192
    nodeType: endNode
    nodeName: End
    values: {}
    modes: {}
    needs:
      - triggerNode_1
    allConfigs:
      Config A:
        nodeName: End
    schema: {}

Output

The End Node does not transform data. Its purpose is to terminate execution and pass control to the Final Trigger Response node.

Troubleshooting

Common Issues

ProblemSolution
Nodes after End Node still runEnsure the path actually reaches the End Node (check connections and branch conditions).
No final response is returnedConfirm your flow includes a Final Trigger Response node and it is reachable after termination.
End Node placed but flow doesn’t stopVerify you’re not executing a different branch/path that bypasses the End Node.

Debugging Tips

  • Use flow logs to confirm the End Node is reached on the expected path.
  • If you have multiple branches, add End Nodes only where you want early termination—other branches will continue unless they also end.

Was this page useful?

Subscribe to updates