This example demonstrates building a basic calculator workflow with number inputs, math operations, and result display.Documentation Index
Fetch the complete documentation index at: https://crystalflow.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
We’ll create a workflow that:- Takes two number inputs
- Performs addition and multiplication
- Displays the results
Node Definitions
NumberInputNode
AddNode
MultiplyNode
DisplayNode
Building the Workflow
Programmatic Creation
React Component
JSON Workflow
Save the workflow as JSON:With Event Handlers
Add detailed event tracking:Key Concepts
Number Input Node
Number Input Node
Uses
@Property decorator for static configuration. The value is set in the property panel, not connected from another node.Math Operations
Math Operations
Use
@Input decorators for dynamic data flow. Values come from connected nodes via handles.Node Connections
Node Connections
Connect output ports to input ports. Data flows automatically during execution.
Execution Order
Execution Order
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