Skip to main content

Plain Text

Uncontrolled node

Overview

The Plain Text node creates dynamic text content using Handlebars templating syntax. It automatically detects variables wrapped in double curly brackets (e.g., {{variableName}}) within the text template and creates corresponding input sockets for each variable. When any connected input changes, the node recompiles the template and outputs the resulting text.

Unlike the Markdown Text node, Plain Text outputs raw text without markdown formatting, making it ideal for building prompts for AI nodes, email templates, or any scenario requiring plain text generation.

Dynamic Inputs

This node automatically generates data inputs based on the variables detected in the text template. For example, if your template contains {{firstName}} and {{lastName}}, the node will create two inputs named firstName and lastName.

InputTypeDescription
DynamicDataAutomatically created for each {{variable}} found in the text template.

Outputs

OutputTypeDescription
OutputTextThe compiled text with all template variables replaced by their input values.

Properties

PropertyTypeDescriptionDefault
TextPlainTextThe template text using Handlebars syntax ({{variable}}). Variables are automatically detected and added as inputs.Empty string

Runtime Behavior

The Plain Text node is uncontrolled, meaning it executes automatically whenever any of its dynamic inputs change or when the template text is modified. It does not require an event trigger to run.

The node uses Handlebars to compile the template, merging values from:

  1. Connected input data (dynamic variables)
  2. Parent workflow variables
  3. Root workflow variables

If a variable in the template has no corresponding input or value, it will be replaced with an empty string in the output.

Example

Building an AI Prompt

Create a dynamic prompt for the AI Write node by combining static text with variable inputs:

Template in Text property:

Write a professional email to {{recipientName}} regarding {{topic}}. 
The tone should be {{tone}} and the length should be approximately {{wordCount}} words.

Inputs:

  • recipientName: "Dr. Smith"
  • topic: "quarterly budget review"
  • tone: "formal"
  • wordCount: 500

Output:

Write a professional email to Dr. Smith regarding quarterly budget review. 
The tone should be formal and the length should be approximately 500 words.

Email Template

Create reusable email templates:

Template:

Dear {{customerName}},

Thank you for your order of {{productName}} on {{orderDate}}.

Your total comes to ${{totalAmount}}.

Best regards,
{{senderName}}

Connect the output to an email sending node or display it in a form element.