Integration with Storyly

Published September 05, 2022
Modules
Difficulty
Selected Clients
rossmann logo

The user engagement platform Storyly allows to embed full-screen, interactive stories, in both mobile applications and websites. With those stories you can post interactive ads and engaging videos with call to action. You can include GIFs, use ready made templates or create your own without the use of code. To improve your communication and drive conversion you can use customer data collected in Synerise to personalize the stories.

In this use case, we will enrich stories with information about customer’s favourite day for shopping, to show them personalized stories in the mobile app. This information will be extracted using an expression and passed to the mobile application in a document.

Storyly integration, story example

Prerequisites


Process


In this use case, you will go through the following steps:

  1. Create an event expression.
  2. Create an aggregate.
  3. Create an expression.
  4. Create a document with expression inserts.

Create an event expression


In this part of the process, create an expression that extracts the number of the week day out of a timestamp of the transaction.charge event. The result of this expression will be a number from 1 to 7 (1 is Monday, 7 is Sunday).

  1. In Synerise, go to Analytics icon Analytics > Expressions> New expression.
  2. Enter the name of the expression.
  3. From the Expressions for dropdown list, select Event.
  4. From the dropdown list, select transaction.charge event.
  5. In the Formula definition section of the page, click Select.
    Result: A dropdown list appears.
  6. From the list that opens, select Function > Day of week.
  7. In the brackets, click the left Select button and from the list, select Event attribute.
  8. Click Unnamed in the brackets, to display the settings of the event attribute.
  9. From the Choose parameter dropdown list, select TIMESTAMP.
  10. Save the expression.
The view of expression congifuration
Expression configuration

Create an aggregate


In this step, create an aggregate that returns the day of the week in which a customer makes transactions most frequently - it is the day of the week on which the customer is most likely to make a purchase.

  1. Go to Profiles icon Analytics > Aggregates> New aggregate.
  2. Enter the name of the aggregate.
  3. As the type of the aggregate, select TOP.
  4. From the Choose event dropdown list, select the transaction.charge event.
  5. From the Choose parameter dropdown list, select the expression created in the previous step.
  6. In the calendar in the right bottom of the page:
    1. In the Relative date range section, click Custom, type 365 and from the the dropdown list, select Days.
    2. Click Apply.
  7. Save the aggregate.
The view of aggregate congifuration
Aggregate configuration

Create an expression


In this part of the process, you will create an expression that will return the value of the aggregate made in the previous step. This expression will later be placed in the document retrieved by the application.

  1. In Synerise, go to Analytics icon Analytics > Expressions> New expression.
  2. Enter the name of the expression.
  3. Leave the Expression for option at default (Attribute).
  4. In the Formula definition section of the page, click Select.
    Result: A dropdown list appears.
  5. From the list that opens, select Profile.
  6. Click Unnamed to display the settings of the profile attribute.
  7. From the Choose parameter dropdown list, select the aggregate created in the previous step.
  8. Save the expression.
The view of expression congifuration
Expression configuration

Create a document


As the final part of the process, create a document with parameters that will be passed to Storyly. The document contains a Jinjava insert with expression value for individual customer.

  1. Go to Data Management icon Data Management > Documents > Add document.

  2. Enter the name for your document. Automatically, the field with a slug is filled as well. A slug is an ID of the document.

  3. To select the type of schema, in the Type section, unfold the dropdown list. A schema defines the method of validating the data included in the document. To create a schema type, please refer to the API reference pages.

  4. Optionally, in the Description field, you can add a description of the document.

  5. In the Content (JSON) section, paste the JSON code:

    { 
    "storyly_fav_day": "{% expression %} insert the ID of the expression {% endexpression %}"
    }
        
  6. Click Apply to save the document.

    The view of document congifuration
    Document configuration
  7. Click the Three-dot icon icon and from the dropdown list select Versions.

  8. In order to publish a document, next to the version, click the Publish button.

What’s next


Once the document is created, the mobile app retrieves it using get document method:

This way the customer will see personalized stories in the mobile app.

We also encourage you to enrich your integration with events sent to Synerise, for example, when user views or responds to a story. This way you can build different analyses or use this information in other customer communications. Find out which events you can send from Storyly to Synerise, and how to send them.

Check the use case set up on the Synerise Demo workspace


You can check the configuration of this integration directly in Synerise Demo workspace:

If you don’t have access to the Synerise Demo workspace, please leave your contact details in this form, and our representative will contact you shortly.

Read more


😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker