> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unifygtm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Template variables

> Use template variables to personalize your emails.

## Overview

Template variables are key to personalizing messages sent through Unify. You can
use template variables to insert dynamic values into your emails, such as a
person's name, company, or job title.

## Inserting variables

You can insert template variables into emails you write when creating Sequences
in Unify. To open the template variable dropdown, click the template variable
button in the Sequence Builder.

<Frame>
  <img src="https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/template-var-1.png?fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=bac2c0e11a9a8e13f353fe75d1824a7e" alt="template-var-1" width="960" height="719" data-path="images/template-var-1.png" />
</Frame>

You can also press **`{`** on your keyboard to open the template variable dropdown. Once open, you can select a variable and insert it into your email.

<Frame>
  <img src="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-2.png?fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=3d8c4031b5bf67fb9b37c7f22e1b3863" alt="template-var-2" width="960" height="720" data-path="images/template-var-2.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-3.png?fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=95f1cebb93806f8705e73f574fccda10" alt="template-var-3" width="960" height="721" data-path="images/template-var-3.png" />
</Frame>

When a Person is enrolled in this Sequence, this value will be filled in
dynamically.

## Handling missing data

### Enrollment blocking

Sometimes, Unify won’t have data to populate variables used in a Sequence email.
In these cases, Unify will never send an email with a placeholder or missing
value. Instead, Unify will *block* the Sequence enrollment.

<Frame>
  <img src="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-4.png?fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=b5db662068de02ec8dce6bbba21d1475" alt="template-var-4" width="1420" height="1010" data-path="images/template-var-4.png" />
</Frame>

Blocked enrollments can be seen on the Sequence details page. Click a blocked
enrollment to edit the message and manually fill in any missing values.

<Frame>
  <img src="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-5.png?fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=056909dd0c5dc7653de2d3d92c1b32ec" alt="template-var-5" width="1420" height="1010" data-path="images/template-var-5.png" />
</Frame>

The template variables with missing values will appear highlighted in orange.
Once you’ve replaced the missing values, click **Save** and the blocked status
will disappear.

<Frame>
  <img src="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-6.png?fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=e85da34feb1caf0ee17b162b597934d7" alt="template-var-6" width="1420" height="1010" data-path="images/template-var-6.png" />
</Frame>

The step will then be rescheduled and sent automatically as part of the
Sequence.

<Info>
  For other enrollment statuses and blocked-enrollment troubleshooting, see
  [Sequence enrollments](/reference/sequences/enrollments).
</Info>

### Snippets

To avoid having to manually unblock enrollments that are missing a value, it's
highly recommended that you take advantage of *snippets*.

Snippets are reusable blocks of copy that can be inserted into messages the same
as template variables. However, snippets also allow you to define fallback text
which is used if any template variables are missing values.

<Frame caption="A basic snippet with a single template variable.">
  <img src="https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets.png?fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=5d7c66e3f5407991b2f16106f6907343" width="2881" height="2048" data-path="images/reference/sequences/snippets.png" />
</Frame>

You can access snippets by navigating to the [Snippets](https://app.unifygtm.com/dashboard/snippets)
tab in the sidebar. When defining a snippet, you can use template variables or
even other snippets in the copy. Underneath the snippet text area, there is a
second text area where you can define a fallback.

<Frame caption="A snippet with fallback text in case the variable value is missing.">
  <img src="https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets-fallback.png?fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=5df038763d31df655c128638a25402ea" width="2881" height="2048" data-path="images/reference/sequences/snippets-fallback.png" />
</Frame>

The fallback will be used if any of the variables used in the copy are missing.
If you use snippets within snippets (which is called *snippet-ception*), the
fallback for the nested snippet will be used in the top-level snippet.
