




Each day, the automation finds users whose first purchase was 365 days ago and who have a valid email with Consent email = TRUE, then segments them by the Total orders last year aggregator. For 1–2 orders, it assigns a code from “1year_anniversary_discount”; if available, it sends “First purchase anniversary with a gift,” adds the tag coupon_1year_anniversary, and creates the event coupon assigned; if not, it notifies an agent. For 3+ orders, it sends a thank-you gift email without a coupon.
Implementing use case automation involves several key steps and tools. Here's a comprehensive ressources to get you started:
Collect information from your visitors and navigate them on the website.
Automate SMS delivery based on user actions or specific conditions.
Delivers personalized notifications to users of your website (webpush) or app (mobile push).
Easily design and customize landing pages that convert visitors into leads, optimizing the journey from click to action.

| Attribute name | Attribute type |
|---|---|
| (standard) string | |
| Consent email | (custom) boolean |
| Total orders last year | (custom) integer |
| Attribute name | Attribute type | |
|---|---|---|
| stage | (standard) integer | |
| Date paid | (custom) datetime |
| Product Event name | Customer path | |
|---|---|---|
| Purchase | order completed with the product |
| Event name | Event attributes |
|---|---|
| Coupon assigned | (string) promotion; (string) coupon code |
| Aggregator name | Aggregator definition | Updates the attribute |
|---|---|---|
| Total orders last year per user | sums up all the orders made by the user last year | Total orders last year |
| Tage name | Tag definition | Tag update method |
|---|---|---|
| coupon_1year_anniversary | discount for the First Purchase Anniversary if the total orders are 1 or 2 | automation |
| Promotion name | |
|---|---|
| 1year_anniversary_discount |

