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.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.
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
With a Rule:
With a Workflow:
And the Trigger for the Workflow:
This Rule and Workflow use the Made a Purchase event as their trigger and show 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
With a Rule:
With a Workflow:
This Rule and Workflow use the Made a Purchase event as their trigger and show 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 product_names
with a value of Tote bag.