# 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 Set property combo box, select the property which shall be used for filling out the template.
5. In the Format drop-down list, select Mustache template.
6. In the Template text box, specify the template using the Mustache template syntax.
7. In the Output as drop-down list, 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.