Introduction
Sageflo is a distributed marketing solution that empowers teams to send coupon codes for free items or discounts, enhancing customer loyalty and engagement.
MoEngage <> Sageflo
MoEngage's integration with Sageflo Coupons enables businesses to boost customer loyalty through targeted and personalized coupon campaigns, driving engagement and repeat purchases.
Integration
Sageflo Coupons
With Sageflo's Coupons feature, you can send coupon codes to customers that can be redeemed for free items or discounts. Sageflo handles the coupon management system, and MoEngage utilizes its Content APIs to retrieve unique coupon codes for each subscriber at the time of sending. This integration enables personalized coupon campaigns, enhancing customer engagement and loyalty.
Step 1: Set up a MoEngage Content API
info |
Information We've revamped our dashboard settings UI. Content API is now available in Settings -> Advanced Settings -> Content API in the revamped UI. For more information, refer to Summary of Changes - Settings UI Revamp. |
-
Navigate to Settings -> Advanced Settings -> Content API. Click + Add content API at the top right corner of the Content API screen.
Navigate to Settings >> APIs >> Content API. Click Add.
- Add your Sageflo API to the endpoint URL. Depending on your use case, the endpoint will change.
Each coupon pool created in Sageflo Coupons is assigned a unique data feed URL. When MoEngage makes a call to this URL, it sends relevant information to the Sageflo system, such as the specific coupon pool, individual coupons, and campaign details. Sageflo then retrieves the single-use coupon from the designated pool and passes it back to MoEngage. This seamless integration allows MoEngage to display personalized coupons within the campaign, enabling businesses to effectively engage customers with exclusive offers and promotions.While setting up your content API, insert the following URL:
https://coupons-app.sageflo.com/coupon/<CLIENTNAME>/pools/<CLIENTPOOL>?auth=<AUTHCODE>&email={{UserAttribute['Emaill (Standard)']}}&campid={{EventAttribute['Campaign ID']}}
Remember to change the following:
-
<CLIENTNAME>
: Your account -
<AUTHCODE>
: Code unique to your account -
<CLIENTPOOL>
: The pool within your account -
email
: The key selected for your pool in Sageflo Coupons. (If you selected cid as your key, this will display ascid=
)
-
- Click on "Save" and then "Done" once you see a successful response.
- Note - You can also test your APIs. To test your APIs, from the Content API's action menu, click on "Test". You can your API response and validate it.
Step 2: Display your recommendations inside MoEngage campaigns
To use this API in your MoEngage campaigns,
- On step 2 on your campaign creation, enter @.
- In the pop up, you can select the Sageflo Content API configured in Step 1.
- You can use MoEngage Templating Language to parse through the API response and use the content in your campaigns.
- You can click on the Personalized tab under "Preview type" to view your campaign in real-time personalization:
- You can go ahead and Publish the campaign.
Adding multiple coupons to your campaigns
If you want to utilize the same pool for multiple offers using MoEngage and Sageflo, you can take advantage of this feature. For example, let's say your coupon pool offers various discounts, such as 20% off any item with code HAPPY20
or 10% off shoes with code SHOE10
. (Note that this feature is applicable to non-persistent pools only.) This can be easily achieved by adding a count parameter in the URL:
https://coupons-app.sageflo.com/coupon/<CLIENTNAME>/pools/<CLIENTPOOL>?auth=<AUTHCODE>&email={{UserAttribute['Emaill (Standard)']}}&campid={{EventAttribute['Campaign ID']}}&count=2
Add a prefix or suffix to your code
In a similar way, Sageflo allows you to add pre-determined prefixes and suffixes to your generated coupon codes:
https://coupons-app.sageflo.com/coupon/<CLIENTNAME>/pools/<CLIENTPOOL>?auth=<AUTHCODE>&email={{UserAttribute['Emaill (Standard)']}}&campid={{EventAttribute['Campaign ID']}}&prefix=ABC
If you're also using the count parameter, you must include the same number of prefixes, separated by commas, or you'll get an error. For example:
https://coupons-app.sageflo.com/coupon/<CLIENTNAME>/pools/<CLIENTPOOL>?auth=<AUTHCODE>&email={{UserAttribute['Emaill (Standard)']}}&campid={{EventAttribute['Campaign ID']}}&count=3&prefix=ABC,CDE,EFG
Similarly, for suffixes:
https://coupons-app.sageflo.com/coupon/<CLIENTNAME>/pools/<CLIENTPOOL>?auth=<AUTHCODE>&email={{UserAttribute['Emaill (Standard)']}}&campid={{EventAttribute['Campaign ID']}}&suffix=XYZ