Spintax
Vary the wording of campaign emails with spintax, so each email a step sends uses the next option in turn instead of identical text.
Spintax lets one campaign email go out in several wordings. You write the alternatives in braces, separated by a bar, and each email the step sends uses the next option in turn. A large send then isn't a stream of identical emails, which inboxes are quicker to flag as spam.
Writing spintax
In an email step's body, put the options in braces with a | between them:
{Hi|Hello|Hey} {{first_name}}, {quick|short} question about your team.- Any number of groups. Each group varies on its own: the example above has 3 × 2 = 6 variations.
- Nesting. A group can hold another group, anywhere in an option:
{Hi|{Hello|Hey} there}gives "Hi", "Hello there" and "Hey there", and{{Hello|Hey} there|Hi}gives "Hello there", "Hey there" and "Hi". Each of those examples has 3 variations. - Empty options. Leave an option empty to sometimes leave a word out:
{really |}sends "really " or nothing. - Variables inside options. Lead variables work inside a group:
{Hi {{first_name}}|Hello}. - Plain braces stay as written. Braces without a bar, such as
{note}, and variables such as{{first_name}}are not spintax and are sent exactly as typed. - There is no escape syntax. A group with a bar is always spun. If your email needs a literal
{a|b}, it can't be written: each email would send "a" or "b" instead.
To add a group, click the Insert spintax button in the step's toolbar. It inserts {option 1|option 2} with the first option selected, so you can type over it.
Spintax works in the email body, including the body of a saved email template used by a campaign step. It does not apply to SMS or WhatsApp steps.
Subjects are sent as written
Email subjects are never spun, and spintax only varies the body. The editor shows a note under the subject when it contains spintax, and publishing a campaign, or saving changes to one that is Active or Paused, is refused while any email subject (of either A/B version) holds a spintax group, because it would go to every lead with its braces. Move the alternatives into the body, or take the braces out of the subject.
How the wording rotates
- The 1st email a step sends uses the first variation, the 2nd email the second, and so on. After the last variation, it starts again from the first.
- With several groups, the first group changes fastest, and every combination is used before any combination repeats. For
{Hi|Hello|Hey} {there|friend}the order is "Hi there", "Hello there", "Hey there", "Hi friend", "Hello friend", "Hey friend". - Each email step keeps its own rotation. In an A/B tested step, version A and version B each rotate separately.
- Only emails that actually go out count. A lead who leaves the campaign before the email is sent, or an attempt that fails before sending, does not use up a variation. A retried send keeps the variation it was given.
- If you edit the options while a campaign is running, the rotation carries on from where it was instead of starting over.
Checking your variations
- Under the email body, a note shows how many variations the email has, followed by the line "Each email sent uses the next variation, in turn." and a link to this page. Counts of a million or more are shortened, for example "2.1B variations". In the Design view, every group in the body is tinted so you can see which words rotate.
- Until the body has spintax, the same place suggests trying it, with an example group.
- On the step's Preview tab, the preview shows Variation 1 of N. Click Next variation to step through them in the order they will be sent.
- When you enroll leads, the step preview shows the first variation with a note that the wording rotates per email.
Mistakes are caught
If a group is never closed, for example {Hi|Hello without the closing brace, the editor shows a warning under the body that points at the spot. A } that closes nothing is flagged the same way. Drafts still save, but the campaign can't be published until the brace is fixed, and an Active or Paused campaign can't save a change that leaves it broken. This check covers both A/B versions and the email templates a campaign uses. Text inside <style>, <script> and HTML comments is never touched, so CSS braces and bars are safe.
What each lead received
Before an email goes out, its scheduled copy in the campaign's Recipients tab shows the text as written, braces included. Once sent, it shows the exact words that lead received, and the lead's activity names the variation, for example Email sent · variation 2 of 12 (or Email sent · version B · variation 2 of 12 in an A/B tested step).