# Generating text from message properties using a template node

You can generate text by filling out a template using message properties.

1. Open Node-RED.
2. Add a template node from the function category to the workspace.
3. Double-click the template node to open the Edit node dialogue.
4. In the combo box Set property, select the property which shall be used for filling out the template.
5. In the drop-down list Format, select Mustache template.
6. In the text box Template, specify the template using the Mustache template syntax.
7. In the drop-down list Output as, select whether the node shall output plain text or a parsed JavaScript object.
8. Click Done to apply your changes.
9. Connect the input of the template node to the node that outputs the messages you want to generate text from.