# 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)
_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.
_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)
_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)
_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