Template Examples
The best way to learn NLT is by seeing it in action. Here are five real-world email templates that combine multiple NLT features together. Each example includes the full template followed by a breakdown of the techniques used.
Welcome Email
A personalized welcome that adapts based on the user's plan and shows their benefits if they're a premium member.
Example: Welcome email output
Template:
Output:
Hi Jane!
Welcome to our VIP program.
As a premium member, you get:
- Priority support
- Advanced analytics
- Custom branding
Sent on April 7, 2026
Techniques used:
- Fallback values --
or "there"ensures a greeting even without a name - Ternary expression -- inline plan-based messaging
- Conditional block -- different content for premium vs. free users
- Quick list -- renders benefits as a bullet list
- Comments -- invisible note about the footer section
- Built-in date --
{today}with long date formatting
Order Confirmation
A transactional email with an order summary table, calculated totals, and conditional discount display.
Example: Order confirmation output
Template:
Output:
Hi Jane,
Thank you for your order of 3 items!
[Styled HTML table with Name, Quantity, Price columns]
Order total: $149.97 Discount applied: 15% off
Techniques used:
- Variable assignment --
{set order_total to ...}stores the sum for reuse - Aggregates --
sum ofandcount offor calculations - Pluralization -- "3 items" vs. "1 item"
- Table -- renders order items as an email-safe HTML table
- Currency formatting --
as "currency"for polished dollar amounts - Percentage formatting --
as "percentage"for the discount - Conditional block -- only shows discount section when a code exists
Product Recommendations
A personalized recommendation email with a for loop, item limit, and empty fallback.
Example: Product recommendations output
Template:
Output:
Hi Jane, check out these picks:
- Widget Pro The ultimate widget for professionals who need... $29.99
- Gadget X A versatile gadget that integrates with your... $49.99
- Alpha Kit Everything you need to get started with alpha... $19.99
Techniques used:
- For loop -- iterates over recommendation list
- Item limit --
show first 3caps the displayed items - Loop variables --
{loop.index}for numbering,{loop.last}for conditional footer - Truncation filter --
truncate 80shortens long descriptions - Currency formatting -- prices displayed as
$29.99 - Empty fallback --
{else}provides a friendly message when no recommendations exist
Birthday Campaign
A birthday email that adapts its message based on whether today is the contact's actual birthday or if it's coming up this month.
Example: Birthday campaign output (birthday is today)
Template:
Output:
Happy Birthday, Jane! Here's a special 25% discount just for you. Use code: BDAYJANE
Techniques used:
- Date comparisons --
is today,is this month,is this week - Else-if chains -- different messages for birthday, birthday month, and birthday week
- Percentage formatting --
as "percentage"for the discount - Text transform --
uppercaseto generate a personalized promo code - Nested conditionals -- VIP bonus check inside the birthday-month branch
Re-engagement Email
A re-engagement email that varies its approach based on how long it's been since the user's last login, with nested conditionals for premium users.
Example: Re-engagement output (30-day inactive user)
Template:
Output:
Hi Jane, we miss you! It's been a while since your last visit.
Techniques used:
- Date range checks --
is within the last 7 days,is within the last 30 days - Else-if chains -- tiered engagement based on inactivity period
- Comments -- marks the active-user branch as intentionally empty
- Nested conditionals -- premium-specific messaging inside the long-inactive branch
- Containment check --
contains "premium"on tags array - Fallback values --
or "there"for the most disengaged group - For loop with limit and fallback -- recent updates list with empty state
- Quick list -- premium features as bullet points
- Variable assignment -- stores days inactive for a secondary check
These examples show how NLT features compose together naturally. Start simple with variables and conditionals, then layer on loops, formatting, and calculations as your templates grow more sophisticated.