# Liquid Codes

The automation emails and SMS notifications allow you to use liquid code. This is a great way to create engaging content, using clients info. Studio Suite also has custom field values which you can call with liquid code:

# User

You can use the following values collected for users who signed up for your classes or events:

{{user.full_name}}

{{user.first_name}}

{{user.last_name}}

{{user.email}}

{{user.phone}}

# Class

You can use the following values for classes your clients signed up for:

{{class.id}}

{{class.title}}

{{class.price}}

{{class.capacity}}

{{class.age}}

{{class.start}}

{{class.ts}}

{{class.tz}}

# Location

You can use the following values for locations where classes your clients signed up for take place:

{{location.id}}

{{location.name}}

{{location.address}}

{{location.address_formatted}}

{{location.description}}

{{location.timezone}}

# Instructor

You can use the following values for instructors teaching classes your clients signed up for:

{{instructor.id}}

{{instructor.first_name}}

{{instructor.last_name}}

{{instructor.full_name}}

{{instructor.email}}

{{instructor.phone}}

{{instructor.bio}}

{{instructor.social}}

# Booking

You can use the following values for bookings your clients made:

{{booking.id}}

{{booking.created}}

{{booking.price}}

{{booking.price_formatted}}

{{booking.total}}

{{booking.total_formatted}}

{{booking.attendees}}

# Attendees

You can use the following values for children or adults attending your classes:

{{attendees.name}}

{{attendees.age}}

{{attendees.month}}

{{attendees.dob}}

# Studio

You can use the following values for your studio info:

{{studio.id}}

{{studio.email}}

{{studio.name}}

# Reschedule

You can use the reschedule value to add a link which your clients can use to reschedule a booking:

{{reschedule_url}}

# List

You can use the following values for a list of instructors or locations:


{% for location in locations %}

{% for instructor in instructors %}

# Conditional Emails

You can use liquid codes to send different emails for different classes, using the class ID. You can add as many class IDs as you want, separated by OR between the IDs. The code should look like this:

{% if class.id == "xxx" or class.id == "yyy" %}
 Content first email
{% else %}
 Content second email
{% endif %}

The first mail will be sent for the class IDs in the code and the second mail for any other class ID.

# Join URL for Zoom

You can use liquid codes to send a Join URL for Zoom to clients who book a class. Just add this code into your emails in the Automations tab:

{% if booking.zoom_url %}
Please note: this takes place virtually via Zoom!
[Click Here to Join]({{booking.zoom_url}})
{% endif %}

Please note: This will add a link in your email body only if the class has a Zoom meeting or webinar assigned. Also, you need to activate the Registration Required option in your meetting or webinar settings in Zoom.

If you want to take full advantage of liquid code, we recommend browsing the official documentation.

Click here to learn more about how you can use liquid code

Last Updated: 1/25/2021, 5:18:03 PM