Overview of Template Groups
As a marketer, you often need to create email campaigns for different languages (multi-locale) or with multiple versions to test (multi-variant). For example, if you want to run a campaign for 20 locales, each with two variants, you would normally set up 40 separate content combinations. These combinations are related because they deliver the same core message.
The Template Groups feature in MoEngage helps you manage these related templates efficiently. Instead of manually adding content for every combination, you can group templates that share a common message but differ by locale or variant.
MoEngage allows you to create Template Groups by passing the locale, variant, and group_id parameters in the Create Email Template API.
When you use Template Groups, MoEngage imports and renders the mapped templates together. Perform the following steps to access template groups while creating email campaigns:
- Navigate to Step 2: Content.
- In the Imported templates tab, you can view the template groups created using the Create Email Template API.
- Select a template group, and MoEngage automatically populates content for all locale and variation combinations.
This feature saves you time because you need not add templates manually for all locale and variant combinations. In the above example of 40 combinations, it takes just one click to populate all of the relevant content.
Create and Push a Template Group to MoEngage
If you create your email content outside MoEngage, such as in a Content Management System (CMS), you can push it to MoEngage using the Create Email Template API of MoEngage. This is useful when you plan to run multi-locale campaigns or conduct A/B tests.
To associate individual templates with a template group, ensure you include the locale, variant, and group_id parameters when you make the API call. When passing group_id in the API, ensure all templates intended for the same group share the identical group_id value. The locale and variant parameters then act as unique identifiers to differentiate each individual template within that shared group_id.
Preview a Template Group
Perform the following steps to preview a template group:
- In Step 2: Content of the email campaign creation journey, click the Imported templates tab. Template groups can be identified with a badge indicating the total number of variations in the template group.
- Hover the mouse on the thumbnail to see the Preview icon.
- Click the Preview icon. The Preview template pop-up is displayed. You can view the preview of each template based on its locale and variation.
- From the Locales and Variations drop-down lists, select the required values to see the associated template. If a locale does not have a variation, the Variations drop-down list is unavailable.
- Click Choose and Continue to add this template group to the email campaign. All templates in the group will get added to the campaign automatically.
Add a Template Group to Email Campaigns
- In Step 2: Content, go to the Imported templates tab.
- Hover the mouse on the thumbnail of the required template group.
- Click the template group to add it to the email campaign. MoEngage automatically creates all locales and all variations within locales, and populates the same on the Step 2: Content page.
MoEngage maintains the number of variations consistent across all locales in the template group. If some locales do not have variations, MoEngage adds blank variations in those locales. In that case, the following warning is displayed:
MoEngage adds warning icons for locales and variations to help you quickly identify that there are blank variations where you must add content. After a template group is added, you can also edit the content of individual templates within the group directly on this page, or re-import updated templates via the Create Email Template API.
Change a Template Group
To change the selected template group:
- Click the ellipsis icon next to the Template actions (custom) button.
- Click Change template. You are back in the Import templates tab.
-
Select the required template.
When you select a template group, the Change template pop-up is displayed, prompting you for confirmation.
Click Add group to replace all the existing locales and variations with the new group selected.When you select an individual template, the Change template pop-up is displayed, prompting you for confirmation.
Click Replace the group to replace the whole group.
Click Update current variation to add the individual template to the variation template.
Add a Locale to the Email Campaign
- Click + Locale to select another locale. A dialog box is displayed where you can search all locales in the system.
- Select the required locales and click Add. The Choose content for new added locales pop-up is displayed.
- For each locale, from the Choose locale content from drop-down list, select the locale content from the following options:
- Create new content
- Copy from locale Default
- Copy from locale <name>
- Click Done. To make the number of variations consistent across locales, MoEngage adds blank variations for the newly added locales. You must add content before proceeding to the next step.
info |
Information To add a new locale to the MoEngage system, click + Locale on the Imported templates tab and then click + New Locale. |
Add or Remove a Variation
- Click + Variation to add a variation to a locale. A pop-up window is displayed.
- Choose one of the following options:
- Click Copy Variation <number> to copy an existing variation with its content in the selected locale. MoEngage adds the copied variation to all other locales in the template group.
- Click + New Variation to add a new variation. MoEngage adds this blank variation to the selected locale and all other locales in the template group. You must add content before proceeding to next step.
- To remove a variation, click the delete icon on the variation to be removed.
MoEngage removes the variation from the selected locale and all other locales.
Copy Email Addresses to All Variations
You can copy the Sender name, From email address, and Reply-to email address from the default variation of the default locale to all other combinations.
- Click the ellipsis icon next to the Template actions (custom) button. A shortcut menu is displayed.
- Click Copy to all variations. This copies the Sender name, From email address, and Reply-to email address from the default variation of the default locale to all other combinations.
Related Articles
Continue with email campaign creation.