Zephr Classic User Guide

Sailthru

17 views 0

The Zephr Sailthru extension allows you to:

  • Create, update and delete Sailthru Users when Zephr Users are created, updated or deleted
  • Trigger automated emails from the Sailthru Lifecycle Optimizer within Zephr Rules
  • Register purchase events in Zephr with the SailThru Purchase API

These features allow a user to opt into your Sailthru-based marketing seamlessly, whilst allowing you to trigger automated marketing flows wherever needed.

Enabling the Sailthru Plugin

The Sailthru integration can be turned on by enabling the plugin found under Settings > Plugins in your Zephr Admin Console. If you cannot see the plugin in this list, email support@zephr.com.

In order for Zephr to connect to Sailthru you need to provide the following details from Sailthru:

  • SailThru API Key
  • SailThru API Secret

Plugins - SailThru Set Up

Enter these details into the corresponding fields under the heading Sailthru API details.

If you wish to trigger events within the Sailthru Lifecycle Optimizer, please email support@zephr.com.

Zephr-Sailthru Mapping Configuration

Sailthru/Blaize Mapping

Following this, you will need to add some mapping configuration. Click Sailthru/Blaize Mapping, here, you’ll need to add:

  • Default list for new users
  • Zephr/SailThru attribute mapping
  • Zephr Product Price mapping
  • Zephr Canvas/Sailthru Events configuration – this will be used for triggering events within the Sailthru Lifecycle Optimizer

The ‘Default list for new users’ is simply the list on which each new user created in Zephr should arrive.

The ‘Zephr/SailThru attribute mapping’  allows you to map your User Schema Attributes to the Attributes stored against a user within a Sailthru List. For example, the following mapping would be used to map User Schema Attributes of First Name and Last Name, along with the Zephr Registration Date and Tracking ID:

{
  "tracking_id": "trackingId",
  "registered": "registerDate",
  "attributes": {
    "first-name": "firstName",
    "last-name": "lastName"
  }
}

Email is the key identifier between Sailthru and Zephr, so this doesn’t need to be added to your mapping.

The ‘Zephr Product Price Mapping’ allows you to record a price paid when registering an event with the SailThru Purchase API. The format for this mapping is a simple JSON object, with the Zephr product IDs as the keys and the price paid (in USD cents) as the value. For example, a mapping with a single product, purchased for $10.99 would be:

{
    "my-zephr-product-id": 1099
}

When your details are correct, click Activate.

Once this has saved successfully, all users who are created within Zephr will be added as users within Sailthru.

Triggering Automated Marketing within a Zephr Rule

As part of our integration with Sailthru, we’ve created a way for you to trigger automated marketing, sent via Sailthru, from within a Zephr Rule. This feature uses the Sailthru Lifecycle Optimizer, and adds a new Sailthru option for you to drag and drop into the Zephr Canvas when creating a Rule.

In order for Sailthru to listen for Zephr triggers, you will first need to build a new flow within your Sailthru Lifecycle Optimizer with a custom event API, the event name, and the action to be done. Details on how to do this can be found in the Sailthru documentation page for the Lifecycle Optimizer. Once these events have been created, please contact support@zephr.com for assistance creating the mapping between Sailthru Events and Zephr.

Once set up, navigate to the Zephr rule where you would like to trigger the Lifecycle Optimizer from. On the left-hand panel, you will see a drag and drop option for Sailthru, drag this into your Rule Canvas and choose your Event from the dropdown menu. Connect this node into your rule at the point you would like the email triggered.

When you’re happy with your rule, click Save. Remember you will need to Publish your rule in order for it to go live on your site.