# Use email templates in campaigns and workflows Before you assign an email template, make sure you’re familiar with the basics: * Take a look at our guide on creating a workflow: [Create a workflow](https://docs.foxecom.com/xflow-app/workflows/create-a-workflow) * Check out how to create a campaign: [Create and launch a Restock campaign](https://docs.foxecom.com/xflow-app/campaigns/create-and-launch-a-restock-campaign) ## Assign an email template to a workflow ### Assign an email template to the “Send email” action In the **Send email** action of the Workflow builder, click **Select template** to assign the desired email template. Add variables to make your subject lines dynamic. 📝 Learn more: * [Create an email template](https://docs.foxecom.com/xflow-app/email-templates/create-an-email-template) * [Understanding personalization variables in email templates](https://docs.foxecom.com/xflow-app/email-templates/understanding-personalization-variables-in-email-templates) ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(96)_DqwcQewu.jpg) ### Select an email Select one email template from the list of templates you’ve created — only one template can be selected at a time. ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(97)_pEjaAaNs.jpg) ### Check and save your workflow Review the assigned email template to ensure it’s correct. You can choose to **Edit** or **Remove** the template if needed. Don't forget to add content to the Custom variables section to personalize your email. Click **Save** to apply the changes to your workflow. Learn more: [Add custom variables](https://docs.foxecom.com/xflow-app/email-templates/understanding-personalization-variables-in-email-templates/available-variables-in-email-templates#add-custom-variables) ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(73)_GKsJGjVf.jpg) ## Multiple email templates per Campaign For each back-in-stock campaign, merchants can assign different email templates to each workflow step. Learn more: [Create a workflow](https://docs.foxecom.com/xflow-app/workflows/create-a-workflow) ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20(74)_UT0ljfZm.jpg) ## Related articles Explore pre-built email templates Create an email template Design your email templates Understanding personalization variables in email templates Preview and test your email