Business Event Triggered Campaigns

Overview

Business event-triggered campaigns send messages to your customers when specific business events occur in your system. To create and use these campaigns, follow these main steps:

  1. Create the business event in MoEngage using an API.
  2. Create a business event-triggered campaign that uses this event.
  3. Trigger the business event.

Consider these scenarios for using business event-triggered campaigns:

  • An OTT platform releases a new series and wants to notify users who watch similar content.
  • A product is back in stock, and you need to inform users who previously viewed the product.
  • A flight or train is delayed, and you need to communicate this information to ticketed users.

Create the Business Event

Create a business event, such as NewSeriesAlert, by using the Create Business Event API. This is typically a one-time setup to define the event and its attributes. A sample payload is shown below.

Sample Payload

--data '{
    "event_name": "NewSeriesAlert",
    "event_attributes": [
        {
	  "attribute_name": "season",
	  "attribute_data_type": "string"
	 },
	 {
	   "attribute_name": "episodes",
	   "attribute_data_type": "int"
	 },
	 {
	   "attribute_name": "cast",
	   "attribute_data_type": "array"
	 },
	 { 
	   "attribute_name": "genre",
	   "attribute_data_type": "string"
	  }
    ],
    "created_by": "john.doe@example.com"
}'

After you create the business event, you can proceed with campaign creation.

Create a Business Event-Triggered Campaign

Push SMS & RCS Email CampaignsFlows

For example, to create a business event-triggered push campaign to notify users when a product is back in stock:

  1. On the left navigation menu in the MoEngage dashboard, click Engage, and then click Campaigns.
  2. On the All campaigns page, click + Create campaign.
  3. Under Outbound, click Push, and then click Business Event Triggered.
  4. Add the team (if teams are configured for the account), campaign name, and tags on the campaign creation page.
  5. In the Select Business Event drop-down list, click the BackInStock event.
    Push_Create.png
  6. In the Target audience section, match user or event attributes with the business event's attributes dynamically. This allows you to use a single campaign for many business events.

    For example, for a back-in-stock business event, if a user has viewed a product that was out of stock, you can map one or more of its attributes (such as product ID, product name, item code, product URL, product image, brand, or category) with the business event's attributes. When a business event is triggered for any product that is back in stock, this campaign will run.

    • User Property: Match user properties or user attributes with event attributes. If a user property stores the product ID, you can match it with the business event attribute containing the product ID for the back-in-stock product.

      UserProperty_Push.png

      Note: For Array attributes, the following operators are supported in segmentation for Business Events: exists, does not exist, (any of) in the following, (all of) in the following, not in the following.

    • User Behavior: Target audiences who have viewed out-of-stock products in the past 25 days. Match the attributes of products viewed by them with the attributes of products now back in stock using Business Event Attributes. The example below shows how to match product names, brands, and item codes of products viewed by users to those now back in stock.

      Push_Userbehavior (1).png

    • User Affinity: Recommend products to users who have previously shown an affinity for a certain product. In the example below, back-in-stock products are shown to users who have viewed the product in the past three days.

      Push_Useraffinity.png

  7. Add the platforms and control group (optional) for the campaign, and then move to the next step.
  8. Create the content for the push campaign and add the delivery schedule. You can personalize the message, title, and summary with the business event's attributes. For more information, see Personalization.
  9. In step 3 of campaign creation:
    1. Select the Start date and End date for the campaign, along with the timezone for delivery.
    2. Add conversion goals as needed.
    3. Add delivery controls to ignore frequency capping and override default throttling limits.
  10. Publish the campaign. This campaign sends messages to customers when the business event is triggered.
info

Note

  • Because segmentation is dynamic, you cannot view the number of reachable users during campaign or flow creation. The number is calculated at run time based on the business event that triggers the campaign or flow. For example, if you target users who prefer comedy and want to inform them about an upcoming comedy series, only users who have watched comedy or prefer comedy receive the email based on their qualification in the dynamic segment defined for the campaign.
  • For segmentation to work, the data types of the event attributes or user properties used in segmentation must match those of the business event's attributes. If the attributes do not match, segmentation will not run, and the campaigns will not be sent to users.
  • You can also send business event-triggered campaigns or flows to all users in the system by using the All Users segmentation option.
  • You can look up information for up to 60 days in the segmentation filters for business events.

Trigger the Business Event

After you set up your business event and create a campaign that uses it, trigger the business event by using the Trigger Business Event API. This action initiates the campaign to send messages to your targeted users. A sample payload is shown below.

Sample Payload

  --data '{
  "event_name": "NewSeriesAlert",
  "event_attributes": {
  "season": "Season 1",
  "episodes": 12,
  "cast": ["John Doe", "Jane Doe"],
"genre": "Comedy" }, "triggered_by": "john.doe@example.com"
}

You do not have to send all attributes when you trigger the business event. When the trigger is active, the user receives the campaign message. You can view the analytics for the campaign on the Campaign Analytics and Info page of the respective campaign. Business event-triggered campaigns send messages similarly to any other event-triggered campaign in MoEngage.

Was this article helpful?
3 out of 4 found this helpful

How can we improve this article?