Personalizing In-App Messages for Better Results in Braze

A hand holding a cream card with a green edge above a station ticket gate in a bright concourse.

Braze in-app message personalization uses Liquid, default values and Connected Content, and the timing of each decides what a user sees. Plain profile attributes are prepared before the trigger, while some tags make a message templated so Braze resolves them when the trigger fires. Settle that timing, and a fallback for every missing value, before you write any copy.

Key Takeaways

  • Liquid works in the header and body of an in-app message, and Connected Content can insert any information accessible via API.
  • A standard in-app message is pulled in at session start and cached, with its abort logic running before the trigger.
  • Tags such as event_properties or connected_content make the whole message templated, so Braze resolves it when the trigger occurs.
  • A default value shows for empty values but not for blank values, so a stray space still renders as a gap.
  • Re-evaluating eligibility before display needs a network connection and adds a request, so it suits only values that go stale.
  • A trigger that sends data and fires the message together cannot use that data, so use two separate triggers.

What does Braze in-app message personalization cover?

Personalization in an in-app message is Liquid. Braze documents Liquid as an open-source template language created by Shopify. The header and body of an in-app message both accept it.

Braze supports Liquid up to and including Liquid 5 from Shopify, so check any borrowed snippet against the Liquid reference. You can pull in custom attributes, nested custom attributes and custom event properties, alongside profile fields such as first name.

Connected Content goes further. It lets you insert any information accessible via API directly into your messages. Each source resolves at a different moment, and that timing is the subject of the next section.

When does personalization resolve for an in-app message?

In-app messages are pulled in by the device at session start and cached there. For a standard message, the logic that decides whether to abort runs before the trigger has occurred. A templated message works differently, and the table sets the two side by side.

Message typeHow it reaches the deviceWhen Liquid resolvesWhat changes for your copy
StandardEligible triggers delivered at session start, message cachedAbort logic runs before the triggerTreat values as fixed when Braze prepares the message
TemplatedSelected by the re-evaluate option or by certain Liquid tagsWhen the trigger event occurs and the device requests the payloadThe SDK reevaluates display at trigger time and logs aborts

We recommend planning on a standard message's values being fixed at preparation. The documentation places its abort logic before the trigger, so that is the safe rule.

Braze delivers a message as templated when Re-evaluate campaign eligibility before displaying is selected. It does the same when the message contains any of a short list of Liquid tags.

The in-app message FAQ names them as canvas_entry_properties, connected_content, catalog_items, catalog_selection_items and event_properties, plus SMS variables. One tag from that list changes delivery for the whole message. Adding a single event property to a finished message is therefore a delivery decision as well as a copy decision.

What should a fallback do when profile data is missing?

Give a tag no default and the field is missing or not set on the user, and it will be blank in the message. A greeting with a gap in it reads worse than a plain one. The default filter covers any Liquid data type with the value empty, nil or false.

That includes strings, booleans, arrays, objects and numbers. The example below shows the form.

Hi {{ ${first_name} | default: 'Valued User' }}, welcome back.

One detail is easy to miss. The default value shows for empty values but not for blank values. A blank value holds only whitespace, such as spaces, so a profile field containing a single space will render as a gap even with a default in place.

Our suggestion: write the fallback first. Draft the line a user with an empty profile would see, then add the personalized version on top. If the default line isn't good enough to ship, the personalization is carrying copy that isn't.

When does an in-app message need fresher data?

For campaigns, Braze offers Re-evaluate campaign eligibility before displaying. It suits cases where eligibility depends on frequently changing attributes or the message needs current profile data. With the option selected, Braze also evaluates Liquid and Connected Content immediately before displaying the message.

The option requires a network connection and adds a request before display. Braze advises against it for messages that must trigger while the user is offline.

A second trap sits in how the data arrives. Suppose one trigger both sends data to Braze and fires the in-app message. The message can't use that newly updated profile data, even with a scheduled delay.

The documented answer is two separate triggers, one to send the data and one to trigger the message. We recommend treating re-evaluation as the exception.

Build each message without it. Switch it on only where a value can go stale within a session, such as a balance that changes after a purchase.

How do you keep a personalized message fast?

Braze delivers eligible triggers to the device on session start. Preparing many messages with Liquid can delay session start and affect app performance. If that work takes more than a few seconds, Braze may defer the remaining Liquid rendering.

Deferred messages render when triggered. A message might not be delivered if its Liquid logic takes too long to resolve.

The in-app message prep guide gives several ways to lighten the load. Target only users who can perform the campaign's trigger. Reduce complex branching or looping Liquid logic.

Give important campaigns a higher priority so Braze renders them first. Enable re-eligibility only when users should receive a message multiple times.

Keep personalized values and conditional rules inside the message, and host reusable CSS, JavaScript and media in the media library, then link to them. Media library stylesheets and scripts don't evaluate Liquid, so the user's device can cache them.

How should you test personalization before launch?

Braze says to always preview and test your message before sending. The Preview and Test area offers three views. You can preview as a random user, a selected user (by email address or external ID), or a custom user.

For a custom user, Braze offers inputs for all available attributes and events. The FAQ lists two reasons a delivered message can differ from the preview. The preview user's profile can differ from the recipient's, and templated content can resolve differently at send time than in preview mode.

That gap is why a single preview is not a test. We suggest running these checks in order:

  1. Preview as a custom user with every personalized field empty, and confirm the default line reads well on its own.
  2. Preview as a custom user with every field filled, using the longest realistic values, and confirm nothing wraps badly.
  3. Preview as a selected user whose profile matches your real audience.
  4. Send a test to a device and fire the same trigger production will use.
  5. If the message has several pages, check the Liquid on every page before you change anything.

What does a worked example look like for a retailer?

Take a hypothetical retailer building a welcome-back modal. It wants a first name, a loyalty status, a points balance and a product suggestion from Connected Content. This is an illustration, not client work, and it uses no figures.

Start by sorting each element by when it resolves and what a miss costs. First name gets a plain default. Loyalty status becomes a boolean with a default of false, so users with no status set land in the non-member branch instead of a gap.

The points balance is the awkward one. If it should reflect a purchase made in the same session, it needs fresh data. That points to re-evaluation plus a separate trigger for the data update.

The product suggestion is the costliest element. Connected Content makes the message templated and moves resolution to trigger time. If the call is slow, the message might not be delivered at all.

Our suggestion for the launch order: start with name and status. Add the points balance behind re-evaluation in a second release, then add the live product line last, once the first two behave in testing. Each step adds a network dependency or a delivery change, so the order runs from cheapest to costliest.

Which failure modes should you plan for?

The blank default is the first. A default only fires for empty values, so a stray space defeats it.

We recommend cleaning the data at source rather than adding more Liquid. If blank or missing values trace back to fragmented profiles, CustomerIK's customer data management service covers identity resolution and data governance.

The same-trigger race is the second. A trigger that sends data and fires the message together cannot use that data, so split them.

The one-page break is the third. Pages in a paginated message are not independent. Liquid appearing as plain text can point to a syntax error on any page, so check every page.

Curly quotes are the fourth. Text pasted from some editors carries curly quotes that can cause issues in your Liquid, so use straight quotes.

The fifth involves images. Braze's guidance is that an image URL pulled in with Liquid or Connected Content must begin with https. Using the insecure form will crash your app, so treat that as a launch check.

How does this connect to the rest of the programme?

Personalization sits behind an audience and a trigger. Start with Segmenting Users for Targeted In-App Messaging in Braze and How to Set Up In-App Message Triggers in Braze. How to Measure In-App Message Engagement in Braze covers reading the results once the message is live.

For Liquid depth, see Personalization at Scale: Using Braze Liquid Tags. The timing question has its own treatment in Real-Time Personalization in Braze: What Resolves When. How to Avoid Common Personalization Pitfalls in Braze widens the lens beyond in-app messages.

Profile quality sits underneath all of it. CustomerIK's case study on unifying fragmented guest profiles covers the identity and data work behind personalized messaging.

As a Braze implementation partner, CustomerIK recommends deciding the resolution timing and the fallback for every personalized element before any copy is written. Both choices change what the message can safely say.

Frequently Asked Questions

1. Can I use Liquid in the header and body of an in-app message?

Yes, Braze documents that you can use Liquid and other personalization when you enter your header and message copy.

2. What happens if a profile field is empty and I set no default?

The field will be blank in the message. Adding a default filter gives users a readable fallback instead.

3. What is a templated in-app message?

It is a message that Braze delivers as templated, either because Re-evaluate campaign eligibility before displaying is selected or because the message contains certain Liquid tags, such as connected_content or event_properties.

4. Does Connected Content run when a user taps a button?

For templated messages, Connected Content and other Liquid tags resolve when the trigger event occurs and the device requests the message payload. Multiple buttons can reference the same Connected Content response without triggering additional calls on click.

5. Do I need to test Liquid before sending?

Yes, Braze highly recommends testing all messages that use Liquid before sending, to reduce the risk of errors or of using unsupported Liquid.

Sources

CustomerIK is a Braze implementation partner working across onboarding, technical integration, marketing operations and customer data management.

If you're deciding when each part of your in-app messages should resolve, let's talk.

Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website.

Accept all cookies
Accept all cookies

These items are required to enable basic website functionality.

Always active

These items are used to deliver advertising that is more relevant to you and your interests.

These items allow the website to remember choices you make (such as your user name, language, or the region you are in) and provide enhanced, more personal features.

These items help the website operator understand how its website performs, how visitors interact with the site, and whether there may be technical issues.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.