Adding Liquid template variables to workflow messages
You can add template variables to any text field that contains the Add template variable link in Flow. Workflow actions that contain such text fields include Send email message, Send Slack message, Send HTTP request, and Update order note.
Add a template variable to a text field
To add a template variable to a text field:
Create a workflow, and then add an action that supports template variables in texts fields.
- Enter your message in a text box.
The following customer is now a VIP customer:
- Click Add template variable and select a template variable from the list: The template variable appears in the text box:
- If you are editing an message action, then click Preview to see an example of what your message will look like when the text variable is replaced during your workflow:
In the following example, the title of the discontinued product will appear in the message:
has just hit an inventory level of 0.