Skip to content

Personalization Using Liquid Tags

Braze can automatically substitute values from a given user into your messages. Put your expression inside of two sets of curly brackets to notify Braze that you’ll be using an interpolated value. Inside of these brackets, any user values that you want to substitute must be surrounded by an additional set of brackets with a dollar sign in front of them.

For more on Liquid, check out our guided Dynamic Personalization with Liquid Braze Learning path!

About Liquid

Liquid is an open-source template language developed by Shopify and written in Ruby. At Braze, Liquid is used to template data from a user’s profile into messages.

For example, you can retrieve a custom attribute from a user profile that is an integer data type and round that value to the nearest whole number. For more on Liquid syntax and usage, refer to Supported personalization tags.

Liquid templating language supports the use of objects, tags, and filters.

  • Objects allow you to insert personalized attributes into your messages.
  • Tags allow you to insert data into messaging and use conditional logic to send messages if certain conditions are met. For example, you can use tags to include intelligent logic, such as “if” statements, in your campaigns.
  • Filters allow you to reformat personalized attributes and dynamic content. For example, you could use the date filter to convert a timestamp, such as 2016-09-07 08:43:50 UTC, into a date, such as September 7, 2016.

Liquid 5 support

Braze supports Liquid up to and including Liquid 5 from Shopify. Liquid implementation supports syntax personalization tag types and whitespace control. For more information on specific tags, refer to syntax tags.

The following new array and math filters are available for use in your Liquid as you build your messaging.

  • at_least
  • at_most
  • compact
  • concat
  • sort_natural
  • where

Refer to Filters for definitions.

Liquid updates

Color labels

Each Liquid element corresponds to a color, allowing you to differentiate your Liquid at-a-glance in your Liquid editor.

Predictive Liquid

You can also leverage predictive Liquid for custom attributes, attribute names, and more as you build your personalized messages.

Terms to know

These terms are reinterpreted from Shopify’s documentation based on our level of support.


New Stuff!