Skip to content

Creating an in-app message

You can create an in-app message or in-browser message using the Braze platform using campaigns, Canvas, or as an API campaign. We highly recommend planning out your messages and preparing all materials ahead of time using our handy In-app message prep guide.

Step 1: Choose where to build your message

Not sure whether your message should be sent using a campaign or a Canvas? Campaigns are better for single, simple messaging campaigns, while Canvases are better for multi-step user journeys.

  1. Go to Messaging > Campaigns and select Create Campaign.
  1. Select In-App Message. Note that in-app messages aren’t available in multichannel campaigns.
  2. Name your campaign something clear and meaningful.
  3. Add Teams and Tags as needed.
    • Tags make your campaigns easier to find and build reports out of. For example, when using the Report Builder, you can filter by particular tags.
  4. Add and name as many variants as you need for your campaign. You can choose different platforms, message types, and layouts for each of your added variants. For more on this topic, refer to Multivariate and A/B testing.
  1. Create your Canvas using the Canvas composer.
  2. After you’ve set up your Canvas, add a step in the Canvas builder. Name your step something clear and meaningful.
  3. Choose a step schedule and specify a delay as needed. Note that steps containing in-app messages cannot be action-based.
  4. Filter your Audience for this step, as necessary. You can further refine the recipients of this step by specifying segments and adding additional filters. Audience options will be checked after the delay, at the time messages are sent.
  5. Choose your advancement behavior.
  6. Choose any other messaging channels which you would like to pair with your message.

You can find more Canvas-specific information in In-app messages in Canvas.

Step 2: Specify delivery platforms

Start by choosing which platforms should receive the message. Use this selection to limit the delivery of a campaign to a specific set of apps. For example, you might choose Web Browsers for an in-browser message encouraging users to download your mobile app to ensure they do not receive the message after already getting your app. Because platform selections are specific to each variant, you could try testing message engagement per platform.

Step 3: Specify your message types

Once you’ve selected a sending platform, browse the message types, layouts, and other options associated with it. Learn more about the expected behavior and look of each of these messages on our Creative Details page, or by clicking on the linked message types in the following tables.

When deciding which message type to use, you should consider how intrusive your in-app message campaign needs to be. This is a measure how much screen real estate the message will take up and how much this interrupts your customer’s regular experience in your app or site. The more rich content you want to deliver, the more intrusive your message will need to be.

Graphic showing a scale of less intrusive to more intrusive, with slider being the least intrusive, followed by modal, and fullscreen being the most intrusive

Message types

These in-app messages are accepted by both mobile apps and web applications.

Message Type Type Description Available Layouts Other Options Recommended Use
Fullscreen Messages that cover the entire screen with a message block.
  • Image & Text
  • Image Only
Enforced Device Orientation (Portrait or Landscape) Big and bold! Use when you want to make sure users see your content, such as your most critical campaigns, important notifications, or massive promotions.

Note that on mobile devices, portrait and landscape messages won't display if the orientation of the device doesn't match the orientation of the message.
Modal Messages that cover the entire screen with a screen overlay and a message block.
  • Text (with Optional Image)
  • Image Only
N/A A good middle ground. Use when you need an apparent way to catch your user's attention, such as encouraging users to try a new feature or take advantage of a promotion.
Slideup Messages that slide into view in a designated place without blocking the rest of the screen. N/A N/A Unobtrusive—takes up the least amount of screen real estate. Use when alerting users to small snippets of information, such as new features, announcements, use of cookies, etc.

Advanced message types

These in-app messages are customizable to your needs.

Message Type Type Description Available Layouts Requirements Recommended Use
Custom HTML Message Custom messages that perform as defined in your custom code (HTML, CSS, and/or JavaScript). N/A Must set allowUserSuppliedJavascript initialization option to true for your in-app message to work. This is a good option if you want all the advantages of IAMs but need additional functionality or for the appearance to stay "on brand". You can alter every little detail of the message—font, color, shape, size, buttons, etc.

Example use cases include asking users for app feedback, email capture forms, or paginated messages
Email Capture Form Typically used to capture the viewer's email. N/A Must set allowUserSuppliedJavascript initialization option to true for your in-app message to work. When prompting users to submit their email address.
Web Modal with CSS Modal messages for web with customizable CSS.
  • Text (with Optional Image)
  • Image Only
Web Modal with CSS is unique to the Web SDK and can only be used after selecting Web Browsers. When you want to upload or write custom CSS to create beautiful, all-around custom-styled messaging.

Step 4: Compose your in-app message

The Compose tab allows you to edit all aspects of your message’s content and behavior.

An example brand's in-app message to welcome new customers and prompt them to set up a user profile.

The content of the Compose tab varies based on your chosen message options in the previous step, but may include any of the following options:

Language

Select Add Languages and select your desired languages from the provided list. This will insert Liquid into your message. We recommend selecting your languages before writing your content so you can fill in your text where it belongs in the Liquid. See our full list of available languages.

Image

Depending on your message type, you can Upload Image, Pick a Badge, or use Font Awesome. To upload an image, click Add Image or provide an image URL. Clicking Add Image opens the Media Library, where you can select a previously uploaded image or add a new one. Each message type and platform may have its own suggested proportions and requirements—be sure to check what those are before commissioning or making an image from scratch!

Header and body

Write anything you want! Include completely custom copy (often with custom HTML capabilities) with the options to include Liquid and other types of personalization. The faster you can get your message across and get your customer clicking—the better! We recommend clear and concise headers and message content.

Some message types do not need and therefore do not ask for headers.

Button text

When available for your message type, you can have up to two buttons appear under your body of text. You can create and edit custom button text and color. You can also add Terms of Service Link within email capture forms.

Primary and secondary buttons in an in-app message

If you choose to only use one button, it will automatically adjust to take over the available space at the bottom of your message instead of leaving room for an additional button.

Choosing a primary button

If you decide to format these buttons with your own colors, we recommend that you use Button 2 for your more preferred result. In other words, if you want your user to click on one button more than the other, make sure it is on the right. The right button has often displayed better potential to get clicked, especially if it has a somewhat contrasting or otherwise stand-out color from the rest of the message. This is only emphasized when the button on the left blends more visually with the message.

On-click behavior

When your customer clicks on a button in your in-app message, the following actions are available.

Note: the Request Push Permission, Log Custom Event, and Log Custom Attribute options require the following SDK minimum versions:

iOS device options

If desired, you can restrict your in-app message to only send to iOS devices. To do so, click Change and select Only send to iOS devices.

Message close

Choose between the following options:

  • Dismiss Automatically: Select how many seconds the message will remain on the screen.
  • Wait for User Swipe or Touch: Requires a dismissal or close option.

Slide up position

This setting only applies to the Slideup message type. Choose between having your slideup appear From Bottom of App Screen or From Top of App Screen.

HTML and assets

This setting only applies to the Custom code message type. Copy and paste HTML into the available space and upload your assets using a ZIP file.

Email capture input placeholder

This setting only applies to the email capture form message type. Enter custom copy that will appear as the placeholder text for the email input field. This defaults to “Enter your email address”.

Step 5: Style your in-app message

The Style tab allows you to adjust all visual aspects of your message. Upload an image or badge, or pick a pre-designed badge icon. Change the colors of the header and body text, buttons, and background by selecting from a palette or entering a hex, RGB, or HSB code.

The content of the Style tab varies based on your chosen message options in the previous step, but may include any of the following options:

Always preview and test your message before sending.

Step 6: Configure additional settings (optional)

Key-value pairs

You can add key-value pairs to send extra custom fields to user devices.

Step 7: Build the remainder of your campaign or Canvas

Build the remainder of your campaign; see the following sections for further guidance on how to best use our tools to build in-app messages.

Choose a trigger

Select the action you’d like to trigger your message off of, as well as the start and end times for your campaign or Canvas.

Action-based campaign with the trigger action set to "Start Session".

In-app message delivery is entirely based on the following action triggers:

  • Making a purchase
  • Opening the app/webpage
  • Performing a custom event (only works with events sent using the SDK)
  • Opening a specific push message
  • Automatically schedule campaigns to send at a certain time with respect to the local time of each of your users.
  • Messages can also be configured to recur on a daily, weekly (optionally on specific days), or monthly basis.

A start date and time must be selected; however, an end date is optional. An end date will stop that specific in-app message from showing up on devices after the specified date/time.

Refer to our developer documentation for server-side event triggering and local in-app message delivery.

Online versus offline triggering

In-app messages work by sending the message and triggers to the user’s device. After the in-app messages are on a device, it waits to display until the trigger condition is met. If the in-app messages are already cached on the user’s device, you can even trigger in-app messages offline with no connection to Braze (for example, in Airplane mode).

Choose a priority

Finally, after you’ve selected the action the in-app message will be triggered off of, you should also set a priority. If two messages are triggered off of the same action, high priority messages will be scheduled to appear on users’ devices before messages with lower priorities.

You can choose between the following message priorities:

  • Low priority (shown after other messages)
  • Medium priority
  • High priority (shown before other messages)

The high, medium, and low options for triggered message priorities are buckets, and as such multiple messages could have the same selected priority. To set priorities within these buckets, click Set Exact Priority, and you will be able to drag and drop campaigns to order them with the correct priority.

An example of how priority is set for an in-app message campaign and Canvas.

Choose users to target

Next, you need to target users by choosing segments or filters to narrow down your audience. You’ll automatically be given a snapshot of what that approximate segment population looks like right now. Keep in mind that exact segment membership is always calculated just before the message is sent.

Re-evaluate campaign eligibility and Liquid

In some scenarios, you may want to re-evaluate a user’s eligibility as they trigger an in-app message to display. Examples include campaigns that target a custom attribute that frequently changes or messages that should reflect any last-minute profile changes.

Audience Summary section of the Target Users step with the option to "Re-evaluate campaign eligibility before displaying" selected.

When you select Re-evaluate campaign eligibility before displaying, an additional request to Braze will be made to confirm that the user is still eligible for this message before sending. Additionally, any Liquid variables or Connected Content will be templated at that moment before the message is displayed.

This prevents in-app messages from being sent to users within expired or archived campaigns. If you don’t re-evaluate a user’s eligibility, the user will receive the in-app message even after the campaign has expired or is archived because the message is in your SDK and waiting for users to trigger it.

Choose conversion events

Braze allows you to track how often users perform specific actions, conversion events, after receiving a campaign. You have the option of allowing up to a 30-day window during which a conversion will be counted if the user takes the specified action.

If you haven’t done so already, complete the remaining sections of your Canvas component. For further details on how build out the rest of your Canvas, implement multivariate testing and Intelligent Selection, and more, refer to the Build your Canvas step of our Canvas documentation.

For information on Canvas-specific in-app messaging options, refer to In-app messages in Canvas.

Step 8: Review and deploy

After you’ve finished building the last of your campaign or Canvas, review its details, test it, then send it!

Next, check out In-app message reporting to learn how you can access the results of your messaging campaigns.

Things to know

Active in-app message campaign limits

Braze values reliability and speed. Just like we suggest you send only the data you need to Braze, we also recommend turning off any campaigns that are no longer adding any value to your brand.

Processing action-based in-app message campaigns that are still in an active state but no longer sending messages or are no longer needed slows down the overall performance of the Braze services for you and other customers. This extra time needed to process these large numbers of idle campaigns means that any in-app messages will take longer to appear on the end-user’s devices, which impacts the end user’s experience.

The 200 count includes active in-app message campaigns that have not yet reached end time and those that have no end time. Active in-app message campaigns that have passed their end times will not be counted. The average Braze customer has a total of 26 campaigns active at once—so it’s unlikely that this limitation will impact you.

HOW HELPFUL WAS THIS PAGE?
New Stuff!