How to use Spintax?
Raul Kaevand avatar
Written by Raul Kaevand
Updated over a week ago

Creating variations of sentences or words is pretty straightforward and can help you generate even more diverse email bodies for your leads.

{{RANDOM | Hello | Hi | Greetings!}},

Cold email example:

{{RANDOM |Hi | Hello | Hey}} {{firstName}},

I’d love to {{RANDOM |learn | hear | find out}} more about the way you {{RANDOM|handle | manage | deal with}} sales at {{companyName}}. One of our clients, CASE STUDY, managed to {{RANDOM|increase | boost | raise}} their sales by over 20%. If they continue at this rate, they’ll soon close 2x more business than last year.

{{RANDOM|Can I give you a quick call anytime next week to show you more? | Do you have any time this or next week for a quick chat about this? | Do you have any slots open for a quick chat in the coming days to see if we can do the same for you?}}

{{RANDOM | Best, | Regards, | Cheers,}}

Using placeholder values

Please note that if you try to set variables in your spintax in the email sequence, you will run into Liquid Syntax Error. We don't support Variable Chaining feature at the moment.

For example: - {{RANDOM |Pay-Per-Appointment Meetings|Quick question {{firstName}}}}

Here {{firstName}} cannot be used inside the spintax.

The correct spintax would be: {{RANDOM |Pay-Per-Appointment Meetings | Quick question}} {{ firstName }}

You can use placeholder values for missing variables, but can't use variables as placeholder values for another variable.

To use placeholder value for missing variables, put "{{companyName | your company }}" or "Hi {{firstName | there}}".


Using variable data to change your copy

An example would be -

{% if position == "founder" %} As founder, you have to learn to delegate. {% endif %}

This assumes that the lead has a variable called “position” that is set to “founder”. This is case-sensitive, so the variable name and value need to be exactly the same as what you have in your leads list.

However - the variable “position” needs to be within your email body to actually populate the email. Now you can either place the variable in your email copy somewhere for this to work, or we have a workaround for this - you can basically add the variable "position" at the end of your email copy, and then set it to be hidden in the actual email (so it's part of the HTML, but not visible to the leads in their email)

To start off, you just put your example down in the email copy like so -

  • And then, switch to 'Code View'

  • Now, at the bottom of your email copy, just add this line

<div style="display: none;">{{Position}}</div>

What this line does, is just add your variable 'Position' (as mentioned before, these variables are case-sensitive both in the conditional logic and in this line) and then set it to be hidden.

You can also just copy and paste this same line and change the variable name for all such variables as part of your conditional logic. In preview, you'd then see the copy show up with the conditions, but without requiring to actually have/show the variable in your copy.


Did this answer your question?