Zephyr Functions Index
All Zephyr functions are listed below. For more information, see the Overview or Examples Library.
| Category | Function | Description |
|---|---|---|
| AdTargeter | ad | Returns HTML of an AdTargeter section |
| AdTargeter | adinfo | Returns meta data of an AdTargeter section |
| API | api_event | Trigger the event API in a Transactional-only send |
| API | api_send | Triggers the send API in a Transactional-only send |
| API | api_user | Triggers the user API in a Transactional-only send |
| API | append_user_var | Adds values to an array on a user’s profile from an email send |
| Array Manipulation | list | Converts any data type to a list |
| Array Manipulation | map | Applies a lambda function to transform elements of a list |
| Array Manipulation | push | Pushes a new item to the end of an existing array |
| Array Manipulation | range | Creates an array containing a range of elements |
| Array Manipulation | set | Creates an array within a local template variable |
| Array Manipulation | shuffle | Randomizes the placement of objects in an array |
| Array Manipulation | slice | Returns a portion of a list based on a predefined start and end point |
| Array Manipulation | sort | Sorts a list based on desired criteria |
| Array/String/Object Manipulation | contains | Returns items that contain a certain elements |
| Array/String/Object Manipulation | first | Returns the first item from an element |
| Date | date | Returns a formatted date |
| Date | time | Returns a timestamp |
| Encryption | base64_decode | Decodes a Base64 string |
| Encryption | base64_encode | Encodes a string in Base64 |
| Encryption | md5 | Encodes a string in MD5 |
| Encryption | sha1 | Produces a hash of a value using SHA1 |
| Encryption | sha256 | Produces a hash of a value using SHA256 |
| Filtering | bucket_list | Moves list elements into separate ‘buckets’ based on criteria |
| Filtering | content_intersect | Returns the overlap of items from two JSON arrays |
| Filtering | dedupe | Remove duplicate items from an array of content recommendations |
| Filtering | filter_content | Applies a lambda function to filter out elements of a list except if it’s pinned in Recommendation Manager |
| Filtering | filter | Applies a lambda function to filter out elements of a list, regardless of pinning in Recommendation Manager |
| Filtering | intersect | Returns the overlap between two lists |
| Geographical | distance | Calculates the distance between two latitude/longitude points |
| Geographical | user_geo_home | Determines the most frequent location of your user based on Sailthru’s geolocation data |
| Geographical | user_geo_select_region | Given a list of regions, selects the one in which the user has visited the most baed on Sailthru’s geolocation data |
| HTML Manipulation | h | Returns an HTML-escaped version of a string |
| HTML Manipulation | strip_tags | Strips tags from an HTML string in a data feed |
| HTML Manipulation | text | Converts contents to text-version email format |
| HTML Manipulation | u | Returns a URL-encoded version of a string |
| Number | exp | Takes the value of a number to the power of a second number |
| Number | round | Rounds a decimal to the nearest whole number |
| Number | sqrt | Takes the square root of a number |
| Numerical | abs | Returns the absolute value of a number |
| Numerical | int | Converts a string to an integer |
| Numerical | length | Returns the length of an array or string |
| Numerical | number | Formats the display of a number |
| Numerical | random | Returns a randomized number |
| Objects | keys | Returns the key names of an object |
| Objects | values | Returns the values of an object |
| Other | compare | Makes a comparison between two integers or strings to see which is larger |
| Other | message_id | Populates the message ID of a transactional or campaign message |
| Other | signup_confirm | Returns a URL in an email for users to add themselves to a list |
| Other | type | Returns the data type of an element, such as string or boolean |
| Other | user_engagement | Returns the current user’s Sailthru-defined engagement level |
| Personalization | horizon_count | Outputs the number of pageviews a user has had for a certain Sailthru interest tag |
| Personalization | horizon_interest | Returns the user’s interest level in a particular tag |
| Personalization | horizon_select | Returns items from an array based on user interest |
| Personalization | horizon_set_interest | Manually sets interest level for a particular tag on a single send |
| Personalization | personalize | Returns an array of the best-matching content or products for the user based on a chosen algorithm |
| Sharing | public_share | Returns a shareable URL for a non-personalized version of a newsletter |
| Sharing | social_share | Returns a shareable URL for a particular article or item in an email |
| String Manipulation | join | Returns a string concatenated by a provided delimiter |
| String Manipulation | lower | Force lowercases every element in a string |
| String Manipulation | replace | Peforms and search-and-replace for certain elements in an array |
| String Manipulation | split | Given a string, returns a list separated by a provided delimiter |
| String Manipulation | strpos | Finds the numeric position of the first instance of a character or string within another string |
| String Manipulation | strrpos | Finds the numeric position of the last instance of a character or string within another string |
| String Manipulation | substr | Given a string, returns a substring |
| String Manipulation | title | Capitalizes the first letter in each element of a string |
| String Manipulation | upper | Force uppercases every element in a string |
| Suppression | assert | Sends an email to a user if criteria evaluates to true |
| Suppression | cancel | Cancels an email for a user if criteria evaluates to true |