> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hightouch.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Build an in-app message

> An in-app message's content is a template with its fields filled in. Choose a template, fill in its fields, set the priority, and preview the content against real profiles.

## Overview

You write an in-app message by filling in a template. The template, set up by an admin with your app developers, decides which fields the message has, such as a headline, an image, and a button label. Your app decides how those fields look on screen. See [Build an in-app template](https://docs.hightouch.com/native-delivery/in-app/templates.md).

This page covers the message's content. You open the content editor from the **Content** card of an in-app campaign or a **Send in-app** journey tile. The campaign or journey decides who receives the message and how long it stays in their inbox. See [Send an in-app campaign](https://docs.hightouch.com/native-delivery/in-app/campaigns.md) and [Send in-app messages from a journey](https://docs.hightouch.com/native-delivery/in-app/journeys.md).

## Before you begin

* **An in-app campaign or a Send in-app tile:** Create one first, then open its **Content** card.
* **A published in-app template:** Without one, the editor shows **No in-app templates yet**. Ask an admin to [build one](https://docs.hightouch.com/native-delivery/in-app/templates.md).
* **Draft messages & campaigns:** Building messages requires this grant. See [Permissions](https://docs.hightouch.com/native-delivery/overview#permissions).

## Set the message content

**1. Choose a template**

In the content editor, click **Choose a template**. Select a template and click **Continue**. Each card shows the template's preview and its current version.

**2. Set the priority**

Choose a **Priority**. See [Set the priority](#set-the-priority).

**3. Optional: Choose push apps**

Under **Push apps (optional)**, select the apps that get a silent push when Hightouch adds the message to an inbox. See [Refresh inboxes right away](#refresh-inboxes-right-away).

**4. Fill in the fields**

Fill in each of the template's fields. The editor marks required fields. A field that reads **Leave empty to use each recipient's** followed by a column name fills in from each recipient's profile when you leave it empty.

**5. Save**

Click **Save changes**. In a journey, also save the tile and the journey. See [Add an in-app message to a journey](https://docs.hightouch.com/native-delivery/in-app/journeys.md#add-an-in-app-message-to-a-journey).

The preview beside the form updates as you type. It uses the HTML preview from the template, so it approximates how your app lays out the message.

## Fill in the fields

Each field's control matches its type in the template:

* **Text:** Type the text. If the template allows personalization, click the variable icon in the field (**Add a variable**) to insert a profile value. See [Personalize the message](#personalize-the-message).
* **Number, Select, and Toggle:** Enter or select a value.
* **Date:** Select a date, and a time if the field includes one. The caption under the field says which time zone the value is in.
* **Image:** Click **Choose image** to pick from your [assets](https://docs.hightouch.com/context-hub/assets.md), or enter an **Image URL** if the template allows external URLs. Add a **Caption** if the field has one.

Hightouch checks each value against the template's rules, such as a character limit or an allowed image format. A value that breaks a rule shows an error under its field, and you can't save until you fix it.

## Set the priority

**Priority** decides which message your app shows first when a recipient has more than one. The SDK sorts **High** first, then **Medium**, then **Low**. **Default** sorts after every other level, and it's the setting for new messages. Among messages with the same priority, the most recent comes first.

Use **High** for messages that should win over everything else on the same screen, such as an urgent service update. Leave routine messages on **Default** so they don't crowd out the ones you've ranked.

## Refresh inboxes right away

Your app checks for new messages when it opens. To place a message on devices sooner, select the apps under **Push apps (optional)**. Hightouch then sends those devices a silent push when it adds or removes the message, and the app refreshes its inbox without showing a notification.

Without a push app, the message appears the next time the app checks for messages. The list shows the apps that an admin turned on in **Delivery > Settings > Apps** and that the message's template allows.

## Personalize the message

Text fields can include profile values from your Delivery parent model if the template allows personalization. Click the variable icon in the field, or type a variable such as `{{ firstname }}`. Hightouch fills it in for each recipient when it places the message. A profile value that's empty for a recipient renders as blank text. See [Personalize a message](https://docs.hightouch.com/native-delivery/personalization.md).

Personalization in in-app messages differs from email in three ways:

* Only text fields that the template allows can use variables.
* A journey's in-app message can use parent model columns, but not properties of the event that started the journey.
* In-app messages have no content blocks or localization. You write each message in one language.

## Preview against a real profile

Open the **Preview** tab to render the message with a real profile from your audience. Variables and profile defaults show that person's values. Use the device control to switch between **Phone portrait**, **Phone landscape**, and **Desktop**.

In the **Profile** panel, click the shuffle icon to render a different person, or the search icon to preview a specific profile. You can also edit a value in the panel to see how an edge case renders, then reset the profile to its real values. See [Preview and test](https://docs.hightouch.com/native-delivery/preview-and-test.md).

Test sends aren't available for in-app messages. To see a message on a device, send it to an audience that contains only your own test profile.

## Change the template

Click **Change template** to switch the message to another template, or to the current version of its template. Changing the template clears every field value, and there's no confirmation, so do it before you fill in the fields.

A message keeps the template version you built it with. When an admin publishes a new version of the template, your message stays the same until you choose the template again.

## Common errors

### This content can't be saved yet

**Cause:** One or more values break the template's rules, such as a missing required field or an image in a format the template doesn't allow.

**Solution:** Fix each error listed under its field or in the alert. If a field's profile default refers to a column that's no longer on the parent model, ask an admin to update the template.

### No push apps allowed

**Cause:** The message's template doesn't allow any apps.

**Solution:** Ask an admin to add your apps to the template under **Apps**. The message still reaches recipients on their next inbox sync without one.

## Next steps

* [Send an in-app campaign](https://docs.hightouch.com/native-delivery/in-app/campaigns.md): set the audience and schedule, then activate the campaign.
* [Send in-app messages from a journey](https://docs.hightouch.com/native-delivery/in-app/journeys.md): set the tile's expiration and start the journey.
