<aside> 🛠

Wrap Dynamic Text in a Reusable Template


Build prompts and structured strings by combining a fixed template with a dynamic text input. Mark where the dynamic content goes with a placeholder token (default <<<input>>>); Text Decorator swaps the placeholder for the live text and outputs the finished string. Perfect for assembling LLM prompts where the instructions stay constant but the data changes - OCR text, model outputs, user queries, anything.

</aside>


What it does

Text Decorator takes a template (any text containing a placeholder token) and a dynamic text input, then produces an output where every occurrence of the placeholder is replaced with the dynamic text. The placeholder token is configurable on the node (default: <<<input>>>). This is the classic "string template" pattern - write a prompt once, reuse it across many inputs.

Problem it solves

Input/Output

<aside>

<aside>

Configuration Options

How to Use

<aside>

  1. Write your template → Add a Text Input node (or any text source) and write the template text with the placeholder where the dynamic content should go:

    Rewrite the following message as a professional email.

Original message: "<<<input>>>"

  1. Connect the dynamic source → Hook up whatever produces the variable text (OCR, LLM, file loader, etc.)

    Screenshot 2026-06-10 at 12.35.42 PM.png

  2. Wire both into Text Decorator → Connect the template to the top input port; connect the dynamic text to the bottom input port

    Screenshot 2026-06-10 at 12.36.11 PM.png

  3. (Optional) Customize the placeholder → If your template uses a different token (e.g., {{INPUT}}), enter it in the Placeholder token field on the node

  4. Run Flow → Text Decorator outputs the template with the placeholder substituted; pipe it into an LLM, viewer, file output, or any downstream text consumer

    Screenshot 2026-06-10 at 12.38.40 PM.png

    Screenshot 2026-06-10 at 12.37.07 PM.png

    Screenshot 2026-06-10 at 12.36.40 PM.png

    Screenshot 2026-06-10 at 12.37.45 PM.png

</aside>