# Create and launch a Restock campaign

A restock campaign defines *what products are included*, *which workflow runs*, and *when notifications are sent*.&#x20;

{% hint style="success" %}
Add new campaigns for specific products/collections, or quickly start with [Global restock campaign](/xflow-app/getting-started/quick-start-guide/global-restock-campaign.md)
{% endhint %}

This guide walks you through setting up and launching a new campaign step by step.

{% hint style="info" %}

## Before you begin

Make sure you have:

* At least **one active workflow**
* An **email template** ready (or use a pre-built one).
  {% endhint %}

{% stepper %}
{% step %}

### Add a new campaign

{% hint style="success" %}

1. From the XFlow dashboard, navigate to **Campaigns** from the left sidebar.
2. Select **Create campaign**.
   {% endhint %}

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

This opens the campaign setup screen.
{% endstep %}

{% step %}

### Add Campaign details

Fill in basic information to identify your campaign.

* **Campaign name:** Internal name for management
* **Description (optional):** Internal notes for your team
  {% endstep %}

{% step %}

### Define scope and target

Define which products this campaign applies to.

You can choose:

* **Specific products**
* **Specific collections**

Additional options:

* **Priority:** Higher numbers take precedence if campaigns overlap
* **Enable for logged-in customers only** *(optional)*

{% hint style="info" %}
*Wish to apply the campaign to all products?* Use [Global restock campaign](/xflow-app/getting-started/quick-start-guide/global-restock-campaign.md)
{% endhint %}
{% endstep %}

{% step %}

### Assign notification workflows

Assign workflows that run when products are restocked.

* **Primary workflow** *(required):* Sends the main back-in-stock notifications
* **Secondary workflow** *(optional):* Used for additional actions (e.g. internal alerts, welcome emails)

:heavy\_check\_mark: When a product in this campaign is restocked, XFlow triggers the assigned workflow(s).

{% hint style="info" icon="star" %}
Pro tips:&#x20;

* Keep the primary workflow focused on customer notifications
* Use secondary workflows for internal or supporting automation
  {% endhint %}

*Learn more about* [Workflows](/xflow-app/workflows/overview.md)
{% endstep %}

{% step %}

### Schedule campaign

Decide when the campaign should run.

* **Start date & time**
* **End date** *(optional)*

{% hint style="info" %}
*Example:*&#x20;

* Set a start date for a new product restock next week, or leave it ongoing for continuous alerts.
* Set an end date for seasonal campaigns to avoid outdated alerts.
  {% endhint %}
  {% endstep %}

{% step %}

### Save and launch

{% hint style="success" %}

1. Review all settings
2. Click **Save**
3. Make sure the campaign status is **Active**
   {% endhint %}

Your restock campaign is now live 🚀
{% endstep %}
{% endstepper %}

{% hint style="info" %}
If campaigns aren’t behaving as expected:

* Check **status, scope, and priority**
* Confirm workflows are active
* Review inventory availability in Shopify

Our support team can help review your campaign setup anytime! [Contact us](#need-help)
{% endhint %}

## Related articles

{% content-ref url="/pages/bCi4U7usdliKcmj9rxnd" %}
[Campaigns: FAQs](/xflow-app/campaigns/campaigns-faqs.md)
{% endcontent-ref %}

{% content-ref url="/pages/iXt6mV3m8VlZbp1x6w2i" %}
[Workflows](/xflow-app/workflows/overview.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_create_and_launch_a_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/campaigns/create-and-launch-a-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.
