---
title: "How to add a first name to an email, SMS, or push message"
description: "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."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/11613154130843"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/11613154130843.md"
locale: "en-us"
category: "Content"
section: "Use variable syntax and tags"
updated: "2026-10-27"
---

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

## 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

1. Open a message (i.e., email, SMS, or push) in Klaviyo. 

2. Click where you want the first name to appear in the text field, then click the **Add personalization** icon (person icon).

3. Select **First name** from the list.




![Image](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/a595acbd90b9d0d749364877b92fc51d11385dc7-2102x948.png?auto=format)

4. Optional: in the **Default text** field, add text to display to recipients whose first name is not set. For example, if you have a line that says "Hey FIRST_NAME," you can use *there* as the default text. 

   - If a recipient’s first name is not set, this example will read "Hey there,". Without default text, the first name is left blank, so the greeting would read "Hey ,".

5. Optional: choose an option under **Capitalization**: 

   - **As typed**
The recipient's name will appear as it appears on their profile. 

   - **Ag** (i.e., title case) 
The recipient's name will be converted to title case (e.g., mary jane becomes Mary Jane). 

   - **AG** (i.e., upper case) 
The recipient's name will be converted to all upper case letters. 

   - **ag** (i.e., lower case) 
The recipient's name will be converted to all lower case letters. 

6. Click **Insert**.

7. Review the inserted variable. If you set *there* as the default text and choose **Ag** (title case), it uses `{{ person.first_name|title|default:'there' }}`. The editor can display this as a **First name OR there** label. The shorter `{{ first_name|title|default:'there' }}` form also works.

8. Preview your message before sending to check the name and fallback text. Use a profile with a first name and one without a first name to check both results. Learn how to [choose a profile in the preview panel](https://help.klaviyo.com/hc/en-us/articles/27843522951707.md).



When you send the message, this tag will be replaced with each recipient’s name, or your default text if their first name is not set. 

## 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](https://help.klaviyo.com/hc/en-us/articles/360058907911.md).

## Additional resources

- [Message personalization reference](https://help.klaviyo.com/hc/en-us/articles/4408802648731.md)
  Learn how to use Klaviyo’s personalization variables, or tags, to customize the experience for your customers.
- [How to use the preview panel for message personalization](https://help.klaviyo.com/hc/en-us/articles/27843522951707.md)
  Learn how to use the preview panel to understand the personalization data available for your messages and how to access personalization variables. Use the preview modal as your source of truth for personalization options. 
- [Guide to the email template editor](https://help.klaviyo.com/hc/en-us/articles/4407911841435.md)
  Learn about Klaviyo’s drag-and-drop email template editor, including how to use template styles and configure each block type. 
- [SMS marketing strategies for all levels [+12 Pro tips]](https://www.klaviyo.com/blog/sms-marketing-strategies)
