Skip to content

Dynamic Text

Builds a text string by replacing placeholders with values from up to 10 optional inputs. Placeholders use the format {{input_1}} ... {{input_10}}, and all occurrences are globally replaced using simple string substitution.
Preview

Usage

Use this node to compose prompts, messages, or metadata strings that need to inject variable values at runtime. Enter a template in the text field and reference any of the optional inputs via {{input_n}}. Connect or set the optional inputs you need; fields progressively appear as you set previous ones.

Inputs

FieldRequiredTypeDescriptionExample
textTrueDYNAMIC_STRINGTemplate text that can reference variables using {{input_1}} to {{input_10}}. The editor supports quick selection of available variables.User: {{input_1}} requested {{input_2}} items.
input_1FalseSTRINGValue to substitute for {{input_1}}.Alice
input_2FalseSTRINGValue to substitute for {{input_2}}. This field becomes visible after input_1 is set.3
input_3FalseSTRINGValue to substitute for {{input_3}}. Visible after input_2 is set.priority
input_4FalseSTRINGValue to substitute for {{input_4}}. Visible after input_3 is set.express
input_5FalseSTRINGValue to substitute for {{input_5}}. Visible after input_4 is set.blue
input_6FalseSTRINGValue to substitute for {{input_6}}. Visible after input_5 is set.medium
input_7FalseSTRINGValue to substitute for {{input_7}}. Visible after input_6 is set.USD
input_8FalseSTRINGValue to substitute for {{input_8}}. Visible after input_7 is set.2025-01-01
input_9FalseSTRINGValue to substitute for {{input_9}}. Visible after input_8 is set.note
input_10FalseSTRINGValue to substitute for {{input_10}}. Visible after input_9 is set.thanks

Outputs

FieldTypeDescriptionExample
textSTRINGThe final compiled text after replacing all matching placeholders with provided input values.User: Alice requested 3 items.

Important Notes

  • Placeholder format: Use double braces with exact key names, e.g., {{input_1}}. Keys are case-sensitive.
  • Global replacement: All occurrences of a given placeholder are replaced throughout the text.
  • Optional inputs: Only set the inputs you need. Unused placeholders remain unchanged.
  • Progressive visibility: input_2 shows after input_1 is set; this pattern continues up to input_10.
  • No expression parsing: Substitution is plain text replacement; it does not evaluate formulas or nested placeholders.
  • Limit of 10 variables: Only input_1 through input_10 are supported.

Troubleshooting

  • Variables not replacing: Confirm the placeholder uses double braces and exact key name (e.g., {{input_3}}) and that the corresponding input is not empty.
  • Fields not visible: Set the previous input to reveal the next (e.g., set input_1 to show input_2).
  • Unexpected leftover {{...}}: Provide values for the missing inputs or remove those placeholders from the template.
  • Empty output: Ensure the required 'text' template is not empty; optional inputs default to empty strings if not set.

Example Pipelines

Example
Example