What you’ll learnHow to define multiple nodes across categories, understand node types and
visual styles, and connect nodes together.
Expanding the node palette
Adding more nodes follows the same pattern from the previous step. Here’s how to define nodes across different categories:Node types (visual styles)
Thetype field controls how the node renders on the canvas:
| Type | Appearance | Use case |
|---|---|---|
simple | Compact rounded rectangle | Inputs, outputs, basic operations |
tool | Rectangle with tool badge and extra ports | API calls, integrations, processing |
gateway | Diamond shape | Conditional branching and routing |
terminal | Rounded end-cap shape | Start/end points of a workflow |
idea | Sticky-note style | Documentation and comments |
default | Standard rectangle | General-purpose nodes |
supportedTypes, letting users switch between visual styles from the config panel.
Connecting nodes
Nodes connect through ports — the small circles on the edges of each node:- Output ports (right side) send data out of a node
- Input ports (left side) receive data into a node
dataType field:
| Data Type | Compatible With |
|---|---|
string | string, mixed |
number | number, mixed |
json | json, mixed, string |
array | array, mixed |
mixed | all data types |
tool | tool only |
trigger | trigger only |
Try it
Build a small workflow in your editor:- Drag Text Input, AI Content Analyzer, and Text Output onto the canvas.
- Connect the
textoutput of Text Input to theContent to Analyzeinput of AI Content Analyzer. - Connect the
analyzed_contentoutput of AI Content Analyzer to theText Inputport of Text Output. - Try adding a Gateway node to see the diamond shape, or a Notes node for sticky-note documentation.
What’s next
You now have a fully functional editor where users can build workflows. In the next step, you’ll learn how to save those workflows and understand the data structure behind them.Tutorial — Step 4 of 5 ← Your first node · Next: Saving workflows →