# Send a back in stock notification ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(31)_bpyroqVa.jpg) Not sure where to use this template? Check out [Get started with workflow templates library](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library) ## 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 ### Trigger – Product restock The workflow starts when a product is restocked and becomes available again. 📝 Learn more about triggers: [Understanding workflow triggers](https://docs.foxecom.com/xflow-app/workflows/understanding-workflow-triggers) ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(29)_VGgOC8gg.jpg) ### Action – Send email Sends an email to **customers who requested a restock notification** 1. Enter the **email subject**. 2. Select the **email template** used to notify customers that the product is back in stock. If you don’t have an **email template** yet, check out [Create an email template](https://docs.foxecom.com/xflow-app/email-templates/create-an-email-template) Read more about the **variables** you can use in email: [Available variables in email templates](https://docs.foxecom.com/xflow-app/email-templates/understanding-personalization-variables-in-email-templates/available-variables-in-email-templates) ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(28)_lSeWekHf.jpg) Once set up, you’ve completed a **basic workflow** that automatically informs customers when a product is back in stock. **🌟 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](https://docs.foxecom.com/xflow-app/workflows/available-triggers-actions-and-conditions) * **Personalize the email** using variables such as customer name, discount code, or store name: [Understanding personalization variables in email templates](https://docs.foxecom.com/xflow-app/email-templates/understanding-personalization-variables-in-email-templates) * If you’d like to **apply this workflow to all out-of-stock products** in your store, check out [Global restock campaign](https://docs.foxecom.com/xflow-app/getting-started/quick-start-guide/global-restock-campaign) ## 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.