Group Node: Sub-Graph Encapsulation, Group Input Node & Group Output Node
Encapsulating multi-node sub-graphs, automated Ctrl+G conduit wiring, Group Input Node and Group Output Node synchronization, and multi-table pass-through.
# Group Node
When canvases grow large, the **Group Node** allows you to collapse complex multi-node pipelines into a clean, encapsulated single node with its own nested canvas.
---
## 1. Group Node Architecture
A Group Node consists of three synchronized elements:
- **Group Node (Parent)**: The container node sitting on the main canvas with breadcrumb navigation and conduit handles.
- **Group Input Node**: The internal entry proxy node receiving external inputs and fanning them out to internal nodes.
- **Group Output Node**: The internal destination proxy node collecting internal outputs and exposing them on the external Group Node.
---
## 2. Group Input Node
Inside any grouped sub-graph, the **Group Input Node** anchors the left side of the internal canvas:
- Acts as the internal distribution conduit for any noodles wired into the parent Group Node from the main canvas.
- Dynamically mirrors each incoming external connection as an individual output handle on the Group Input Node.
- Preserves full data types and tabular schemas without scrambling.
---
## 3. Group Output Node
The **Group Output Node** anchors the right side of the internal canvas:
- Collects outputs from internal prompt cards, tables, or AI agents.
- Automatically exposes these signals on the parent Group Node's right border.
- **All Out Synchronization**: Compiles internal outputs in explicit vertical order, feeding the parent Group Node's primary `All out` green handle.
---
## 4. Automatic Conduit Generation (`Ctrl + G`)
When you select multiple connected nodes and press **`Ctrl + G`** (or choose Group from the context menu):
- **Zero Severed Noodles**: Existing external connections entering the selected nodes are automatically converted into input ports on the parent Group Node and output ports on the internal Group Input Node, keeping upstream connections alive.
- **External Target Rewiring**: Existing external connections leaving the selected nodes are automatically connected to internal Group Output Node input ports and forwarded to matching output ports on the external Group Node.
- **Internal Preservation**: All internal noodles between the grouped nodes remain 100% intact.
- **Single-Step Undo**: Pressing `Ctrl + Z` cleanly ungroups and restores the original node layout.
---
## 5. Multi-Table Pass-Through Architecture
While standard prompt nodes are restricted to 1 active table dataset to prevent conflicting record state, **Group Nodes are organizing nodes, not consumer nodes**:
- **Multiple Tables Supported**: A Group Node can receive multiple independent Table Node datasets simultaneously across distinct input handles.
- **Clean Pass-Through**: Group Nodes do not render consumer record selectors or pill trays on the main canvas. They act as pure, high-performance organizing conduits that cleanly forward table streams to internal consumer nodes or pass them downstream through independent Group Output Node ports.
- **Royal Blue Group Noodles**: Wires carrying tabular datasets through Group Nodes are rendered in signature Royal Blue to maintain visual clarity across canvas hierarchies.
---
## 6. Nesting Depth Guardrail
To prevent recursive call-stack overflows during prompt compilation, Nodestr enforces a strict **2-Level Group Nesting Clamp**:
- Main Canvas → Group Node (Level 1) → Nested Group Node (Level 2).
- Attempting to create a group node inside Level 2 is safely blocked with an informational toast.