Node Inputs
Required Fields
Template:The template text with placeholders.
Example:
"Hello {{name}}, your order #{{order_id}} totaling {{amount}} has been confirmed."
Data:A JSON object containing values for the placeholders.
Example:
Optional Fields
Placeholder Format:The format for placeholders in the template.
Available options:
{{placeholder}}
: Double curly braces (Mustache style){placeholder}
: Single curly braces$placeholder
: Dollar sign prefix
Default:{{placeholder}}
How to handle missing placeholder values.
Available options:
keep
: Keep the placeholder as-isempty
: Replace with empty stringerror
: Raise an error
Default:empty
Escape HTML characters in replacement values.
Example:
false
Default:
false
Node Output
Merged Text:The template with all placeholders replaced with actual values. Example Output:
Node Functionality
The Merge with Template node:- Merges data into text templates using placeholders.
- Supports multiple placeholder formats (Mustache, curly braces, dollar sign).
- Handles nested data structures with dot notation.
- Configurable handling of missing values.
- Useful for email generation, report creation, and dynamic content.
- Supports HTML escaping for safe HTML output.