Email Mavlers

How to Use Brevo Template Language

Guide to using Brevo Template Language for personalized emails

New ESP, new rules. The language changes, the code breaks, and you’re back to square one. 


But your priority? Running your business. You’ve got a loyal list to serve and not nearly enough time to master every new ESP that comes your way.

And let’s be honest—no one wants to dig through documentation every time you sit to pen the CEO’s weekly newsletter.

That’s where we come in. At Email Mavlers, we design and code over 3,000 templates a month, and we’ve worked with just about every major ESP out there. Today’s focus? Brevo.

You’re right! The quirks of a templating language shouldn’t hold you back from using the personalization tools you’ve got. Therefore, in this quick Brevo template guide, we’ll walk you through how to personalize your emails using Brevo’s template language. Let’s go! 

Brevo Template Language: Intro

So Brevo Template Language is a dynamic templating system used within Brevo to personalize and automate email content. 

Think of it as Brevo’s email design language, that’s all. 

Brevo Template Language has the following features:

Did all that sound too technical? Alright, let’s decode the features, one at a time, zero geek-speak. 

(Plus, in our final section, we’ll also show you how to use the Brevo templating language to personalize your emails.)

1. Placeholders

Placeholders “hold the place” for something. It could be a contact’s first name, their email address, or the unsubscribe link. 

Coming back, these are some of the Brevo template variables:

(Don’t worry about the Brevo template syntax. The variables will pop up automatically when you’re creating an email.) 

Take the FIRSTNAME value. Depending on the contact’s first name, it will change for each subscriber on your list.

What’s happening in the above image? 

When a subscriber clicks on “Forgot your password?” and receives the reset email, instead of a generic greeting, they’ll see something like “Hi Julia, we received a request to reset your password.” Again, for another subscriber, it might read “Hi Marcus,” and so on. 

The placeholder pulls in the right name for each person, making the message feel direct and personal

2. Conditional Logic

Conditional logic lets you show different content to different people based on their data. “If this, then that.” 

So your email adapts based on who’s reading it. 

In Brevo, conditional logic can do a lot of things:

Brevo’s conditional logic makes it possible to create highly targeted and dynamic email campaigns

3. Loops

Loops are useful for displaying a variable number of items, such as products in an order, or blog posts, directly within emails. 

You can set up loops in Brevo in two ways:

A “for” loop is a repeating helper that goes through a list or group of items, one by one, and does the same task for each item. 

If you want to show all products that a customer has brought, the code will generate a personalized list for each customer, displaying only the items relevant to them. 

(The image is from the Brevo template language documentation.) 

Say, a customer just placed an order for a smartwatch, wireless earbuds, and a charging dock. Instead of hardcoding each item into the email, a “for” loop scans the customer’s order data and automatically generates a list that says: “Smartwatch (Quantity: 1), Wireless Earbuds (Quantity: 2), Charging Dock (Quantity: 1).” 

Another customer who ordered completely different items—say, a Bluetooth speaker and a USB cable—will see only those items in their email. The loop handles this behind the scenes, making sure each customer sees a personalized order summary based on what they actually bought, not a one-size-fits-all message.

4. Filters 

Filters in Brevo allow you to modify how contact data appears in the emails you’ll be sending out. Using filters, you can:

In Brevo, filters are written manually in the template using double curly braces and a pipe (|) symbol, e.g., {{ contact.ATTRIBUTE|filter }}. This gives you granular control over how each piece of contact data is displayed in your emails.

5. Dynamic Personalization

Finally, you combine all that we covered so far to create emails that will adapt dynamically for every contact on your list. 

Now, let’s demo all this in action. From Brevo template variables to conditional logic to dynamic content:

An online electronics retailer called Electrickle (UK) wants to send personalized order confirmation emails to customers. 

Each email should:

Let’s take it one step at a time.

The output: Thank you, Jamie! Your Wireless Headphones order is confirmed.

The output: Your Wireless Headphones and more are on their way. View your full order inside!

The output: Hi Jamie,

Thank you for shopping with Electrickle! Your order is confirmed.

Order summary:

Wireless Headphones (Quantity: 1)

USB-C Charger (Quantity: 2)

🎉 As a London customer, enjoy £10 off your next order with code LONDON10!

We’ll send you another email once your items are dispatched.

Best regards,

The Electrickle UK Team

There you go! You created a dynamically personalized transactional email in Brevo’s drag-and-drop editor. LIKE. THAT. 

Wrapping Up

With a clear understanding of placeholders, conditions, loops, and filters, you now have the tools to deliver truly dynamic, relevant messaging without needing to pore over documentation every time.

And if you’d rather stay focused on your business while someone else handles the code and stuff? That’s where we come in.

Plain-text emails alone might not cut it. You want custom-designed, interactive emails, too, to keep the b in your brand.

At Email Mavlers, we help brands like yours create high-performing, fully personalized email templates across every major ESP, every single day. Whether it’s Brevo or any other platform, we speak the language so you don’t have to. Get in touch today! 

Exit mobile version