# Tag VIP customers based on purchase history

<figure><img src="/files/WQXf5mptqF5vwEqZOuFZ" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}

## Before you begin

Not sure where to use this template? Check out [Get started with workflow templates library](/xflow-app/workflows/get-started-with-workflow-templates-library.md)
{% endhint %}

## About this template

Automatically **tag new subscribers as VIP** if they have made **more than 5 orders** or spent more than a threshold amount. This helps **segment high-value customers** for exclusive offers.

## Step-by-step guide to set up this template

{% stepper %}
{% step %}

### Trigger – New customer sign up

This trigger activates the workflow when a user submits a Notify me form on your store (not during checkout).

{% hint style="success" %}
📝 Learn more about triggers: [Understanding workflow triggers](/xflow-app/workflows/understanding-workflow-triggers.md)
{% endhint %}

<figure><img src="/files/fab4tW1hJAAPvTugbcnA" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Condition – Customer criterias: Order count

Set the condition to: **Order count → Greater than → 5.** This checks whether the customer has placed more than 5 orders.

{% hint style="success" %}
📝 Learn more about conditions: [Workflow condition: Customer criteria](/xflow-app/workflows/understanding-workflow-conditions/workflow-condition-customer-criteria.md)
{% endhint %}

<figure><img src="/files/gidlRsY3G5erR0edYotO" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Action – Add customer tags

Enter **VIP** in the tags field. The action is applied on the **True** branch.

{% hint style="success" %}
📝 Learn more about actions: [Understanding workflow actions](/xflow-app/workflows/understanding-workflow-actions.md)

📝 Learn more about variables: [Understanding personalization variables in email templates](/xflow-app/email-templates/understanding-personalization-variables-in-email-templates.md)
{% endhint %}

<figure><img src="/files/DPXxEbrBj7XCmFoAkH3f" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="danger" %}
On the **False** branch, no additional steps are added. This means that **if the customer does not meet the condition of having more than 5 orders, no action will be taken**.
{% endhint %}

{% hint style="success" %}
Once the workflow is active, **any subscriber with more than 5 orders** will be automatically tagged as **VIP**.
{% endhint %}

{% hint style="info" %}
**🌟 Pro Tip:**

* Adjust the **order count threshold** to match your VIP criteria.
* Use the **VIP tag** to trigger exclusive campaigns, discounts, or early access offers.
* Review tagged customers periodically to ensure the criteria still fit your business goals.
  {% endhint %}

## Common use cases

The **Tag VIP customers based on purchase history** workflow template is commonly used when:

* You want to **identify and segment loyal customers** automatically.
* You offer **exclusive rewards or perks** for VIP customers.
* You want to personalize marketing campaigns based on customer value.
* You want to reduce manual work when managing customer segments.

***

#### 📩 **Need help?**

We’re here to make your XFlow experience smooth and successful.\
Our support team is always ready to assist you—no matter how big or small your question is.

<a href="https://admin.shopify.com/apps/xflow?chat=true&#x26;utm_source=foxecom&#x26;utm_medium=help_center_xflow_tag_vip_customers_based_on_purchase_history&#x26;utm_campaign=cta_button&#x26;utm_term=chat_now" class="button primary" data-icon="comment-lines">Chat now</a> <a href="mailto:contact@help.xflow.so" class="button secondary" data-icon="envelopes">Message us</a>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library/tag-vip-customers-based-on-purchase-history.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
