back arrow
All Blogs
Guide to using Brevo Template Language for personalized emails

How to Use Brevo Template Language

Are proprietary template languages delaying your email personalization efforts? Relax! Discover how to use Brevo’s template language doc-free....

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:

  • Placeholders: Add variables that are automatically replaced with recipient-specific data when the email is sent.
  • Conditional logic: Show or hide content blocks based on attributes or parameters using “if” conditions.
  • Loops: Repeat sections of content using “for” loops.
  • Filters: Format or modify different placeholder values.
  • Personalization: Dynamically adjust not only the body of the email, but the subject line and preview text as well. 

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:

  • {{contact.FIRSTNAME}}
  • {{contact.EMAIL}}
  • {{contact.MANAGER}}
  • {{mirror}} (“View in browser” link)
  • {{unsubscribe}}
  • {{update_profile}}

(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.

First name value brevo templating language

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:

  • You can apply simple IF conditions to blocks using the Block Visibility feature.
  • Use IF conditions to display or hide entire sections of your email depending on contact attributes (like gender, membership status, or purchase history), and transactional parameters, or dynamic lists.
  • Display different promotions, offers, or images depending on what you know about the recipient, such as their purchase history, favorite color, or their browsing behavior.
  • Use IF/ELSE statements to create multiple branches of content. For example, you can display one message for new contacts and a different one for returning contacts.
Block visibility section

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:

  • Use the drag-and-drop editor’s Repeat block (or Dynamic list) to easily add repeatable sections for each item in a list.
  • For advanced customization, you can manually add a for loop in your template.

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. 

 loops in Brevo templating language

(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:

  • Modify the case to change the appearance of text.
  • Insert fallback values where contact attributes are missing.
  • Combine several filters in one placeholder to apply multiple transformations in sequence. 

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:

  • Address the customer by name in the subject, preview text, and the body proper.
  • Include the main purchased product in the subject line.
  • Offer a special discount code to customers in London, and
  • List all items in the order within the email body

Let’s take it one step at a time.

  • Subject line: Using Brevo personalization tags, you can add a subject line that will adapt dynamically as shown.
subject lines using Brevo personalization tags

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

  • Preview text: Same for the preview text. It will also update dynamically as follows. 
using Brevo template language in Preview text

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

  • Email body: Finally, in the body proper, you list all the items purchased and the special discount offer. 
 using custom tags in email body

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! 

Did you like this post? Do share it!
Avatar photo

Susmit Panda - Content writer

A realist at heart and an idealist at head, Susmit is a content writer at Email Mavlers. He has been in the digital marketing industry for half a decade. When not writing, he can be seen squinting at his Kindle, awestruck.

Leave a Reply

Your email address will not be published. Required fields are marked *

YOU MAY ALSO LIKE