User Manual
Overview

Call Event Properties with Liquid

Event properties can be called in a Workflow or Rule with Liquid code. This allows you to pull specific properties from an event and use that information to set a Custom Field, apply a Tag, or personalize an email. 

The following Liquid code template is how event properties are called:

{{ event.the_property_name }}

In the Liquid code example above, the event keyword is a universal identifier in Drip for any event that is recorded in your account. Followed by the event keyword, is the property_name or the specific event property that is called from the event. Replace the property_name with the name of the event property to call. Using this code, the value of that property is exposed. 

Example event

To call the event property of this Made a purchase event, use the following liquid code:

{{ event.product_name }}

The event property: product_name holds a value of Tote Bag

Call Event Properties in Automation

When event properties are called in a Workflow or Rule, the following actions are able to set a value based on the property that is being called:

  • Apply a tag to a person's profile

  • Set a primary or custom field value on a person's profile

  • Send an email to a person

  • Send an internal notification

Event properties can be called only after a trigger event has fired. Once a trigger fires, the values for the above actions can be set. 

Apply a Tag

Apply a Tag with Liquid

This Rule uses the Made a purchase event as its trigger and shows how to apply a Tag by calling an event property with the following Liquid code: 

{{ event.product_name }}

The result applies the tag Tote Bag to the person that triggered the event. 

Set a Custom Field Value

Set a Custom Field Value with Liquid

This Rule uses the Made a purchase event as its trigger and shows how to set a custom field value by calling an event property with the following Liquid code: 

{{ event.product_name }}

The result sets a Product custom field with a value of Tote bag.