# Send a back in stock notification

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

Send a **transactional email** to customers who requested a **restock alert**. Once **the product is restocked**, this automation will send a transactional email **notifying interested customers** that the product is now available for purchase.

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

{% step %}

### Action – Send email

Sends an email to **customers who requested a restock notification**

{% hint style="success" %}

1. Enter the **email subject**.
2. Select the **email template** used to notify customers that the product is back in stock.
   {% 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/lSeWekHf3Xc7aUebSO3i" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="success" %}
Once set up, you’ve completed a **basic workflow** that automatically informs customers when a product is back in stock.
{% endhint %}

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

* If you want to add more advanced logic, you can extend this workflow by adding additional **conditions, actions:** [Available triggers, actions, and conditions](/xflow-app/workflows/available-triggers-actions-and-conditions.md)
* **Personalize the email** using variables such as customer name, discount code, or store name: [Understanding personalization variables in email templates](/xflow-app/email-templates/understanding-personalization-variables-in-email-templates.md)
* If you’d like to **apply this workflow to all out-of-stock products** in your store, check out [Global restock campaign](/xflow-app/getting-started/quick-start-guide/global-restock-campaign.md)
  {% endhint %}

## Common use cases

The **Send a back in stock notification** workflow template is commonly used when:

* Products frequently go out of stock and are restocked later.
* Customers request restock alerts for popular items.
* You want to recover lost sales from out-of-stock products.
* You want to automate restock notifications instead of sending them manually.

***

#### 📩 **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_send_a_back_in_stock_notification&#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/send-a-back-in-stock-notification.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.
