Skip to main content

Template

flag

The template node processes an incoming message and modifies it according to the provided template text.

mustache template is being used.

For the example in the image, if an incoming message has this structure

Message {
sender: "Alice",
content: "Hi there!"
}

The output message will be:

Message {
sender: "Alice",
content: "[Alice]: \"Hi there!\" suffix",
}

Since some nodes only process single strings of text rather than the whole Message structure, this ambiguity is resolved by taking the content field.