Sailthru’s Lifecycle Optimizer

Sailthru’s Lifecycle Optimizer (LO) automation platform can directly integrate with Attentive to send mobile messages at key moments in a user’s journey. Sailthru’s LO sends one-to-one event-based messages similar to Attentive’s journeys. With this integration, you can connect to Attentive via webhooks to combine email and SMS in the LO platform.

Prerequisites

Before you begin setting up this integration, contact our White Glove team (whiteglove@attentivemobile.com) to help facilitate the integration process. Then, contact your Sailthru account representative to enable the {profile.keys.sms} field for your account so that you can receive phone numbers through Attentive’s postback.

Create the webhook in Sailthru’s LO

Complete the following procedure to create the webhook and connect to Attentive’s Messages API.

  1. Log in to your Sailthru account and navigate to the Lifecycle Optimizer.
  2. Follow the instructions to create a webhook and enter the following information in the relevant fields:
    • Do this—Select Send webhook
    • URL—Enter the following:
      https://api.attentivemobile.com/v1/text/send
    • Method—Select POST
    • Content-Type—Select JSON
  3. Add your formatted payload. The following is an example of the payload you would add:
        {
    "to" : "{profile.keys.sms}",
    "body" : "Thanks for subscribing! Click here to start shopping: https://example.attn.tv/l/aBC",
    "subscriptionType" : "TRANSACTIONAL",
    "messageName" : "MESSAGE NAME",
    "mediaUrl" : "http://website.com/some_url.png"
    }
    Note the following about the above payload example:
  4. Click Headers under Additional Parameters to add your Header Key/Value pairs:
    • Enter Authorization (capitalized) as the key.
    • Enter Bearer XXXXXX as the value.
      Note that you can reach out to our White Glove team (whiteglove@attentivemobile.com) for the token.
  5. Save and activate your flow.

After you activate your flow, note the following:

  • Only active and opted-in subscribers will receive these messages.
  • Attentive will send the message when the API call is received, regardless of the time. Quiet hours are not respected for these messages.

(Optional) Use Zephyr with your Attentive message

With Sailthru’s native templating logic, Zephyr, you can include data such as profile information or content recommendations in the body as your Attentive message. To do so, make sure to change the Content-Type (outlined in step 2 of Create the webhook in Sailthru’s LO) to Other. Then, enter your Zephyr data before the payload.

Example with profile information:

{body = "Hi, " + profile.vars.first_name + " !"}
{
"to" : "{profile.keys.sms}",
"body" : "{body}",
"subscriptionType" : "TRANSACTIONAL",
"messageName" : "MESSAGE NAME",
"mediaUrl" : "http://website.com/some_url.png"
}

Example with content recommendations:

{content = personalize({
"algorithm" : "trending",
"size" : 1
})}
{body = "Picked for you! " + content[0].title}
{mediaUrl = content[0].image}
{
"to" : "{profile.keys.sms}",
"body" : "{body}",
"subscriptionType" : "TRANSACTIONAL",
"messageName" : "MESSAGE NAME",
"mediaUrl" : "http://website.com/some_url.png"
}

Questions?

We’re here to help! Contact our White Glove team (whiteglove@attentivemobile.com) to ask about Sailthru's Lifecycle Optimizer.

Articles in this section

Was this article helpful?
0 out of 0 found this helpful