Templating syntax and personalization reference guide
Last updated: July 11, 2025
Overview
This guide contains available personalization tags for email and SMS.
For information on how to use templating syntax and personalization tags, see 📄 How to use templating syntax based personalization.
Standard personalization tags
The personalization tags below can be used in both email and SMS messages. The data for these tags (except the unsubscribe link) is stored in contacts' profiles.
Personalization name | Personalization tag | Display Example | Notes |
First Name |
| John | |
Last Name |
| Doe | |
Full Name |
| John Doe | |
| johndoe@sendlane.com | ||
Phone |
| +1123467895 | |
Unsubscribe |
| This link points to the subscription preferences page | |
Custom Field |
| Custom data | Replace |
Shopify and BigCommerce options
Standard Shopify and BigCommerce options
Use the syntax shown in the furthest left column of the table below in an email or SMS message in an automation using any of the noted triggers in the furthest right column:
Syntax | Notes | Automation triggers |
| Shows a checkout's:
| Abandoned Checkout Checkout Complete |
| Shows an order's:
| Order Placed |
| Shows a product's:
| Product Purchase Product Viewed Abandoned Product Viewed Order Fulfilled Order Cancelled Order Refunded Order Placed (Frequency) |
Advanced Shopify and BigCommerce options
You can use the json_encode function in an automation email using one of the triggers noted in the furthest right column to insert any additional data that your store may provide.
To see all available options:
Create an automation with at least one of the qualifying triggers noted in the table below
Add an email node to the automation
Add a text block to the email
Paste the order, product, or checkout syntax in the text box
Click Preview
Review available options (copy to a text file or paste into a JSON beautifier for easy reference)
Remove the syntax from the text block
Syntax | Notes | Triggers |
| Replace | Order Placed |
| Replace | Product Purchase Product Variant Purchase Product Viewed Abandoned Product Viewed |
| Replace  | Product Purchase Product Variant Purchase Product Viewed Abandoned Product Viewed |
Filters
Personalization tags can be modified by the filters below. In templating syntax filters are separated from personalization tags by a pipe symbol ( |).
Multiple filters can be used on the same personalization tag. When multiple filters are present, they cascade from left to right.
Function | Tag | Display Example | Notes | SMS | |
Capitalize |
| Text | Will capitalize the first letter in a string | ✅ | ✅ |
Date |
| 01/01/2023 | Inserts the date the message was sent in the specified format. Month, day, and year can be rearranged or removed. | ✅ | ✅ |
Date Modify |
| 01/01/2023 | The date_modify function allows you to add or subtract a specified number of days, months, or years to a date. | ✅ | ✅ |
First |
| Displays the first item in the specified list or array | ✅ | 🚫 | |
Last |
| Displays the last item in the specified list or array | ✅ | 🚫 | |
Lower |
| sendlane | Returns a string in all lowercase | ✅ | ✅ |
Upper |
| SENDLANE | Returns a string in all uppercase | ✅ | ✅ |
Title Case |
| Here Is Some Text | Returns a string in title case | ✅ | ✅ |
Number Format |
| Set the number of decimal places (0), decimal point(s) '.', and thousands separators ',' in any number | ✅ | 🚫 | |
Random |
| value2 | Returns a random value from the list | ✅ | ✅ |
Raw |
| Returns the raw information for the specified value rather than adjusting special characters | ✅ | 🚫 |
VAR personalization tags
VAR personalization tags are still functional but no longer being updated. We recommend you use personalization tags whenever possible.
Tag Name | Tag Code | Display Example |
Site name |
| Sendlane |
Site URL |
| |
Contact first name |
| John |
Contact last name |
| Doe |
Contact full name |
| John Doe |
Contact email |
| john@sendlane.com |
Contact phone number |
| 888-927-2664 |
Contact mailing address |
| Sendlane, 10620 Treena Street Suite 250, San Diego, CA, US 92131 |
Contact country |
| United States |
Contact state |
| California |
Contact city |
| San Diego |
Contact opt-in date |
| 2020-05-01 |
Contact IP address |
| 172.16.174.1 |
Formatted date |
| May 1, 2020 |
Date |
| 2020-05-01 |
Time |
| 16:32:41 |
Year |
| 2020 |
Month |
| May |
Day |
| Tuesday |
Time sent |
| 18:39:29 |
Date & time |
| 2020-05-01 16:32:41 |
Day, date & time |
| Fri, May 1, 2020 4:32 PM |
Day, date & time |
| Fri, May 1, 2020 4:32 PM |
Campaign ID |
| 1 |
Automation ID |
| 2 |