# VIP welcome with exclusive discount code

<figure><img src="/files/v11QoEABCIGue5FzDiaA" 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

When a subscriber signs up and is identified as a **returning customer with past purchases**, create an **exclusive discount code** and send them a **special VIP welcome email**.

## 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 or equal to → 1**. This means the customer has placed at least one order in the past.

{% 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/f1fY76t2biNflDfTjlPQ" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Action – Create discount code

Create a unique VIP discount code for customers who have placed orders in the past.

{% hint style="warning" %}
In the **False** path, no action is added. If the customer does not meet the condition, the workflow stops and does not proceed to the next step.
{% endhint %}

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

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

{% step %}

### Action – Send email

Send a VIP welcome email that includes the generated discount code.

{% hint style="success" %}

1. Enter the **email subject**.
2. Select the **email template** that you have prepared in advance.
   {% endhint %}

{% hint style="info" %}
If you don’t have an **email template** yet, check out [Create an email template](/xflow-app/email-templates/create-an-email-template.md)

Read more about the **variables** you can use in email: [Available variables in email templates](/xflow-app/email-templates/understanding-personalization-variables-in-email-templates/available-variables-in-email-templates.md)
{% endhint %}

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

{% hint style="success" %}
You’re all set! Returning customers will now receive a special VIP welcome and reward.
{% endhint %}

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

* Set a clear order count threshold to define VIP customers.
* Use single-use or customer-specific discount codes to prevent misuse.
* Prepare your email template in advance and include discount.
  {% endhint %}

## Common use cases

The **VIP welcome with exclusive discount code** workflow template is commonly used when:

* You want to reward customers who have ordered before.
* You want to offer a VIP welcome experience for returning subscribers.
* You want to increase conversions by combining onboarding with incentives.

***

#### 📩 **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_vip_welcome_with_exclusive_discount_code&#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/vip-welcome-with-exclusive-discount-code.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.
