Shortcodes for AiTrillion Email Design Editor | Personalize Emails with Dynamic Content

Interesting Shortcodes for use with the new AiTrillion email design editor

Introduction:

Shortcodes in the new AiTrillion Email Design Editor allow you to add dynamic, personalized content to your emails with ease. By using shortcodes, you can automatically display customer details, order information, discount codes, and other dynamic data without manual customization. This article highlights some interesting and commonly used shortcodes in the AiTrillion email design editor and explains how they can help you create more engaging and personalized email campaigns.



Info
Notes: Some shortcodes work only when the related AiTrillion modules (Example - Loyalty and Membership) are enabled.


To use shortcodes and make your AiTrillion email marketing easier than ever, follow the steps below:




Step 2: Either click on the Create from scratch button, choose a pre-made template, or choose a saved template.




Step 3: Now, Click on Blocks. Then drag and drop a text block in the design editor.




Step 4: Customize the text block according to your requirements, then click on Personalization to find the available shortcodes.


NotesNote: If Used in Email / Workflow / Both is mentioned for a shortcode, it indicates whether the code is specific to Workflow or Email marketing templates; otherwise, it is used in both templates.

Customer Shortcodes

These shortcodes pull customer-related information from AiTrillion and Shopify.


Shortcode Name Description Shortcode
First name Displays the customer’s first name
{{first_name}}
Last name Displays the customer’s last name
{{last_name}}
Email Displays the customer’s email address
{{email}}
Phone Displays the customer’s phone number
{{phone}}
Company name Displays the customer’s company name
{{company}}
Note Displays notes added to the customer profile
{{note}}
Customer tag Displays customer tags
{{tags}}
Contact source Shows how the customer was acquired
{{contact_status}}
Customer birthday Displays the customer’s birthday
{{lyt_cus_birthday}}
Last seen Shows the last activity date of the customer
{{last_seen_date}}
Sign-up date Displays the customer registration date
{{created_at}}
Total spent Shows the total amount spent by the customer
{{total_spent}}
First seen Displays the date when the customer was first visited to store
{{created_at}}
Unique visit count Shows the number of unique visits made by the customer
{{web_session_count}}
First order date Displays the date when the customer placed their first order.
{{created_at}}


Order & Purchase Shortcodes

Used to display order and purchase-related details.

Shortcode Name Description Shortcode Used in Email Campaign / Workflow/Both
Order count Total number of orders placed
{{orders_count}}
Both
Last order date Date of the most recent order
{{last_order_date}}
Both
Last order name Name/reference of the last order
{{last_order_name}}
Both
Last order ID Order ID of the most recent order
{{last_order_id}}
Both
Average order amount Average value of customer orders
{{avg_order_amount}}
Both
Order tag Displays order tags
{{tags}}
Both
Abandoned cart Shows abandoned cart status (if available)
{{cart_data}}
Workflow


Product Activity Shortcodes

These shortcodes track customer product interactions.

Shortcode Name Description Shortcode Used in Email/Workflow/Both
Visited product title Displays the name of the last product viewed
{{visited_product_title}}
Workflow
Visited product handle Displays the product handle
{{visited_product_handle}}
Workflow
Visited product image Displays the product image of the last product viewed
{{visited_product_image}}
Workflow

Loyalty & Rewards Shortcodes

Used for loyalty program personalization.

Shortcode Name Description Shortcode Used in Email/Workflow/Both
Loyalty point Total loyalty points earned
{{lyt_points_earned}}

Points remaining Available loyalty points
{{points_remaining}}

Points expire date Expiration date of points
{{lyt_points_expire_date}}

Points expire days Days remaining before points expire
{{lyt_point_expire_days}}

VIP tier Customer’s assigned VIP tier
{{tier_name}}
Both
Current loyalty activity Current loyalty activity name
{{current_loyalty_actvity_name}}

Current loyalty points earn Points earned from the current activity
{{current_loyalty_point_earn}}
Workflow
Store credit given Store credit awarded to the customer
{{store_credit_given_in_order}}
Workflow
Activity discount code Discount code generated from loyalty activity
{{refer_reward_discount}}

Points redeemed Displays the total loyalty points redeemed by the customer so far.
{{lyt_points_redeemed}}
Both
Points expire Shows the number of loyalty points that have expired.
{{lyt_points_expire}}
Both
Current Loyalty Actvity Name Displays the name of the latest loyalty activity performed by the customer
{{current_loyalty_actvity_name}}
Workflow


Address & Location Shortcodes

Displays customer address details.

Shortcode Name Description Shortcode
Street 1
Primary address line
{{address1}}
Street 2 Secondary address line
{{address2}}
City City of the customer
{{city}}
Province State or province
{{province}}
Province code Province/state short code
{{province_code}}
Zip ZIP or postal code
{{zip}}
Country code Country code
{{country_code}}
Country
Country of the customer
{{country}}


Store & Branding Shortcodes

Used to add store branding and links.

Shortcode Name Description Shortcode
Shop name Store name
{{shop_name}}
Domain Store domain
{{domain}}
Shop logo Displays store logo
{{shop_logo}}
Logo URL Direct URL of store logo
{{logo_url}}
Logo alternate text Alt text for store logo
{{logo_alternate_text}}



Billing & Subscription Shortcodes

These shortcodes display billing and plan details.

Shortcode Name Description
Billing address Store billing address
Billing city Billing city
Billing country Billing country
Billing zip Billing ZIP code
Billing type Billing method type
Card name Name on the billing card
Card ending number Last four digits of the card
Plan renewal frequency Subscription renewal cycle
Plan price Current plan price



Important Notes

  1. Shortcodes dynamically fetch data from AiTrillion and Shopify at the time the email is sent.
  2. If a particular data field is not available for a customer, the shortcode may appear blank in the email.
  3. Shortcodes should be used inside text blocks in the email design editor.
  4. Click Personalization in the text editor to view and insert available shortcodes.
  5. Preview the email and send a test email to verify that all shortcodes render correctly.
  6. Dynamic shortcodes display unique values for each recipient.
  7. Avoid modifying the shortcode text manually, as this may cause it to break.


Next⏭️


    • Related Articles

    • Next steps after you install AiTrillion

      Introduction Congratulations on installing AiTrillion! ? Now, let’s set up the essentials to maximize its features and enhance your Shopify store’s marketing, automation, and customer engagement. Follow this step-by-step guide to get started: ...
    • Send Dynamic Discount Code in the Email/Workflow

      Introduction Sending dynamic discount codes in emails or workflows using AiTrillion allows you to deliver unique, personalized offers to each customer automatically. Dynamic discount codes help prevent code misuse while increasing engagement and ...
    • Use the email design editor for billing & shipping information

      Introduction: The new Email Design Editor makes it easy to display billing and shipping information clearly and professionally in your email templates. By using dynamic placeholders, you can automatically pull customer-specific details such as ...
    • Use the email design editor for order summary

      Introduction: Using the Email Design Editor for order summary emails in AiTrillion allows you to customize how order details are presented to your customers. You can design clear, professional, and brand-consistent order summary emails that include ...
    • How to Add Images in the AiTrillion Email Design Editor?

      Introduction: Images play a key role in making your emails more engaging and visually appealing. With the AiTrillion Email Design Editor, you can easily add images to your email campaigns to highlight products, promote offers, or enhance your brand’s ...