# Manage new customer sign up and restock workflow ![Workflows tab of the Global campaign in XFlow](https://docs-assets.foxecom.app/xflow-app/f0ef6ae3-bbc8-424f-96c5-771c048652a1.png) Workflows decide what XFlow sends to shoppers, and when, after they sign up for a back in stock alert. Each back in stock campaign runs two workflows: one for new sign-ups and one for restocks. ## How workflows run in your back in stock campaign A workflow is a sequence of steps that runs automatically. Every workflow has three parts: * **Trigger:** the event that starts the workflow, such as a product coming back in stock. * **Conditions:** checks that send shoppers down different paths, such as whether they opened the first email. * **Actions:** the steps XFlow carries out, such as sending an email, waiting or adding a customer tag. When the trigger happens, XFlow adds the shopper to the workflow and runs each step in order. The shopper leaves the workflow after the last step. Your back in stock campaign includes the following two workflows: | Workflow | When it runs | What it does by default | | -------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | | **Restock workflow** (required) | When a product a shopper signed up for is back in stock. | Sends the first notification, waits 2 days, then sends a follow-up if the shopper hasn't purchased. | | **New customer sign-up workflow** (optional) | When a shopper submits the **Notify me** form on your store. | Runs extra actions after a sign-up, such as a confirmation or welcome email, or an alert to your team. |
Workflows don't need to be turned on separately. When you activate the campaign, its assigned workflows become active too. ## Open a workflow in the workflow builder 1. Go to **XFlow > Back in stock > Campaigns**. 2. Open **Global campaign**. 3. Select the **Manage workflows** tab. 4. Click **Edit workflow** next to the workflow you want to change. ![Manage workflows tab with the Edit workflow button for each workflow](https://docs-assets.foxecom.app/xflow-app/5e81c84f-bde2-4384-9a1d-6942b638b4a2.png) ## Customize a workflow ![workflow](https://docs-assets.foxecom.app/xflow-app/15874a91-5c84-4928-a2ea-0af5551b2441.png) The following articles cover each part of the workflow builder. Start with the workflow builder, then set up actions and conditions, and preview the result before shoppers receive it. ## Switch between horizontal and vertical layouts The workflow builder offers two layouts. The layout changes only how the workflow is displayed, not how it runs. * **Horizontal flow:** shows the whole workflow in one compact view. This layout suits short workflows with few steps. * **Vertical flow:** shows the workflow step by step from top to bottom. This layout suits long workflows with many steps or branches. ![Workflow displayed in the horizontal flow layout](https://docs-assets.foxecom.app/xflow-app/62b6ae33-fedb-4d2f-9e65-3701cbb96e8f.png) ![Workflow displayed in the vertical flow layout](https://docs-assets.foxecom.app/xflow-app/2ee6bc01-947f-4259-9223-0743bdc35d60.png) ## Rename, pause or remove a workflow Open the workflow menu to choose one of the following options: * **Rename workflow:** changes the workflow name. * **Save as template:** saves the workflow as a reusable template. For details, see [Start from a workflow template](https://docs.foxecom.com/xflow-app/back-in-stock/manage-new-customer-sign-up-and-restock-workflow/start-from-a-workflow-template). * **Pause workflow:** stops the workflow from running until you resume it. * **Remove workflow:** removes the workflow from the campaign. Only the optional **New customer sign-up workflow** can be paused or removed. The **Restock workflow** sends the back in stock alert, so it is always active while the campaign is active. ![Workflow menu with the Rename, Save as template, Pause and Remove options](https://docs-assets.foxecom.app/xflow-app/7f845596-f06c-4575-a6bd-1a947348220f.png) ## FAQs No. When the campaign is active, its assigned workflows are active too. Click **Save** in the workflow builder to apply your changes. No. The Restock workflow is required because it sends the back in stock alert. Only the optional New customer sign-up workflow can be paused or removed. No. The workflow is optional. Use it to run extra actions after a sign-up, such as sending a welcome email or alerting your team. ## Related articles Set up your back in stock campaign