Email Templates
Understanding personalization variables in email templates
3 min read
Before you begin
If you’re new to designing email templates, check out this guide to get started: Design your email templates
What are variables
Hi {{customer.name}}Thanks for purchasing {{product.title}} from {{shop.name}}.
Types of variables

| Variable | Description |
|---|---|
| customer | Data related to customer information, such as name or email address. |
| product | Data related to the product, such as product name, price, or description. |
| shop | Data related to your store, such as shop name or contact details. |
| variant | Data related to a specific product variant, such as size, color, or SKU. |
| Custom variables | Custom values created by you to fit specific needs. |
More about variables in XFlow: Available variables in email templates
How to use variables to personalize your email
Add variables to your email
Learn more about workflow actions: Understanding workflow actions
Learn more: Design your email templates
_cJgC5fYM.jpg)
Your email is successfully personalized!
Want to make sure your variables are working perfectly? Check out Test an email campaign
_9oFkkNDI.jpg)
Benefits of using variables
- Personalized customer experience: Automatically tailor emails with customer, product, or order details to create a more personal connection.
- Higher engagement rates: Personalized subject lines and content are more likely to be opened, read, and clicked.
- Time-saving and scalable: Create one email template and use variables to dynamically populate content for many customers.
- Consistent and accurate messaging: Reduce manual edits and human errors by pulling data directly from your system.
- More relevant content: Show the right information (such as product names or order details) at the right time.
Common use cases of using variables
| Variable | Common use cases | Example |
|---|---|---|
| customer | Email greetings that mention the customer’s name and personalize the message. | Hi {{customer.first_name}}, thanks for signing up! |
| product | Showing product details such as product name in the email content. | {{product.title}} is back in stock! |
| shop | Adding store information for branding or support purposes | You’re receiving this email from {{shop.name}}. |
| variant | Showing specific product variant details such as size or color | You selected size {{variant.size}} in {{variant.color}}. |
| Custom variables | Adding custom messages, links, or values you want to control. | If you no longer wish to receive these emails, you can unsubscribe here: {{unsubscribe_link}} |
Related articles
Create an email template
Design your email templates
Preview and test your email
Use email templates in campaigns and workflows
Email templates: FAQs
Last updated
_wW4vPKZ0.jpg)