Zephyr Overview
Sailthru includes a sophisticated templating language called “Zephyr” that lets you bring dynamic content into your templates for email, your website, push notifications in Lifecycle Optimizer, or hosted pages. By including Zephyr code within your HTML, you can easily personalize content, pull in user profile and content feed data, and much more, offering content that’s unique for each user.
For Example:Template Code | Result | |
Subject | Hi, {profile.vars.first_name}! | Hi, Steve! |
Body | <p>Your top story for today!</p><br> <a href=”{content[0].url}”> {content[0].title}</a> | Your top story for today! Zephyr Documentation Overhauled! |
- In a template’s Setup section, preparing data to use within the template; for example, running the personalize() function to obtain user-specific content recommendations.
- In the code of reusable “includes,” such as content headers and footers.
- Within links, for example, to insert a dynamic, user-specific parameter.
Resources
- Functions Index – A list of all available Zephyr functions, with links to their full, detailed documentation and examples.
- Examples Library – A listing of all examples included across the Zephyr function pages.
- Tutorials – We’ll walk you through basic to intermediate uses of Zephyr.
- Zephyr Language Basics
- Working with User, Transactional, Campaign, and Feed Data
- Tools and Techniques