Skip to main content

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.
Result for John at Acme Inc:

Available Variables

These standard variables map directly to lead fields:
You can also use camelCase variants: {{firstName}}, {{lastName}}, {{fullName}}, {{jobTitle}}.

Custom Field Variables

Any custom fields stored on a lead can also be used as variables:
Custom fields are set via the 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:
If 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:
Each time an email is sent, one option is randomly selected from each spin block. This single template produces 12 unique variations (3 x 2 x 2).

Examples

Input:
Possible output 1:
Possible output 2:

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

Both subject and body fields in templates support variables and spin syntax:
Spin syntax in the subject line is powerful but use it carefully — make sure every variation makes grammatical sense.