Text Template Documentation
Version: 3.1.1
Retrieved: 2025-10-09 15:16:23
Text Template
This module is used for easy creation of user readable text messages, from a text template and values provided with the incoming messages from previous module(s).
This module uses a user created template for text and format the target accordingly. The template is written in the Text Template setting and the target for which this filled template should appear is set in the Target Property
The module is designed to be located in the middle of a flow.
Settings
Accessing properties in the text template from incoming messages are done by writing the property within {}. All this type of formatting is done within the setting Text Template.
| Name | Requirements | Purpose | Default |
|---|---|---|---|
| Target Property | String with length 1-64 | Property to store the resulting text message in. | data |
| Template | String with length 1-N | Template to use for creating the message | Hello {data}! |
Input
The input requirement is that all the properties that is used in Text template exists on the message, otherwise no restrictions.
Output
Same message as input with appended property that is set in Target Property, which contains the result from the Text Template specifications.
Examples
Example 1 - Basic Text Template
# Settings:
Template = Hello {name}!
Target Property = result
# Incoming message:
{
"name": "World"
}
# Outgoing message:
{
"name": "World",
"result": "Hello World!
}
Example 2 - More Advanced Usage
# Settings:
Template = 1: {data.test}, 2: {data.second} 3: {third}
Target Property = data.showTemplate
# Incoming message:
{
"data": {
"test": "First data here!",
"second": 127
}
"third": "this is the end."
}
# Outgoing message:
{
"data": {
"test": "First data here!",
"second": 127,
"showTemplate": "1: First data here!, 2: 127 3: this is the end."
}
"third": "this is the end."
}
Search Documentation