# Source: https://docs.unifygtm.com/reference/sequences/template-variables.md

> ## 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 on 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" data-og-width="960" width="960" data-og-height="719" height="719" data-path="images/template-var-1.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/template-var-1.png?w=280&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=b0c057a483326216164f31dbff43e04f 280w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/template-var-1.png?w=560&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=990979614ea3b237a14df2be6de35502 560w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/template-var-1.png?w=840&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=7ff229d96eeb8da3a66befac1416f7ef 840w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/template-var-1.png?w=1100&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=ee6181db63dee7f70c0813cfca25184d 1100w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/template-var-1.png?w=1650&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=7fb572bf7c4bdd3824a8e176dccfaba5 1650w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/template-var-1.png?w=2500&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=6e69df735e04adfb1c752756c06ba98c 2500w" /></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" data-og-width="960" width="960" data-og-height="720" height="720" data-path="images/template-var-2.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-2.png?w=280&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=9c36198a3c828914997616e3bfacfd6a 280w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-2.png?w=560&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=51544e3c819655b301578115a989a297 560w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-2.png?w=840&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=adcd570cabd34d8eac23bee52197a632 840w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-2.png?w=1100&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=a8d77013e6df25af2d383be327f01c3c 1100w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-2.png?w=1650&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=05939758a7b69700024d630d79de04ab 1650w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-2.png?w=2500&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=60e86f12d0d15d21e878d6e95b005942 2500w" /></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" data-og-width="960" width="960" data-og-height="721" height="721" data-path="images/template-var-3.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-3.png?w=280&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=5a187e233c373be54819847284f8acca 280w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-3.png?w=560&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=480a7343fa246378b98698b6006aa3a2 560w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-3.png?w=840&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=2ca266ec16f278e4f030090de5d2068d 840w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-3.png?w=1100&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=e1c8f7871dc366d0d80f3b55ef8b5f28 1100w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-3.png?w=1650&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=7a997c7f6f518886f2731218f7842b25 1650w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-3.png?w=2500&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=cfe8c015dec3fed72bbbda6e7bb764d8 2500w" /></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" data-og-width="1420" width="1420" data-og-height="1010" height="1010" data-path="images/template-var-4.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-4.png?w=280&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=a62fb385ff4d529ceef771c30bd24c21 280w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-4.png?w=560&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=f0ed2fdb946083f031d709095e961936 560w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-4.png?w=840&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=0485eeea28cafaf21503e2a7cc3fa964 840w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-4.png?w=1100&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=7506630cf62501d7bb510f253795f737 1100w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-4.png?w=1650&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=1923d23c72e4559d02fe86eaed6aa7cf 1650w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-4.png?w=2500&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=c55832e3ad25bae8a3cbb18836d5fcef 2500w" /></Frame>

Blocked enrollments can be seen on the sequence details page. You can click on 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" data-og-width="1420" width="1420" data-og-height="1010" height="1010" data-path="images/template-var-5.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-5.png?w=280&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=2813396aa42590e12f12ab2097d10731 280w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-5.png?w=560&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=5475ca6ecd95bcef25b0c708d3c52401 560w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-5.png?w=840&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=c4524779caa7cf0e731cc59d470b6263 840w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-5.png?w=1100&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=451cf3409d53324425f77ed90e800d98 1100w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-5.png?w=1650&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=66f6b4c3d70d1ce5a90ebbc5664fdc10 1650w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-5.png?w=2500&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=2d6ecb4d736994359594f068525e640d 2500w" /></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" data-og-width="1420" width="1420" data-og-height="1010" height="1010" data-path="images/template-var-6.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-6.png?w=280&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=a04c57b2b03d9ae9a2817b71cfba3752 280w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-6.png?w=560&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=fd03f41a0c69add20a6121362615035e 560w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-6.png?w=840&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=d741375a98928586c915a4a9ea7514d9 840w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-6.png?w=1100&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=815a2a29a616359a030f3d7251857ee0 1100w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-6.png?w=1650&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=250cd2cca1f37e52fa54d80870703659 1650w, https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/template-var-6.png?w=2500&fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=c9ab78515606c4f9911d9e332721e74d 2500w" /></Frame>

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

### 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" data-og-width="2881" width="2881" data-og-height="2048" height="2048" data-path="images/reference/sequences/snippets.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets.png?w=280&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=c5f5b69bc4593ae5da52a7a46e62c4e9 280w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets.png?w=560&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=b7d1477eb7fc289fa8322ebf961ddea3 560w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets.png?w=840&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=907af6dd79b67fe207010c15a0dbdc31 840w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets.png?w=1100&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=518dc1dc227ca3853ad0bad0467d33d4 1100w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets.png?w=1650&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=95fdda1a77af468d32d1eee8ad80bb9e 1650w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets.png?w=2500&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=6f13df0dd54f702cbd11727cefddfeb6 2500w" />
</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" data-og-width="2881" width="2881" data-og-height="2048" height="2048" data-path="images/reference/sequences/snippets-fallback.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets-fallback.png?w=280&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=86474464c9a765a99e7a354202d67223 280w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets-fallback.png?w=560&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=51d349e22ab75a519d76520df9b7e041 560w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets-fallback.png?w=840&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=71a4ccc354418a768618e762d1a09b5e 840w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets-fallback.png?w=1100&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=3e93b2a62842e8adfef71dff9ab5a2d0 1100w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets-fallback.png?w=1650&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=b711460ec606b52c7a1e0845a6730268 1650w, https://mintcdn.com/unify-19/2bGCds6YQ9Qo4--E/images/reference/sequences/snippets-fallback.png?w=2500&fit=max&auto=format&n=2bGCds6YQ9Qo4--E&q=85&s=6a991e9c2139f7c3fc34277a80599a08 2500w" />
</Frame>

The fallback will be used in the event that 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.