Skip to main content
This example demonstrates building a basic calculator workflow with number inputs, math operations, and result display.

Overview

We’ll create a workflow that:
  1. Takes two number inputs
  2. Performs addition and multiplication
  3. Displays the results

Node Definitions

NumberInputNode


AddNode


MultiplyNode


DisplayNode

Building the Workflow

Programmatic Creation

Output:

React Component

JSON Workflow

Save the workflow as JSON:

With Event Handlers

Add detailed event tracking:
Output:

Key Concepts

Uses @Property decorator for static configuration. The value is set in the property panel, not connected from another node.
Use @Input decorators for dynamic data flow. Values come from connected nodes via handles.
Connect output ports to input ports. Data flows automatically during execution.
Nodes execute in topological order. num1 and num2 first, then add and multiply.

Next Steps

Data Processing

Work with arrays and data transformation

Conditional Logic

Add branching and conditions

Creating Custom Nodes

Build your own nodes

Quick Start

5-minute tutorial