To create alerts in MoEngage:
- On the left navigation menu in the MoEngage dashboard, click Inform, and then click Alerts.
- On the Alerts page, click + Create Alert.
You can create alerts using the following steps:
- Step 1: Alert Details: Add details to describe the alert.
- Step 2: Content: Design the message for all selected channels.
- Step 3: Publish: Test and publish the alert.
Alert Details
In the Alert Details section, define the details of your alert using the following fields:
- Specify an Alert Name: This field is used to identify the Alert and is mandatory. This field can contain a minimum of 5 characters and a maximum of 256 characters.
- Reference ID: This field is used to identify the Alert using your Reference Name and can be used to identify the alert as an alternative to Alert ID. This field is not mandatory and can contain a minimum of 5 characters and a maximum of 256 characters.
-
Describe the alert in the Alert Description:
This field is used to describe the purpose of the Alert:-
Tags
Select the predefined tags or add new tags to identify your alert. This dropdown contains tags that can add context to your alerts. These tags can describe the purpose of the alert, such as transaction OTP, order confirmation, and so on. Once added, tags allow you to filter Alerts in the All Alerts section. For more information, refer to Tags. -
Teams
This field is used to select the Team associated with this Alert from the list of Teams. This field is enabled during Alert creation if your organization has “Teams” enabled. For more information, refer to Teams in MoEngage
-
Tags
-
Configure relevant channels
Choose the channels on which the alert has to be sent, and define the content for the chosen channels in the next step (content creation) of alert creation. You must select at least one channel for alert creation. If you select more than one channel, you must define content for both.info Information
The channels need to be configured before creating an alert. Refer to SMS Settings, Email Settings, Push Settings, and WhatsApp settings for configuring these channels.
- SMS: This option allows you to send an SMS alert
- Email: This option allows you to send an email alert
-
Push: This option allows you to send a push alert. The following Target Platforms for Push are available:
-
Android: This option allows you to send a standard Android push alert.
-
iOS: This option allows you to send an iOS alert. The following Message type- iOS options are supported:
- Push Notification: This option allows you to send a standard iOS push notification. Use this for general announcements, marketing offers, or alerts that do not require real-time, persistent updates on the user's lock screen.
- Live Activity Only: This option allows you to engage iOS users exclusively with a real-time Live Activity without a standard push fallback. This is ideal for highly interactive, in-the-moment experiences.
- Live Activity with Push Fallback: This option allows you to prioritize a Live Activity for iOS. A standard iOS push notification is sent as a backup to ensure the message reaches the user.
- Web: This option allows you to send a standard web alert.
-
Android: This option allows you to send a standard Android push alert.
- WhatsApp: This option allows you to send a WhatsApp alert.
-
Set Channel Sending Order(Channel Fallback)
If you choose more than one channel for Alert creation, you can configure whether the alerts should be sent in parallel or sequential. When more than one channel is selected, the following channel-sending order options are available:
- In parallel: You can send alerts in parallell for only two channels.
-
In sequence (on Sender Failure): You can specify the Default, first, and second Fallback channels to be used when there is a failure to send using the Default channel. Channel fallbacks are employed in the case where:
-
- There is an error in the request payload for the default or first fallback channel. For example, when the recipient details or personalization attributes are not present in the request payload for the channel
- When the request returns a 4xx or 5xx error when submitted to the vendor for the particular channel. For example, invalid authorization details would result in a 401 error returned by the vendor, and this would be considered a failed-to-send error for the channel for which the delivery is being attempted.
- Vendor rejections for requests for channels would also lead to MoEngage using the fallback channel to send the Alert. For example, if your credit limit is exhausted for the vendor account, the vendor could reject the request to send the Alert. In such a case, MoEngage would use the fallback configured to send the Alert.
For example, if the default channel were Push, the first fallback WhatsApp and the second fallback SMS and an Alert would be sent to a customer. If there is a failure in sending the Push (say if the user does not have an active Push token), then the Alert will be attempted using the WhatsApp channel. If there is an issue in sending using the WhatsApp channel, the SMS channel will be tried next.
-
-
In sequence (on Delivery Failure): You can specify the Default channel and a Fallback channel to be used when the Default channel fails to deliver the alert. You can use the Delivery fallback configuration to set up the wait time window before switching the channel. In the Try successful delivery for _ before making a new attempt field, enter a value between 1 minute to 60 minutes. If the default channel fails to deliver the alert, the system makes a new attempt to deliver the alert using the Fallback channel after the wait time is over.
For example, if the default channel is SMS and the fallback channel is Email and the wait time window is 5 minutes. If there is a failure in delivering the SMS, then the Alert will be attempted using the Email channel after 5 minutes.
-
Create Content
This section defines the content for the Alerts to be sent.
You can create the content for the SMS campaign using the following options:
- A blank template where you fill in the required details for all the fields.
- A custom template that pre-populates the data from the templates uploaded to MoEngage using the SMS Template APIs.
Create Content using a Blank template
Choose the blank template and follow these steps to create the content for the SMS campaign:
The following fields are available in the SMS content creation section for Alerts.
-
SMS Sender
Choose the SMS connector (service provider) for sending the SMS Alert using the SMS Sender dropdown. This dropdown displays the list of configured SMS connectors (service providers).
If you have configured Dynamic Sender Routing, you can select the created Conditions from the dropdown. After selecting, the system displays the list of senders used in the selected condition. -
Template ID
This field is mandatory if the SMS connector (service provider) chosen falls under DLT regulations (India region).
For more information, refer to DLT regulations. -
Message
This field contains the message that would be sent to the user. You can personalize your message by clicking the Text personalization to the right of the message editor. Refer to Personalize your Alert for details.
-
Shorten URL and Track URL
This section displays URLs present in the message body. For selected URL(s), the URLs are shortened using the MoE domain(<to add MoE domain>) and sent to users.
info Note
Click tracking would only be enabled for URLs where Shorten & Track URL is enabled.
Create Content Using Custom Templates
You can choose one of the uploaded templates in this section to send Alerts using it. For more information, refer to SMS Custom Templates.
Add a Locale
To localize the Alert in various languages, click +Locale at the top right corner of the content creation step. You will have the option to add a new locale or add an existing locale to the campaign. You can copy the existing content from the default locale or create a new message altogether for the locale added. For more information, refer to Localize campaign message.
Preview your SMS
The preview of how your SMS Alert will look on the user’s device is shown on the right of the content creation section, as illustrated below.
Testing your SMS Content
The test Message section will help you test the message content by sending a test message. This will help you ensure the message is conveyed in the desired manner. This step is optional and lets you test the content of your Alert by sending it to a specified mobile number.
To test the SMS Content, enter the mobile number in the format <country code><Mobile number>. For example, the recipient's mobile number should be similar to +14083636XX or 1408363XX
The test results are populated in the Test alert stats screen below.
info Note
If you have personalization attributes in your content, you can see how they are rendered by sending a test from the Test Request Details in Step 3 using an API. The test Message section will not render dynamic values for personalization attributes. For example, {{user}} would be sent as {{user}} for the test message, but in the Test and Live Alert, these will be replaced with the value for this attribute passed in the channel payload of the request.
In the case of failure, the Test alert stats screen contains the failure reason as shown below.
info Note
The Test Message option available here is different from the Test Request Details present in the Publish step of Alert creation. The Test Message section helps you test your content, while the Test Request Details will send a test request with the payload information to the API and show you the API response.
The following options are available in the Email content creation section for Alerts. Choose one of the options to create the content for your Email Alert.
Drag and Drop Editor
The Drag and Drop editor lets you create an email template for your Alert using MoEngage’s pre-built templates. You can customize the templates as per your needs.
Custom HTML Editor
The Custom HTML Editor allows you to work with HTML to create the Email Template. You can either type or paste the HTML content or upload the HTML file(Zip file) and edit it using the editor.
My Saved Templates
The Saved Templates section lets you load one of the saved templates and edit it as per your needs. After choosing one of these template options, on the next screen, you can enter the sender details and attachment details, and edit or add the message content.
Sender Details
This section contains the following fields:
- Subject: Type the title of your email alert. This must clearly and concisely summarize the content of the alert to help recipients understand its purpose at a glance.
-
Email Connector: Choose the Email connector (service provider) for sending the email alert using the Email Connector dropdown. This dropdown displays the list of configured Email connectors (service providers).
If you have configured Dynamic Sender Routing, you can select the created Conditions from the dropdown. After selecting, the system displays the list of senders (connectors) used in the selected condition. - Sender Name: Provide name for your sender. This name appears to recipients as the sender of the email.
- From email address: This is the email address that the alert is being sent from. It's the address that recipients will see as the sender.
- Reply to email address: This is the email address that receives replies from the recipients.
- Cc: Stands for Carbon Copy. You can enter one or more email addresses here to send a copy of the alert to recipients who are not the primary addressees.
- Bcc: Stands for Blind Carbon Copy. You can enter one or more email addresses here to send a hidden copy of the alert. Recipients in the To"and "Cc" fields will not be able to see who is listed in the "Bcc" field.
All fields in this section are mandatory except for Cc and Bcc.
Attachment Details
You can add attachments to an Email Alert by clicking the Attachments tab (available next to the Sender Details Tab) and add attachments using one of the following options:
- Upload file - This option lets you upload files using the Upload file option that lets you upload files from your local drive. You can drag and drop the file or click the Upload from computer option to browse the file from your computer and upload it.
-
Attach via API - This option lets you send the email attachment in the API payload. To add an attachment:
- Add the field name (the attachment key), where the attachment information will be passed in the payload using the Add Personalised Attachment Key(s) field.
- Enclose the attachment key in {{}}, similar to how you would pass a variable for personalization in the API. For example, {{sample_attachment_key}}
- Click Attach. Once the attachment is added successfully, you get an Attachment Key added successfully message in the UI.
- The attachment key gets added in the personalized_attachments object in the payload. You must pass the attachment details in this object with the attachment key specified during alert creation while sending the request to the Inform API.
info Note
- The total size of the attachments should be less than 4 MB.
- You can attach up to 5 files.
Fill in the required details and move to the Template editor section below to edit the email content.
You can personalize your email using the Text personalization button available at the top right corner of the editor. Refer to Personalize your Alert for details.Add CC and BCC to Email
Carbon copy (CC) and blind carbon copy (BCC) are used in emails to copy recipients who are not part of the chosen target segment. When this feature is enabled, the CC/BCC recipients will receive an exact copy of the email alert that the main recipient receives (To field).
Click Cc, Bcc, or both to add CC or BCC email recipients to an alert. You can add static addresses or personalized email addresses, as explained below:
- Add static CC or BCC addresses - every email alert will have the same set of CC/BCC recipients.
- Add personalized Cc/Bcc addresses - the CC/BCC email addresses are fetched from the personalized attribute.
To personalize the CC/BCC, click the Text personalization button. For more information, refer to Personalize Alert.
Create Content Using Custom Templates
You can choose one of the uploaded templates in this section to send Alerts using it. For more information, refer to Email Custom Templates.
Add a Locale
To localize the Alert in various languages, click +Locale at the top right corner of the content creation step. You will have the option to add a new locale or add an existing locale to the campaign. You can copy the existing content from the default locale or create a new message altogether for the locale added. For more information, refer to Localize campaign message.
Preview your Email
You can preview your email by clicking the Preview button in the top right corner of the template editor. The following preview options are available:
- Desktop
- Mobile
Testing Email Alert Content
The Test Message section will help you review the email content by sending a test message. This will help you ensure that the message is conveyed in the desired manner. This step is optional and lets you test the content of your Alert by sending it to a specified email id.
To test the Email content, add the email ID and click Test.
When the test is successful, the following success message appears.
When the test fails, you get the error displayed, as shown below.
If you have personalization attributes in your content, you can see how they are rendered by sending a test from the Test Request Details in Step 3 using an API. The Test Message section will not render dynamic values for personalization attributes.arrow_drop_down If you have selected Target Platforms for Push as Android or Web, you can use the following options to create content for the Push campaign.- Default Templates
- Custom Templates uploaded to MoEngage using the Push Template APIs.
Default Templates
The following template options are available in the Push content creation section for Alerts:
- Basic notification
- Stylized basic
- Simple image carousel
Choose one of the templates to create the content for your Push Alert. For more information, refer to Push Templates. You can personalize your notification using the Text Personalization button available at the top right corner of the editor. Refer to Personalize your Alert for details.
Custom Templates
You can choose one of the uploaded templates in this section to send Alerts using it. For more information, refer to Push Custom Templates.
arrow_drop_down If you select iOS in Target Platforms for Push, the following options are available:
-
Push Notification
You can create content for push notifications by using the Default or Custom push templates. For more information, refer to Push Templates. -
Live Activity Only
You can configure the following fields to create content for Live Activity Only:
info Information
- Live Activities are supported starting from the MoEngage SDK version 10.09.0.
- The Live Activity UI is managed and rendered entirely by the SDKs. Therefore, the preview displays the JSON payload sent to the device rather than the final visual output. For more information, refer to Transactional Live Activity.
Field Description Attribute Type Enter the unique identifier for the Live Activity widget defined in your iOS app (for example, order_tracking). This links the campaign to the specific UI layout created by your developers.Attribute info Define the static data that remains constant throughout the activity's lifecycle (for example, Order ID or Restaurant Name). Enter these as key-value pairs. Content State Define the dynamic data that updates in real-time (for example, Delivery Status or ETA). Enter these as key-value pairs by using personalization tags to fetch values from the event. Stale Date Specify the timestamp when the system considers the activity outdated. You can use personalization tags to set this dynamically based on event data.
Note: MoEngage recommends creating a variable for the Stale Date and always passing this date as part of the Inform API call. This ensures that a different date can be used for each user and notification.
Dismissal Date Specify the timestamp when the system automatically removes the activity from the user's screen.
Note:
- This must be a future date/time. The Inform API rejects requests if the dismissal time is in the past.
- MoEngage recommends creating a variable for the Dismissal Date and always passing this date as part of the Inform API call. This ensures that a different date can be used for each user and notification.
iOS Alert Title Enter the title for the standard push notification that accompanies the Live Activity start or update. Personalize this field as needed. iOS Alert Message Enter the body text for the accompanying push notification. Personalize this field as needed. iOS Alert Sound Specify the sound file name for the notification. Personalize this field as needed. -
Live Activity with Push Fallback
You can configure the Live Activity content in the Basic details section using the following fields:
info Information
- Live Activities are supported starting from the MoEngage SDK version 10.09.0.
- The Live Activity UI is managed and rendered entirely by the SDKs. Therefore, the preview displays the JSON payload sent to the device rather than the final visual output. For more information, refer to Transactional Live Activity.
You can configure the Push fallback content in the Template Backup section by using the Default or Custom push templates. For more information, refer to Push Templates.Field Description Attribute Type Enter the unique identifier for the Live Activity widget defined in your iOS app (for example, order_tracking). This links the campaign to the specific UI layout created by your developers.Attribute info Define the static data that remains constant throughout the activity's lifecycle (for example, Order ID or Restaurant Name). Enter these as key-value pairs. Content State Define the dynamic data that updates in real-time (for example, Delivery Status or ETA). Enter these as key-value pairs using personalization tags to fetch values from the event. Stale Date Specify the timestamp when the system considers the activity outdated. You can use personalization tags to set this dynamically based on event data.
Note: MoEngage recommends creating a variable for the Stale Date and always passing this date as part of the Inform API call. This ensures that a different date can be used for each user and notification.
Dismissal Date Specify the timestamp when the system automatically removes the activity from the user's screen.
Note:
- This must be a future date/time. The Inform API rejects requests if the dismissal time is in the past.
- MoEngage recommends creating a variable for the Dismissal Date and always passing this date as part of the Inform API call. This ensures that a different date can be used for each user and notification.
iOS Alert Title Enter the title for the standard push notification that accompanies the Live Activity start or update. Personalize this field as needed. iOS Alert Message Enter the body text for the accompanying push notification. Personalize this field as needed. iOS Alert Sound Specify the sound file name for the notification. Personalize this field as needed. Template Backup (Visible only if Live Activity with Push Fallback is selected) Configure the standard push notification sent to users who cannot receive the Live Activity.
Add a Locale
To localize the Alert in various languages, click +Locale at the top right corner of the content creation step. You will have the option to add a new locale or add an existing locale to the campaign. You can copy the existing content from the default locale or create a new message altogether for the locale added. For more information, refer to Localize campaign message.
Advanced Settings
This setting is only available if you have selected the Target Platforms for Push as Android, Web, or iOS - Push Notification. The following options are available in this section:
Expiration Settings - let you specify an expiry value for the push notification. This section contains information about when to stop sending push notifications (after a specific time duration mentioned) for the iOS and Android platforms. Set the expiry duration in Expire notifications after. Priority - choose this option for time-critical notifications. The following options are available:
-
- Android - Click Send at priority to send the campaign as a priority notification.
- iOS - Select from the Interruption Level (Active, Passive, Time-Sensitive, and Critical) from the drop-down to set the priority of the notification. Set the Relevance Score for setting the importance of the notification. For more information, refer to Notifications in iOS 15.
You can create the content for the WhatsApp campaign using the following options:
- Select the following option from the Select template section:
- Select sender: Search or select the sender from this list. Senders with at least one active template mapped to them are listed here.
- Select template: Search or select one of the templates from the drop-down. For more information, refer to WhatsApp Templates.
-
Content: Customize the content as defined in the template.
Publish
- You can test your Alert before publishing to check if the integration with the API is working fine and to view the actual SMS and Email as they will be received by your users. For more information, refer to Test Your Alert.
- To publish your Alert, click Publish. This publishes your alert and generates an Alert ID that can be used to uniquely identify your Alert. You can also use the Reference ID that you entered to identify your alert.
- You will now be taken to the Alert-Info page, where you can see the request details and message previews. You can also switch to the Analytics and Logs sections.
- Now that your Alert is published, you can use it to send Alerts to your users using the Inform Service API.
info Information
The following checks will not be performed for Alerts on any channel: Delivery Controls (Frequency Capping and Do Not Disturb), Unsubscribe (only email), Complaints (only email), Bounces (only email), Opt-in preference (only SMS).