# Advanced restock campaign

{% hint style="info" %}

## Before you begin

Please note that the **Advanced restock campaign** requires manual setup, while the [**Global restock campaign**](/xflow-app/getting-started/quick-start-guide/global-restock-campaign.md) is created by default and applies to all out-of-stock products.
{% endhint %}

The **Advanced restock campaign** provides users with more flexibility and control over back-in-stock notifications. It allows changing the scope and target for the products, and setting priorities when necessary.

## How to set up an Advanced restock campaign

{% stepper %}
{% step %}

### Enable XFlow Helper

{% hint style="success" %}
Steps:

1. Go to your Shopify dashboard.
2. Choose **Online Store > Themes.**
3. Navigate to **App embeds** and enable **XFlow Helper.**
   {% endhint %}

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

Once enabled, customers will be able to subscribe to back-in-stock alerts directly from your product page.
{% endstep %}

{% step %}

### Create and launch a campaign

{% hint style="success" %}
Go to **XFlow Dashboard > Campaigns** to build a campaign tailored to your goals.
{% endhint %}

Each campaign represents a dedicated restock strategy. Instead of applying one global setup to all products, campaigns let you control:

* Which products or collections are included
* How subscribers are handled when products restock (workflows)

{% hint style="warning" %}

* When your store is using both the Global restock campaign and the Advanced restock campaign, you need to set the **priority** for the **Advanced restock campaign to 1 or higher**.
* The priority for the Global restock campaign will be 0.

When multiple campaigns cover the same product, the higher priority wins.
{% endhint %}

<figure><img src="/files/6dbHETdSUAKxnjlNKh6H" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Learn more: [Email templates](/xflow-app/email-templates/overview.md)
{% endhint %}
{% endstep %}

{% step %}

### Set up workflow <a href="#create-an-campaign" id="create-an-campaign"></a>

{% hint style="success" %}
Go to **XFlow Dashboard > Workflows** to build the workflow that works best for you.
{% endhint %}

Workflows control what happens when a product is restocked, and allow you to automate follow-up actions for subscribers.

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

Each campaign has its own workflow, so different products can follow different restock strategies.&#x20;

{% hint style="info" %}
Learn more: [Workflows](/xflow-app/workflows/overview.md)
{% endhint %}
{% endstep %}

{% step %}

### Design an email template

{% hint style="success" %}
Go to **XFlow dashboard > Email templates** to set up and customize your email template.
{% endhint %}

Email templates control the content and branding of your notification emails, including:

* Subject line
* Messaging tone
* Call-to-action (CTA)
* Layout and branding elements

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

{% hint style="info" %}
Learn more: [Email templates](/xflow-app/email-templates/overview.md)
{% endhint %}
{% endstep %}

{% step %}

### Test the automation

{% hint style="success" %}
Steps:

1. Subscribe via the **Notify me button**.
2. **Restock the product** and confirm the **notification email is sent**.
3. XFlow tracks the entire customer journey for you, from email opens to completed purchases.
   {% endhint %}

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

{% hint style="info" %}
Learn more: [Test an email campaign](/xflow-app/campaigns/test-an-email-campaign.md)
{% endhint %}
{% endstep %}

{% step %}

### Tracking data and performance

{% hint style="success" %}
Go to **XFlow Dashboard > Subscriptions** to track restock subscription details.
{% endhint %}

You can track the number of subscribers waiting for restock, email delivery status, open and click activity, and whether subscribers complete a purchase.&#x20;

All data is campaign-based, making it easy to evaluate performance and optimize accordingly.

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

{% hint style="info" %}
Learn more: [Subscriptions](/xflow-app/store-management/subscriptions.md)
{% endhint %}
{% endstep %}
{% endstepper %}

## Related articles

{% content-ref url="/pages/Ggh9QCAgH0dJgwynIwde" %}
[Global restock campaign](/xflow-app/getting-started/quick-start-guide/global-restock-campaign.md)
{% endcontent-ref %}

{% content-ref url="/pages/245sE35jKwuGdo2RydlX" %}
[What is XFLow](/xflow-app/getting-started/what-is-xflow.md)
{% endcontent-ref %}

{% content-ref url="/pages/wXs14j9RqUUgmuT5uGo9" %}
[Key concept overviews](/xflow-app/getting-started/key-concept-overviews.md)
{% endcontent-ref %}

***

#### 📩 **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_advanced_restock_campaign&#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/getting-started/quick-start-guide/advanced-restock-campaign.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.
