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
- Open a message (i.e., email, SMS, or push) in Klaviyo.
- Click where you want the first name to appear in the text field, then click the Add personalization icon (person icon).
- Select First name from the list.

- 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 ,".
- 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.
- As typed
- Click Insert.
- 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. - 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.
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.
Additional resources
- Message personalization reference
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
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
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]