In this article, you'll learn how to send a Notification as an Effect in your campaign rules.
It's easy to notify customers about special offers, promotions or errors with predefined messages when they interact with your service. The rules in your campaign will define when and what type of notification message will appear for a customer.
For example, if you want a customer to spend 50€ to qualify for a discount, set up a notification that triggers when a customer has up to 49€ in their cart.
Before you start:
- Have an active Talon.One integration and at least one Application
- Make sure your developers are familiar with handling effects and the show notification effect
Step 1: Create Your Campaign
Create a campaign then navigate to the Rule Builder to add the rules (conditions and effects) for your campaign with a notification. Give the campaign an obvious name like "Free Item, Spend Over 50€".
For this example, you need to create two rules: one that triggers the notification and one that triggers the discount.
Step 2: Add Rule with Notification
The first rule will check if a customer has a total cart value below 50€. This will trigger the offer notification to a customer alerting them of your offer for a free item.
First, add the condition with the following criteria: "Session Total is less than 50€"
Step 3: Create Your Notification
Click +Add Effect and select Set a notification from the drop-down menu. This will trigger the notification when a customer fulfils the criteria you have defined in your condition.
Once you select the effect Set a notification, follow these steps to create your notification:
- Select Notification Type: Info, Offer, Error or Misc
- Write a title for your notification, for example, "Free Item"
- Write the body content, for example, "FREE Item when you spend over 50€"
- Hint: Make your notification dynamic by adding a variable like "Customer Name"
The styling of the notification depends on your setup, but the message could appear to the customer like this:
As you set up your first campaign with notifications, please ensure your developers are aware of the notification types and have adjusted your integration as required. Set the type of notification to distinguish how the information is passed to your webshop or application.
Step 4: Add a Rule with a Discount
Now add a second rule that will check if the customer qualifies for the discount with the condition "Session Total is greater or equal to 50". This is the offer you have communicated using the first rule.
Now add the effect that will trigger the actual offer to the customer as a free item. This can be any type of effect like a discount, free shipping, loyalty points, etc.
To give a free item, select Add item to cart from the drop-down menu then input the SKU or select your variable.
To give Free Shipping on a customer's order as an effect, write the attribute "Session Attribute Shipping Cost" in the value field. Give your discount a name for clarity.
Step 5: Save Your Rules and Test
Review your conditions and effects, check the information is correct then click Save. Navigate to the Dashboard and review all the details of your campaign. From here you can activate your campaign, save it as a draft or schedule it for later.
NOTE: Using Notifications in Coupon-Based Campaigns
When you want to use notifications to alert your users that their coupon code is rejected because a certain condition is not met, you need to take precautions when using the "Coupon code is valid" condition.
The rule that gives the discount, should always use the standard "Coupon code is valid" condition, as this will then redeem the coupon on session close. (For more information, see this article for more information).
The rule that shows the notification, however, should NOT trigger a coupon redemption on session close. To ensure this, you have to use the "Coupon code is valid (without redemption)" condition.
A rule that shows a notification when the customer entered a coupon, but has a basket value that's too low, will look like this:
Customize Your Campaigns
This is is just one example of a campaign with a Notification Effect. Use variables in your message to make it more dynamic or even send a custom URL. There are many different ways you can communicate with your customers using custom parameters and the Notification Effect.
Next, you might want to check out: