Guides
Templates
Template variables, fallback values, and preview.
Templates
Pipelime uses a simple template syntax for personalizing email subjects and bodies.
Variable Syntax
Variables use double curly braces:
Hi {{first_name}}, I noticed {{company_name}} is growing fast.Available Variables
Contact Variables
| Variable | Description |
|---|---|
{{first_name}} | Contact's first name |
{{last_name}} | Contact's last name |
{{email}} | Contact's email address |
{{title}} | Contact's job title |
{{company_name}} | Contact's company name |
Custom Field Variables
Any custom field on a contact is available as a variable:
I see {{company_name}} has {{employee_count}} employees.System Variables
| Variable | Description |
|---|---|
{{unsubscribe_link}} | Unsubscribe URL (auto-appended if not present) |
{{sender_name}} | Name of the sending email account |
{{sender_email}} | Email address of the sending account |
Fallback Values
Provide fallback values for when a variable is empty:
Hi {{first_name | "there"}}, I noticed {{company_name | "your company"}} is growing.If first_name is empty, "there" is used instead.
Unsubscribe Link
The {{unsubscribe_link}} variable is automatically appended to every email if not explicitly included. This ensures CAN-SPAM compliance.
To control placement:
<p>If you'd like to opt out, <a href="{{unsubscribe_link}}">unsubscribe here</a>.</p>Test Send & Preview
Preview your template with real contact data before launching:
# Preview rendered template
Pipelime campaign preview <campaign-id> \
--step 1 \
--contact-id cont_123
# Send test email
Pipelime campaign test-send <campaign-id> \
--step 1 \
--to your-email@example.comBest Practices
- Always set fallback values for variables that might be empty
- Keep subjects under 60 characters
- Personalize the first line — it shows in email previews
- Test with multiple contacts to verify variable rendering
- Include
{{unsubscribe_link}}explicitly for better placement control
