How to add a first name to an email, SMS, or push message

Estimated 2 minute read
|
Updated Dec 23, 2024, 12:03 PM EST
You will learn

You will learn

Learn how to add a variable that dynamically populates a recipient’s first name in an email, SMS, or push message. These are supported in campaigns and flows, the body of any message, and an email’s subject line. 

Add a first name variable

Add a first name variable

  1. Open a message (i.e., email, SMS, or push) in Klaviyo. 
  2. Click the personalization icon from a text field's formatting bar.
  3. Select First name from the list.
  4. Optional: in the Default text field, add text to display to recipients whose first name is not set. For example, if you’re adding a first name to a line that says “Hey FIRST_NAME,” you can use there as the default text. 
    1. If a recipient’s first name is not set, their message will read “Hey ,” instead of “Hey there,”. 
  5. Optional: Choose an optional from the Capitalization menu: 
    1. As typed
      The recipient's name will appear as it appears on their profile. 
    2. Ag (i.e., title case) 
      The recipient's name will be converted to title case (i.e., the first letter will be capitalized and all other letters will be lowercase). 
    3. AG (i.e., upper case) 
      The recipient's name will be converted to all upper case letters. 
    4. ag (i.e., lower case) 
      The recipient's name will be converted to all lower case letters. 
  6. Click Insert.
  7. Note the tag that appears: {{ first_name|title|default:'there' }} (if you set there as the default text and choose Ag (i.e., title case). 

When you send the message, this tag will be replaced with each recipient’s name. 

Customize your first name variable

Customize your first name variable

In the example above, |default:'there' and |title are filters. Klaviyo offers a wide range of filters to customize how variables appear. Learn more about using filters in Klaviyo

Additional resources

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type