# Create a workflow ![image](https://docs-assets.foxecom.app/xflow-app/image_nMFA68Xo.png) ✨ Want a head start? Use our **workflow templates library**: [Get started with workflow templates library](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library) ## Create and set up a workflow ### Create a workflow 1. In the **XFlow** dashboard, go to the **Workflow** section 2. Click **Create workflow** to start a new workflow. ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(13)_9C3Bo0RP.jpg) ### **Define workflow name and trigger** Enter a name and select a workflow trigger (**Product restock** or **New subscriber**) to set up your new workflow. Learn more: [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(15)_JRC6JWjY.jpg) ### **Start creating a workflow** Not sure how workflows work yet? Check out [How workflows work](https://docs.foxecom.com/xflow-app/workflows/how-workflows-work) Click the plus () icon to add a **condition** or **action**, and build your workflow according to your needs. Hover over the block to **change** or **delete** the workflow block. ![image](https://docs-assets.foxecom.app/xflow-app/xflow_cixXoQ5h.gif) Click the block and select **Edit description** to add a custom description for your workflow. ![image](https://docs-assets.foxecom.app/xflow-app/xflow2_k7iOkOY4.gif) For a workflow condition, you can choose either the **True** or **False** branch to continue building the next actions. ![image](https://docs-assets.foxecom.app/xflow-app/xflow3_jPlkA1rs.gif) ### **Set up your workflow** Select an available **action** or **condition** to define what happens in your workflow. 👉 Check out these articles to learn more about workflow conditions and actions: * [Understanding workflow conditions](https://docs.foxecom.com/xflow-app/workflows/understanding-workflow-conditions) * [Understanding workflow actions](https://docs.foxecom.com/xflow-app/workflows/understanding-workflow-actions) ![image](https://docs-assets.foxecom.app/xflow-app/xlow2_EZbbGDa6.gif) ### **Run your workflow** Click **Save** and **Turn on workflow** to run the workflow you just created. ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(17)_R5KvDfNI.jpg) ### **Your workflow has been activated!** You can check again in the Workflow dashboard; the **Active** button is now turned **green**, indicating that the workflow is enabled. ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(18)_WZz9M6xo.jpg) ## Best practices for creating workflows **Pro Tip:** * Start faster by using our **workflow template library** instead of building from scratch: [Get started with workflow templates library](https://docs.foxecom.com/xflow-app/workflows/get-started-with-workflow-templates-library) * After setting up your workflow, don’t forget to test it to make sure it works as expected: [Test an email campaign](https://docs.foxecom.com/xflow-app/campaigns/test-an-email-campaign) * Keep an eye on how your workflow runs: [Recent runs](https://docs.foxecom.com/xflow-app/workflows/manage-workflows#recent-runs) * A well-designed workflow follows clear logic and helps you reach the right customers at the right moment, without unnecessary or missing steps: [Common mistakes when creating workflows](https://docs.foxecom.com/xflow-app/workflows/workflows-faqs/common-mistakes-when-creating-workflows) ## Related articles Assign a workflow to your campaign Email templates Available triggers, actions, and conditions Manage workflows Workflows: FAQs