XFlow App
XFlow App

Available variables in email templates

3 min read
image

Data types supported by variables

Each variable has a data type that defines the kind of values it can contain. Knowing the data type helps you use variables correctly in your email content.

Data typeDefinitionExample
DateRepresents a specific date or date-time value.2026-02-05
StringA sequence of characters used to store text.Store name
NumberNumeric values, including integers and decimals.+14155551234
ObjectA collection of key–value pairs for structured data.email: hi@xflow.so
ArrayAn ordered list of values.vip, repeat-customer, newsletter-subscriber
BooleanA logical value that can be either true or false.True/False

Available variables

Variables are grouped by category:

Add custom variables

Add custom variables for a specific email template

Steps:

  1. Open an Email template.
  2. Select Edit configs and add the variable you want to the Custom variables field.
  3. Click Add.
image

Your custom variable is now available

Your custom variable will appear along with the code snippet below. You can edit or remove the custom variable whenever you want.

image

Use the variable in your email

Add that variable to the position you want within the email configs.

image

Add content for the variable

Steps:

  1. Go to the Workflow builder
  2. Add content to the variable field of that email template.
image
Explore pre-built email templates
Use email templates in campaigns and workflows
Email templates: FAQs
Last updated