<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>
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.
<<<input>>> (default), {{INPUT}}, [[DATA]], or any custom marker that doesn't collide with your actual content<aside>
<aside>
<<<input>>> (or whichever token you configured) replaced by the dynamic input
</aside><<<input>>>{{INPUT}}, [[DATA]], %PAYLOAD%, ___INPUT___)<<<input>>> is intentionally hard to collide with)<aside>
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.
Add a subject lineUse a polite greeting and sign-offKeep all factual details exactly the sameTone: friendly but professionalOriginal message: "<<<input>>>"
Connect the dynamic source → Hook up whatever produces the variable text (OCR, LLM, file loader, etc.)

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

(Optional) Customize the placeholder → If your template uses a different token (e.g., {{INPUT}}), enter it in the Placeholder token field on the node
Run Flow → Text Decorator outputs the template with the placeholder substituted; pipe it into an LLM, viewer, file output, or any downstream text consumer




</aside>