Draft modular prose, inject {variable} tags, wire dynamic inputs, and expand into full TipTap WYSIWYG modal editing.
# Text Node
The **Text Node** is the fundamental modular authoring card in Nodestr. It serves as your primary canvas scratchpad, prompt template builder, and narrative section composer.
---
## 1. Visual Anatomy & Controls
Every Text Node features:
- **Header Bar**: Displays the node title (double-click to edit), color swatch badge, and collapse chevron.
- **TEXT Editor Area**: Multi-line writing surface. Expand into a full-screen TipTap WYSIWYG modal anytime by clicking the expand icon (`⤢`) in the top-right corner.
- **Dynamic Input Handles (`● IN`)**: Gray circular handles on the outer left border.
- **Add Input Handle (`● ADD INPUT`)**: Drag incoming noodles here or click to dynamically add upstream connection slots.
- **Output Handle (`out-text` / `All out`)**: Aligned on the right border to pipe composed prose directly into downstream nodes, Output Hubs, or Exporters.
---
## 2. Dynamic Variable Substitutions (`{variable}`)
Wrap any placeholder word in single curly braces inside your text (e.g. `{customer_name}`, `{target_audience}`, or `{tone}`):
- Nodestr instantly parses the tag and dynamically sprouts an **Input handle** on the left edge of the node.
- Connecting an upstream node into that input slot automatically injects its evaluated content into the `{variable}` placeholder during prompt compilation.
- Multiple variables can be combined freely within the same paragraph or prompt template.
---
## 3. Tabular Dataset Binding & Token Pills
When a **Table Node** is connected to a Text Node:
- The node surfaces interactive column chips (e.g. `+ Name`, `+ Description`).
- Clicking any column chip inserts a dynamic visual token pill directly into your text.
- Use the **`[ 📄 Record | 📊 Table ]`** toggle to switch between evaluating individual active records (`{{Column}}`) or injecting the full dataset as a GitHub-Flavored Markdown table (`{{Table}}`).
---
## 4. Character Capacity Safeguards
- **Local Mode**: Text fields support up to **15,000 characters** per field (~3,000 words).
- **Cloud Mode**: Text fields support up to **25,000 characters** per field (~5,000 words).