Award loyalty points for reaching the specific number of transactions
Loyalty programs can build customer loyalty at a very low cost and make your customers more willing to shop in your store. You can award your customers with points for various activities which can be exchanged for specific products from your offer.
You can use different types of mechanisms of awarding points, based on your business needs. For example, awarding points for making a specific number of transactions during the specific time period, helps you encourage customers to spend more money and increases the number of bought products. What is more, if we use this mechanism in the FMCG brand, awarding points for buying specific products regularly, can develop a new habit in customers’ daily routine.
In this use case, we create a mechanism for awarding 1000 points for buying 10 coffees in the last 14 days. Then, we send a mobile push message with the information about awarded points. The workflow works only for the members of the loyalty program.
Prerequisites
-
Implement transaction events using SDK or API. Make sure that you implement
category
parameter in the transaction events. -
Integrate mechanism for awarding loyalty points.
For example, you can award loyalty points after transaction. In such case, create an expression that counts how many loyalty points are assigned to a customer for a transaction. Once you prepare the expression, please contact Support Team to configure materialization of loyalty points. After such configuration, every time loyalty points are assigned to a customer, thepoints.loyalty
event will be generated in a customer’s profile with information about the number of loyalty points they received after a transaction (thepoints
parameter). During implementation ofpoints.loyalty
event remember about adding parameterdescription
which describe for which activity customer get points.Tip: Learn more about events here. -
Collect the custom event which sends information to Synerise about joining a loyalty program (for example
account.status
with parameteraccountStatus
equal toactive
). Such an event with the appropriate status should be sent each time the membership status changes (when the customer resigns from the program or joins again).
- Integrate Synerise mobile SDK in your mobile application.
- Implement mobile pushes in your mobile application: iOS, Android.
- Create a mobile push template with information about granted points, that will be used later in a workflow.
Security configuration
Before you start working with this module, if you are a Synerise customer or partner, consider reading the section about denylisting events. This natively accessible configuration will allow you to manage the restrictions in points management that may help you prevent fraud.
Process
In this use case, you will go through the following steps:
- Create an aggregate which returns the current status of customer’s membership.
- Create an aggregate which counts bought products from category
coffee
in last 14 days. - Create a workflow in which you award the specific number of points and send mobile push to customers who meet the conditions of the promotion.
Create an aggregate checking the status of the membership
In this part of the process, you will create the aggregate that returns the current status of the customer’s membership.
- Go to Analytics > Aggregates > Create aggregate.
- As the aggregate type, select Profile.
- Enter the name of the aggregate.
- Click Analyze profiles by and select Last.
- From the Choose event dropdown list, select the account.status event.
- As the event parameter, choose accountStatus.
- Set the date range for this aggregate to Lifetime.
- To save the aggregate, click Save.
Create an aggregate which counts the bought products in last 14 days
In this part of the process, you will create an aggregate which counts the bought products from the coffee
category in last 14 days.
- Go to Analytics > Aggregates > Create aggregate.
- As the aggregate type, select Profile.
- Enter the name of the aggregate.
- Click Analyze profiles by and select Count.
- From the Choose event dropdown, select the product.buy event.
- As the event parameter, choose category.
- As the operator, choose Equal.
- As the value of the parameter, add
coffee
. - Set the period for the aggregate to last 14 days.
- To save the aggregate, click Save.
Create a workflow
At this stage, you will create a workflow which is triggered by the transaction event. The workflow progresses to the filter which checks if:
- the customer has purchased at least 10 coffees in the last 14 days,
- the customer is a member of the loyalty program,
- the customer hasn’t received points for purchasing 10 coffees yet
If the conditions are met, the system generates an event that awards loyalty points for the customer and sends the mobile push to that customer. If the conditions are not met, the customer finishes the workflow.
- Go to Automation > Workflows > New workflow.
- Enter the name of the workflow.
Define the Profile Event trigger node
Configure the conditions that trigger the workflow. Use the product.buy
event and the coffee
category as the event parameter.
- As the first node of the workflow, add Profile Event.
- From the Choose event dropdown menu, choose the
product.buy
event. - As the parameter, choose category.
- As the operator, choose Equal.
- As the value of the parameter, add
coffee
. - Confirm by clicking Apply.
Define the Profile Filter node
As the next step, add the Profile Filter node which contains the conditions a customer must meet be awarded with loyalty points:
- the customer has purchased at least 10 coffees in the last 14 days,
- the customer is a member of the loyalty program,
- the customer hasn’t received points for purchasing 10 coffees yet
-
Add the Profile Filter node.
-
Click Choose filter button.
-
Choose Profiles > Aggregates and select the aggregate counting the number of coffees bought created in the previous part of the process.
-
As the Operator, choose More or equal to.
-
As the value, enter
10
. -
Click Choose filter button.
-
As the next condition, select the Events and select the
points.loyalty
event from the list. -
Click + where and select the description parameter.
-
As the operator, choose Equal.
-
As the value of the parameter, enter the name of the promotion. In our case we called it
Points for Coffee
. -
Change the Profiles matching funnel expression to Profiles not matching funnel by clicking the matching word.
-
Set the time range to last 14 days.
-
Click Choose filter button.
-
As the last condition, choose Profiles > Aggregates and select the aggregate which returns the current status of customer’s membership created in the previous part of the process.
-
As the operator, choose Equal.
-
As the value of the aggregate, enter
active
. -
Click Apply.
Define the Generate Event node
At this stage, the workflow will generate an event on the customer’s profile with loyalty points awarded for the purchase of 10 coffees during last 14 days.
-
To the matched path, add Generate Event. In the configuration of the node: 2. In the Event name field, enter the name of the event that will be generated on the customer’s profile. In this case, it is
points.loyalty
.Note: While naming your custom event, follow the pattern used for the default events in the application, such aspage.visit
,product.buy
, and so on.- In the Label field, add the text which will be visible in the header of the event details on a profile card.
- In the Body section, define the parameters of this event, and click Apply.
Example content of Body section:
{
"description": "Points for Coffee",
"points": 1000
}
Define the Send Mobile Push node
Add Send Mobile Push node. This node will send the mobile push to customers who meet the conditions and gained 1000 points.
- Select the type of the mobile push notification as Simple Push.
- Select the push template, created as the part of prerequisites with the information about points gained.
- Skip the Additional parameters.
- Confirm the settings by clicking Apply.
Set up final settings of the workflow
- Add End nodes to:
- Not matched path from the Profile Filter node.
- After the Send Mobile Push node.
- Set the capping for the workflow to one time for 14 days.
- Optionally, add titles to each node so the workflow will be more understandable to your colleagues.
- To save it as a draft, click Save or activate by clicking Save & Run.
Check the use case set up on the Synerise Demo workspace
You can check directly in Synerise Demo account the configuration of the:
- aggregate which returns the current status of customer membership,
- aggregate which counts bought products from category “coffee” in last 14 days,
- workflow in which you add the specific number of points and send mobile push to customers who meet the conditions of the promotion.
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.