Template Variables
Use double curly braces to insert lead data into your email templates. Variables are replaced with actual values when the email is sent.Available Variables
These standard variables map directly to lead fields:| Variable | Description | Example Value |
|---|---|---|
{{first_name}} | Lead’s first name | John |
{{last_name}} | Lead’s last name | Doe |
{{full_name}} | First + last name combined | John Doe |
{{email}} | Lead’s email address | [email protected] |
{{company}} | Company name | Acme Inc. |
{{title}} | Job title | Marketing Manager |
{{phone}} | Phone number | +1 555-1234 |
{{linkedin}} | LinkedIn profile URL | https://linkedin.com/in/johndoe |
{{website}} | Website URL | https://acme.com |
Custom Field Variables
Any custom fields stored on a lead can also be used as variables:customFields object when creating or updating a lead:
Fallback Values
If a variable has no value for a particular lead, you can provide a fallback using the pipe| syntax:
first_name is missing, the email will read “Hi there,” instead of “Hi ,” with an awkward blank.
Spin Syntax
Spin syntax creates random variations of your email content. This helps improve deliverability by making each email unique, which avoids spam filter detection for bulk sends.How It Works
Wrap alternative phrases in single curly braces, separated by pipes:Examples
Input:Syntax Rules
Spin syntax
Single braces with pipes:
{option1|option2|option3}Used for email text variation.Variables
Double braces:
{{variable_name}}Used for lead personalization.- Spin blocks require at least two options separated by
| - Spin blocks cannot be nested —
{Hello {there|friend}}is not supported - Empty options are not allowed —
{Hi||Hey}will cause a validation error - Variables and spin syntax can be combined freely in the same template
Using in the API
Bothsubject and body fields in templates support variables and spin syntax: