One Class Remaining in Customer.io

As you sell class packages, you’ll want to create a campaign that will let students know that they are on their last class and need to purchase more or save by becoming a subscriber. To get started, you'll need to setup a segment. Then, you can use that segment as the trigger in your campaign!

Learn how to Build the Segment

Example of how to create a campaign


How to Build a One Class Remaining Segment

Begin by creating a new segment. Name your segment. While a description and tags are optional, Union strongly encourages adding a tag. Then click Create Data-driven Segment.


The User Data will be an Attribute.


For the profile attribute, you'll want to search for active_paid_packs_with_one_redemption_remaining.

*If this does not populate for you, that's okay. You can manually type it in.


Then, update the string to Exists and click to Save.


From here, you simply build a campaign and set the trigger to this segment you just built. See our video for a deep dive!



If you need to build a segment for specific class packages you can add another condition or group and select pass_issued. Just like you’ve built segments for specific passes before, you’ll do that here.


Refine the condition. Add event data filter. Choose the event_attribute_name of name and select the pass you want to apply in the value. This way you can segment out for each type of pass you have and make your email campaigns more targeted for that audience.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.