Liquid Templates

Last Updated 2021-03-18

What is Liquid?

Liquid is a template language used to create dynamic content. It's an open-source template language created by Shopify. You can read more about it here.


Objects tell Liquid where to show content on a page. Objects and variable names are denoted by double curly braces: {{ and }}.


Where can you use Liquid templates?

In Cloudmattr, you can use Liquid templates to compose messages in these parts:


  • Message Subject Line
  • Message Body



Available User Properties

These values are from the data that is passed to Cloudmattr via the Users API or Zapier.


You can find all available properties for your workspace here: https://app.cloudmattr.com/user_properties


  • {{ user.id }} — The User ID of a user
  • {{ user.first_name }} — The first name of a user
  • {{ user.last_name }} — The last name of a user
  • {{ user.email }} — The email of a user
  • {{ user.CUSTOM_PROPERTY_NAME }} — The specified custom property of a user


Available Event Properties

You can also use properties from the event that is triggering a campaign. For example, if the Campaign trigger is the event, "Purchase", with "revenue" as a Property.


If you wanted to send a message to a user, "Hi Michael Scott, we're confirming your purchase of $25.00!", you'd be able to use the following:


  • {{ source_event.property }}


In the previous example, this would be "Hi {{ user.first_name }}, we're confirming your purchase of {{ purchase.revenue }}!"


Available Workspace Properties

All values are used when added in the Workspace Settings page.


  • {{ workspace.name }} — The name of your Workspace
  • {{ workspace.business_name }} — The name of your business
  • {{ workspace.address_line }} — The address of your business
  • {{ workspace.website_url }} — The URL of your website
  • {{ workspace.url }} — The branded or custom domain of your workspace
  • Table of Contents

Was this page helpful? Yes No

Next

2022 © Powered by Cloudmattr