You are here:
Create a Mobile Experience Template
Create an experience template to define how personalized content renders in your mobile app. A mobile template references a component registered in connector setup, which handles the native rendering. The template carries the content data the component displays.
Required Editions
| User Permissions Needed | |
|---|---|
| To create experience templates: | Personalization Admin |
Mobile experience templates work like web experience templates, except that instead of defining HTML, a mobile template selects a component from your connector setup.
- The mobile connector exists, and the components for this template are registered in connector setup.
- The mobile app supports the component this template references.
- A content schema is available for the data this template uses.
- In the Personalization app, select Experience Templates, and then select New.
-
Define the template properties.
Field Action Data Space Select the data space. Channel Select the mobile channel. Experience Template Name Enter a name for the template. Experience Template API Name Accept the default or enter a custom API name. Description (Optional) Enter a description. Thumbnail Image (Optional) Upload a thumbnail. The thumbnail appears on the template selection card. State Set the initial state. - Select Next.
- Select the mobile app connectors that can use this template, and then select Next.
-
Choose the template type and creation method.
- For Experience Template Type for Mobile, select Mobile Component. The available components come from the components registered for this connector.
-
For the creation method, select one of the following.
Option When to Use Global Template Start from a prebuilt mobile component reference and starter variables. Blank Build from an empty template. - If you selected Global Template, select a global template.
- Select Next.
-
Define and map template variables.
- Select the default content schema. The content schema defines the data fields available to your template.
-
Review or define your template variables. Variables act as placeholders that collect field values from the content schema.
- If you use a global template, the variables list is pre-populated. Review or update the label and name for each variable.
- If you start from a blank template, select Add Variable and enter a label and name for each.
-
For each variable, set the Default Value to one of the following.
Option When to Use Content schema attribute Use a field from the content schema to populate this variable. Static value Use a fixed value for every experience that uses this template. - To control variable behavior for advanced cases, use the row options menu to set required, overwriteable, schema path, static value, or delete.
- Select Next.
- Enter the component name defined in your app code. The component handles how this template renders.
- Select Save to save the template, or select Save & Activate to make the template available for experiences immediately.
An active template appears in the template picker when business users create a personalization experience for this mobile channel.
Did this article solve your issue?
Let us know so we can improve!
