Skip to main content

Hi there, 

We are trying to create a dynamic subject line and preview text to be sent depending on some triggers and variables. 

I can only find something related on dynamic tags, personalizations or lookups. What I’m looking for is to send a completely different subject and preview text.

Any help will be appreciated, thanks very much.

Welcome to the community @LauraGomez 

Can you provide some examples of what you’re trying to achieve with the subject/preview text?

Regards

Andy


Hi @LauraGomez 

In terms of creating dynamic subject lines, I believe this can be achieved using Django in the subject line field. You’d need to write out the different subject lines using an if-else conditions. 

The best resource I have found with the proper documentation to create this is below.

https://developers.klaviyo.com/en/docs/use_conditionals_in_messages

I wish there was an easier way to achieve this, but at the moment, this is the only way I know how to create dynamic subject lines. 

If you are able to provide specific examples as @bluesnapper requested above, we might be able to help figure out the right structure for the if-else conditions. 

I hope this helps!

@In the Inbox 


Hi @In the Inbox and @bluesnapper 

Thank you very much for your reply and help! I would like to send different subject lines and preview texts depending on the user’s language.

I tried the conditionals, and it seems to work! :) 

Thank you both again for your help!

Regards,

Laura


@In the Inbox Do you know how many characters Klaviyo’s subject line accepts? I’m having some problems saving the conditional subject line I want, not just a test, and I’m thinking that maybe it’s too long. Thank you!! 
Laura


No problem @LauraGomez 

I’m just curious as to why you are looking to personalise subject lines/pre-text by language in this way rather than using other, more straighforward, methods to deliver the appropriate emails? For example, profile filters in flows/emails or conditional splits. Or segmentation for campaigns.

I assume the body content of the emails is in their language too?

Regards

Andy 


Yes, the body content of the emails is also in their language. I wanted to optimizes the volume of the emails and flows, as our strategy requires us to send a large number of emails, and I need to reduce the quantity. I also use the profile filter and the conditional split in my flows, but I need to send the emails in 7 different languages. So, what I’m trying is to do is sent single email with conditionals in the email body and use the logic builder to create a personalized email based on the customer’s language. 

Thanks @bluesnapper 

Regards,

Laura


Hi @LauraGomez 

re your need to reduce emails sent, won’t the volume be the same with either approach? One email send to a unique user with dynamic content versus one email send to a unique user with static content. 

The latter approach is more reliable and less error prone too.

Or have  misunderstood something? I’m just trying to see what’s the simplest solution for your use case.

Regards

Andy


Hi @LauraGomez 

I did some digging on this and unfortunately, the Subject Line field is limited to 150 characters?! So, even though you can do dynamic subject lines, you are currently limited. I am going to submit a request to Klaviyo. This seems like a missed opportunity!

In the meantime, I think the only alternative is setting up different messages, one for each of your different subject lines.

I am sorry this ended up being a little bit of a deadend.

@In the Inbox 


Hi @In the Inbox 

Thank you so much for looking into this. No worries at all! I really appreciate the help, as it has given me a clearer understanding of the subject line options and allowed me to consider alternatives.

I completely agree! It does feel like a missed opportunity. Hopefully, they’ll expand the capabilities for subject lines sooner rather than later!

Thanks again for your support.

Regards,

Laura.

 


@LauraGomez Happy to help! I did submit a product request yesterday for this specific functionality. It sounds like its gaining some traction among users. Hopefully, its something we can see come to fruition in the near future.

Best,

@In the Inbox 


Reply