Input

Description

The Input node is the primary entry point for user-provided text into a workflow. It reads the content of the main text input area (located on the right side of the TzuFlow interface) and passes it downstream as a string.

It is a source node (no input anchor) — it has no dependencies and is always the first node to execute when a workflow starts. Every workflow needs at least one source node to trigger execution, and the Input node is the most common one.


How It Works

The Input node does not have a configuration dialog. Its behavior is entirely tied to the main text input area of the application:

Text Input Area (right panel)
This is the large text box at the bottom-right of the TzuFlow window (visible in the screenshot with the placeholder "Zone de saisie du texte"). Whatever you type here becomes the data sent by the Input node.

Validating with Enter
Pressing the Enter key in the text input area validates the current text and immediately triggers the workflow execution. The text is sent to the Input node, which forwards it to the next connected node.

Empty input is valid
You can press Enter with an empty text area. The Input node will send an empty string ("") downstream. This is useful for workflows that don't need user text (e.g., a workflow that reads from a file or memory and only uses the Input node as a "start button").

Start Button behavior
Clicking the Start button (the green play icon in the toolbar) has the same effect as pressing Enter in the text input area:

  • If the text area contains text that has not yet been validated with Enter, that text is automatically sent by the Input node when the workflow starts.
  • If the text area is empty, the Input node sends an empty string.
  • If the text was already validated previously (and the area is now empty or unchanged), the Input node sends whatever is currently in the area.

💡 Tip: Think of the text input area as a "staging zone". You can type and edit your text freely. The workflow only sees it when you explicitly validate (Enter) or when you force-start (Start button). This lets you prepare your input without accidentally triggering the workflow mid-typing.


Visual Behavior

When a workflow is running, the text you entered appears in the console/output panel with a "You :" prefix (visible in the screenshot as "You : qsdsqd"). This confirms what text was actually sent by the Input node, which is useful for debugging when the text contains invisible characters or unexpected formatting.


Usage Example

"Simple text echo":

  1. Type "Hello world" in the text input area.
  2. Press Enter (or click Start).
  3. The Input node sends "Hello world" to the next node.
  4. An Output node displays it.

"File processor with no user text":

  1. Leave the text input area empty.
  2. Press Enter to start the workflow.
  3. The Input node sends an empty string to a File Read node (which ignores the input and reads a fixed file path).
  4. The workflow processes the file without needing any user text.

⚠️ Pitfalls to Avoid

Trailing whitespace: If you accidentally leave spaces or newlines after your text, they are included in the string sent by the Input node. This can cause issues with downstream nodes that expect exact matches (e.g., a Switch node testing for a specific keyword). Trim your input if precision matters.

Multiple Input nodes: If your workflow contains more than one Input node, they will all read the same text from the input area and send it simultaneously. This is rarely useful and can cause duplicate processing. Use a single Input node per workflow.

Start button vs Enter: There is no functional difference between pressing Enter and clicking Start. However, if you have a long text in the input area and you click Start without pressing Enter first, the text is sent as-is. If you had previously pressed Enter (which may have cleared the area depending on your settings), the Input node might send an empty string instead. Always check what's currently in the text area before starting.

No input = no execution: If your workflow has no source node (no Input node, no Memory Read in FixedKey mode, no Folder List, etc.), clicking Start will do nothing. The executor requires at least one source node to begin. The Input node is the simplest way to ensure your workflow can start.

Text area is shared: The text input area is global to the application, not per-workflow. If you switch between workflows, the text remains in the area. Be aware of what text is currently staged before running a new workflow.