# Flash sale notification for back in stock

<figure><img src="/files/SZUKOxnsPIWkPsBl5OSy" 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 **popular item is back in stock**, create a **time-limited discount code** and send an urgent **notification to customers who subscribed for alerts**. Perfect for creating FOMO.

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

{% stepper %}
{% step %}

### Trigger – Product restock

The workflow starts when a product is restocked and becomes available again.

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

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

{% step %}

### Action – Create discount code

Create a **time-limited flash sale discount code** that will be used specifically for this restock moment. This adds urgency and gives customers a little extra push to buy now.

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

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

{% step %}

### Action – Send email

Send an **urgent flash sale notification email** to customers, highlighting that the product is back and the discount is only available for a short time.

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

{% hint style="success" %}
That’s it! With this workflow in place, customers are notified the moment an item is restocked, paired with a flash sale to encourage fast action.
{% endhint %}

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

* Keep the discount **short-lived** to create real urgency (e.g. “Valid for 24 hours”).
* Use strong subject lines like *“Back in stock — flash sale inside!”* to boost open rates.
* Make sure the discount code is **easy to apply** and clearly visible in the email.
  {% endhint %}

## Common use cases

The **Flash sale notification for back in stock** workflow template is commonly used when:

* You want to **drive quick sales** as soon as a product is restocked.
* You’re running a **limited-time flash sale** and need to create urgency.
* You want to **re-engage customers** who showed interest in out-of-stock products.
* You want to **clear inventory fast** by combining restock alerts with a time-limited discount.

***

#### 📩 **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_flash_sale_notification_for_back_in_stock&#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/flash-sale-notification-for-back-in-stock.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.
