# Loyalty program enrollment
_B2XBb2vP.jpg)
Not sure where to use this template? Check out [Get started with workflow templates library](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library)
## About this template
When a new subscriber signs up and has **made at least one purchase**, automatically **tag** them for loyalty program and send a **loyalty welcome email** explaining the benefits.
## Step-by-step guide to set up this template
### Trigger β New customer sign up
This trigger activates the workflow when a user submits a Notify me form on your store (not during checkout).
π Learn more about triggers: [Understanding workflow triggers](https://docs.foxecom.com/xflow-app/workflows/understanding-workflow-triggers)
_fab4tW1h.jpg)
### Condition β Customer criterias: Order count
Set the condition to: **Order count β Greater than or equal to β 1**. This means the customer has placed at least one order.
π Learn more about conditions: [Workflow condition: Customer criteria](https://docs.foxecom.com/xflow-app/workflows/understanding-workflow-conditions/workflow-condition-customer-criteria)
_NnKbyBxU.jpg)
### Action β Add customer tags
In **True** path, add a tag `loyalty member` to the customer to include them in your loyalty program.
In the **False** path, no further action is taken. If the customer has no orders, the workflow does nothing, no tag is added and no email is sent.
π Learn more about actions: [Understanding workflow actions](https://docs.foxecom.com/xflow-app/workflows/understanding-workflow-actions)
π Learn more about variables: [Understanding personalization variables in email templates](https://docs.foxecom.com/xflow-app/email-templates/understanding-personalization-variables-in-email-templates)
_pOrBP9u2.jpg)
### Action β Send email
Send a welcome email to the customer for the loyalty program.
1. Enter the **email subject**.
2. Select the **email template** that you have prepared in advance.
If you donβt have an **email template** yet, check out [Create an email template](https://docs.foxecom.com/xflow-app/email-templates/create-an-email-template)
Read more about the **variables** you can use in email: [Available variables in email templates](https://docs.foxecom.com/xflow-app/email-templates/understanding-personalization-variables-in-email-templates/available-variables-in-email-templates)
_SfMpnuWz.jpg)
All done! Returning customers are now automatically added to your loyalty program and welcomed with a special email.
**π Pro Tip:**
* Set the order count to **greater than or equal to 1** to identify returning customers.
* Use a clear and consistent loyalty tag for easy segmentation.
* Personalize the welcome email to highlight loyalty benefits:
## Common use cases
The **Loyalty program enrollment** workflow template is commonly used when:
* You want to automatically enroll returning customers into a loyalty program.
* You want to recognize and reward customers who have purchased before.
* You want to segment loyal customers for future campaigns.