Variables
Last updated: April 21, 2025
Personalize Name in Messages
Personalized messages feel more human. You can use the variables below to greet shoppers using names linked to Shopify, OneText and CRM profiles.
Add Shopper’s Name
How to Use
In any OneText message field, select the First Name variable. The variable code will be inserted automatically.

Final Result
Result for shoppers with known names
Hi Jack, we have a special offer for you!
Result for shoppers without known names
Hi, we have a special offer for you!
Add Shopper’s Name with Fallback
If there are shoppers in your segment who don’t have names on file, you can use an if/else variable to substitute their name with a different greeting.
How to Use
In any OneText message field, copy and paste the following variable:
Hi {{#if user.firstName}}{{ user.firstName }}! {{else}}friend! {{/if}}You may replace "friend" with any greeting of your choosing.

Final Result:
Result for shoppers with known names
Hi Jack, we have a special offer for you!
Result for shoppers without known names
Hi friend, we have a special offer for you!
Other Variables to Customize
Add Brand Name
How to Use
In any OneText message field, select the Brand Name variable. The variable code will be inserted automatically.

In accordance with TCPA guidelines, we strongly recommend including your brand name in every message—either at the beginning or as a sign-off.
Add Agent Name
How to Use
In any OneText message field, select the Agent Name variable. The variable code will be inserted automatically. Your brand's agent name can be customized in your Settings.

Add Order Number & Tracking Link (Post-Purchase & Shipping Notification)
How to Use
In the Post-Purchase and Shipping Notification automations, you can include Order Number and Tracking Link variables, allowing customers to easily reference and track their orders.

These variables use Shopify to populate the customer's most recent order number and their Shopify order confirmation page.
Shopping Variables to Customize
OneText offers extensive custom variables to enhance the customer's shopping experience. To learn more about these variables, visit our articles on Product Choice and Purchase Offer steps.
