Skip to main content

Generate Text

The Generate Text node lets you create dynamic text by combining a template string with input values. You write a template using placeholders like {{0}}, {{1}}, {{2}}, and so on. Each placeholder corresponds to a numbered input handle on the node. When the node runs, it replaces each placeholder with the actual value from the corresponding input. The number of input handles grows automatically as you add more placeholders to your template.

Inputs

NameTypeDescription
0anyThe value to substitute for {{0}} in the template
1anyThe value to substitute for {{1}} in the template
...anyAdditional inputs are created automatically for each placeholder used

Outputs

NameTypeDescription
TextstringThe final assembled text with all placeholders replaced

Configuration

  • Template: The text template containing placeholders. Use {{0}}, {{1}}, {{2}}, etc. to reference input values by position.

Example

You want to build a custom alert message that says "Thanks for the 500 bits, NightBot! You rock!" Set the template to Thanks for the {{0}} bits, {{1}}! You rock!. Connect the cheer event's bits output to input 0 and the viewer's displayName to input 1. The output text will have the placeholders replaced with the actual values.