Skip to main content

String Template

String Template generates a dynamic string using Mustache template syntax.

It allows you to:

  • Concatenate values
  • Build JSON payloads
  • Create formatted strings
  • Conditionally include sections

All message parameters are automatically available inside the template as variables.


Parameters

TEMPLATE

Mustache template string used to generate the output.

All message parameters are available as variables using:

{{ParameterName}}

Conditional rendering is supported using:

{{#when Condition}}
...
{{/when}}

Required


OUTPUT_PARAM

Message parameter name that receives the rendered output.

Direction: Out
Default: OUTPUT


Execution Context Behavior

  1. Reads the template from TEMPLATE.
  2. Builds a context using all current message parameters.
  3. Compiles the Mustache template.
  4. Renders the template using message parameters as variables.
  5. Writes the rendered result to OUTPUT_PARAM.

Example Configuration

ParameterValue
TEMPLATEtext{"name":"{{NAME}}","age":"{{AGE}}"}
OUTPUT_PARAMREQUEST_BODY

Example Result

REQUEST_BODY = text{"name":"John","age":"30"}