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

# Templates

> Manage campaign templates across all MoEngage channels from a central hub. Create, edit, duplicate, and share templates to streamline workflows.

# Introduction

The *Templates* feature of MoEngage streamlines content creation and management by providing effective tools. Managing templates ensures consistency in branding, saves time and effort in organizing them, and helps in team collaboration.

This *Templates* page is a central hub for all your template dependencies where you can collectively organize and manage all your templates for multiple channels in one place and retrieve them without any hassle.

This feature facilitates you to perform the following:

* Create templates for different channels.
* Edit templates to your requirements using the **Drag and drop** editor or **Custom HTML editor**.
* Manage templates in folders and share folders across teams.
* Share templates individually across teams.
* Preview templates before sending them to users.
* Duplicate and customize templates for personalized communications.
* View and sort templates based on your preferences.
* Check the version history of your template.

# Manage Templates

## Create Template

You can create templates for different channels and manage them in one place.

<Info>
  The **Template** feature is supported only for Email and On-site channels.
</Info>

1. On the left navigation of your MoEngage dashboard, select **Content > Templates**.
2. Click the **+** **Create template** button in the upper right corner of the window. You can create templates for **Email** and **On-site.** Select the channel for which you want to create a template. <img src="https://mintcdn.com/moengage/S2vOz7ciYYqlhjCf/images/moengage_6aa037.png?fit=max&auto=format&n=S2vOz7ciYYqlhjCf&q=85&s=995510b83ede8acf444bea6a319751ab" width="2720" height="150" data-path="images/moengage_6aa037.png" />

Create templates for Email Create templates for On-site Messaging

1. **Choose Template:** You can choose a template from the pre-built templates or from saved templates based on the following editors: [**Drag and drop**](/user-guide/campaigns-and-channels/email/create/create-content-with-the-drag-and-drop-editor) editor or [**Custom HTML editor**](/user-guide/campaigns-and-channels/email/create/create-content-with-custom-html-editor).
2. **Template details:** Provide the following **Template details**.

   1. **Name:** Enter the name of your template.
   2. **Tag:** In the **Tags** list, you can select the tags to add to your template.
   3. **Message Type:** Select the message type as **Promotional/Marketing** or **Transactional** based on which you want to send to your users.
   4. **Team:** Select the teams that can access this template.
   5. **Destination to save:** Select the destination to save this template. You can save it within folders or save it directly without folders.
   6. **Communication Type:** Select the communication type, **Engage** or **Inform.**
3. **Email details:** Provide the following **Email details**.
4. **Sender Details:** Provide the following sender's details of the email.
   1. **Preview text:** You can enter the preview text, which must appear in your user's inbox.
   2. **Sender Name:** Enter the sender's name.
   3. **From email address:** In the **From email address list,** select the email ID\*\*.\*\* This address is fetched from the default connector, which is used only for testing purposes. <img src="https://mintcdn.com/moengage/2FjM3dGfEH1CYo8k/images/moengage_6912a7.png?fit=max&auto=format&n=2FjM3dGfEH1CYo8k&q=85&s=eacf0578ff287ab6f5e5c59dde1dd4f4" width="2632" height="880" data-path="images/moengage_6912a7.png" />
5. **Attachments:** You can add attachments from **Local file**, **URL** of your attachments, or add **Personalized attachments**. For more information, refer [here.](/user-guide/campaigns-and-channels/email/create/personalize-email-content) You can hide the email details by clicking this <img src="https://mintcdn.com/moengage/rmgWdhG7TCISpEIz/images/moengage_d6cff7.png?fit=max&auto=format&n=rmgWdhG7TCISpEIz&q=85&s=3d4c4d507348195463af4e7f8f3088d2" width="78" height="72" data-path="images/moengage_d6cff7.png" /> icon. <img alt="Screenshot 2025-02-17 at 12.23.35 PM.png" src="https://mintcdn.com/moengage/0iWkm50wROjmHH3Z/images/moengage_d134c9.png?fit=max&auto=format&n=0iWkm50wROjmHH3Z&q=85&s=e099a63ebe537c45d0ff475c35215df7" width="2760" height="704" data-path="images/moengage_d134c9.png" />
6. **Template Editor:** Configure your template using the provided tools. For more information, refer [here](/user-guide/campaigns-and-channels/email/create/create-content-with-the-drag-and-drop-editor). <img src="https://mintcdn.com/moengage/S5VM4C7aiU6sct6c/images/moengage_074351.png?fit=max&auto=format&n=S5VM4C7aiU6sct6c&q=85&s=470c4daca4419e8dda4a87f98da70490" width="2728" height="1096" data-path="images/moengage_074351.png" />
7. Click **Preview** in the upper right corner of the template editor window to preview your template and its personalization. For more information, refer [here](/user-guide/campaigns-and-channels/getting-started/message-personalization/personalized-preview). <img src="https://mintcdn.com/moengage/epqsPEpMsGQCYy1r/images/moengage_5e8307.png?fit=max&auto=format&n=epqsPEpMsGQCYy1r&q=85&s=658f006f461a5eb81d31f16c94aca85c" width="2854" height="1620" data-path="images/moengage_5e8307.png" />
8. **Test Campaigns:** You can test your campaigns to ensure the templates are displayed as you configured them before sending them to your users. <img src="https://mintcdn.com/moengage/QRy8rcYszbTJNwGr/images/moengage_b0a44e.png?fit=max&auto=format&n=QRy8rcYszbTJNwGr&q=85&s=3aef28b48197c6f4f20f3d233ff7830f" width="2824" height="282" data-path="images/moengage_b0a44e.png" />
   1. Test the campaign you created by selecting **Custom Segment** or by entering multiple email addresses separated by a comma.
   2. To test whether the personalized data is rendering correctly for users, you must test the template with the custom segment.

      <Info>
        Test campaigns with any custom segment will target a maximum of 50 users from the chosen custom segment.
      </Info>
   3. To use the sample data you personalized in your template for testing, turn the **Use sample data from the personalized preview for the text** toggle on. **<img src="https://mintcdn.com/moengage/t9d2bz7zij1iE1iP/images/moengage_9d3c04.png?fit=max&auto=format&n=t9d2bz7zij1iE1iP&q=85&s=918b9f4bf48c18ea864b7abde230a406" width="2768" height="364" data-path="images/moengage_9d3c04.png" />**
9. Click **Save and Publish** to use this template in campaigns, or click **Save as draft** to continue editing later.

<Info>
  Templates that are in drafts cannot be used in campaigns
</Info>

When selecting On-site, you will be prompted to choose Web, Mobile Web, or both as your preferred platform. <img src="https://mintcdn.com/moengage/epqsPEpMsGQCYy1r/images/moengage_5da82e.png?fit=max&auto=format&n=epqsPEpMsGQCYy1r&q=85&s=882439a79c18cea18679ceb5cc48c0ce" width="1084" height="400" data-path="images/moengage_5da82e.png" />

1. **Choose Template:** You can create a template from scratch or modify the existing template.
2. Provide the following  **Template details**.

   1. **Name:** Enter the name of your template.
   2. **Tags:** You can add **Tags** to your template if needed.
   3. **Platforms:** Select the targeted platforms of your template. The available platforms are the Web, Mobile Web, and TV.
      <Info>
        If the TV platform is unavailable in your dashboard, contact your MoEngage Customer Success Manager (CSM) or the Support team.
      </Info>
   4. **Team:** Select the teams that can access this template.
   5. **Destination to save:** You can choose the destination folder to which your template should be saved. <img alt="Screenshot 2025-01-27 at 1.54.06 PM.png" src="https://mintcdn.com/moengage/S5VM4C7aiU6sct6c/images/moengage_08381c.png?fit=max&auto=format&n=S5VM4C7aiU6sct6c&q=85&s=f33cfb40b4331de675a0308578499dd2" width="2710" height="1170" data-path="images/moengage_08381c.png" />
3. ****Template Editor:**** You can create a template using the **Drag & drop editor** or **Custom** **HTML editor**. For more information, refer here. <img src="https://mintcdn.com/moengage/fUSb9kG75-iJ0JuL/images/moengage_e4798e.png?fit=max&auto=format&n=fUSb9kG75-iJ0JuL&q=85&s=9e044c215e8b9c32752725f39969fe97" width="2854" height="1406" data-path="images/moengage_e4798e.png" />
4. **Display Settings:** This option allows you to configure the display settings for your campaign.  <img src="https://mintcdn.com/moengage/N1a7P_mcSpm-5bMa/images/moengage_568d7e.png?fit=max&auto=format&n=N1a7P_mcSpm-5bMa&q=85&s=29419d3fb509851ff465fa8219134421" width="2576" height="278" data-path="images/moengage_568d7e.png" />

   <Info>
     Setting options may vary based on the template type, and the description for each setting is explained in the following table.
   </Info>

   | Display Setting                                                                | Template Type               | Description                                                                                                                                                                                                                                                 |
   | ------------------------------------------------------------------------------ | --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | **Show this message if another campaign is already displayed on the webpage.** | Popups, Nudges, and Banners | Selecting this checkbox allows you to show this OSM campaign even if another OSM has already been displayed on the page. Note: For this to work, the campaign events that trigger the OSMs should be different.                                             |
   | **Keep this message in place on scroll.**                                      | Banner                      | Selecting this checkbox allows you to keep the Banner static.                                                                                                                                                                                               |
   | **This message will push the contents of the page down.**                      | Banner                      | Selecting this checkbox allows the banner to occupy the space at the top of the website without overlapping with the website's content. For this to work, the banner chosen should be positioned at the top, and the website's headers shouldn't be sticky. |
5. Click **Save and Publish** to use this template in campaigns, or click **Save as a draft** to continue editing later.

<Info>
  Templates that are in drafts cannot be used in campaigns.
</Info>

## Sort Templates

You can sort and view templates based on your requirements. The templates will be displayed based on your selection from the following:

* **All:** Shows all the available templates regardless of the channels.
* **Email:** Shows the templates created for Email.
* **On-site:** Shows the templates created for On-site.

1. **View by:** You can view templates by **Folders and templates** or **Templates only**.
   * **Folders and templates:** This option allows you to view templates that are in folders and templates that are not in folders. <img alt="templates1final.png" src="https://mintcdn.com/moengage/QVZKszouQuxXOzFr/images/moengage_1d3478.png?fit=max&auto=format&n=QVZKszouQuxXOzFr&q=85&s=5ae1d1ac24b7ddc287b11480102ae172" width="2750" height="1560" data-path="images/moengage_1d3478.png" />
   * **Templates only:** This option allows you to view all the templates regardless of the folders. <img alt="templates2final.png" src="https://mintcdn.com/moengage/rlD8iAX6JQFx0hql/images/moengage_b9f063.png?fit=max&auto=format&n=rlD8iAX6JQFx0hql&q=85&s=f1dbf5833d4b1a713413c840b4d0c400" width="2752" height="1448" data-path="images/moengage_b9f063.png" />
2. **Sort by:** You can sort templates by **Name** and **Last modified**.
   * **Name:** This option aligns the template by template names in alphabetic order. Using this <img src="https://mintcdn.com/moengage/fVqFKGn_bbcOn3ck/images/moengage_274133.png?fit=max&auto=format&n=fVqFKGn_bbcOn3ck&q=85&s=5ee87553f413b091af5fe5814035218d" width="50" height="52" data-path="images/moengage_274133.png" /> icon, you can choose ascending (A->Z) or descending (Z->A).
     * **Ascending (A->Z):** This sorting option shows your templates in ascending order based on the template names.
     * **Descending (Z->A):** This sorting option shows your templates in descending order based on the template names. <img src="https://mintcdn.com/moengage/prFQLkdcYp4xSt9t/images/moengage_6a17d2.png?fit=max&auto=format&n=prFQLkdcYp4xSt9t&q=85&s=2152804a2638581f592fd5c7371f71f5" width="2348" height="180" data-path="images/moengage_6a17d2.png" />
   * **Last Modified:** This option aligns the template based on the recent modification made to any template. Using this <img src="https://mintcdn.com/moengage/fVqFKGn_bbcOn3ck/images/moengage_274133.png?fit=max&auto=format&n=fVqFKGn_bbcOn3ck&q=85&s=5ee87553f413b091af5fe5814035218d" width="50" height="52" data-path="images/moengage_274133.png" /> icon, you can choose the modifications from Old to New or New to Old to sort the templates.
     * \*\*Old to New:\*\*This sorting option shows the templates based on the changes made in the past (Old) to recent changes (New).
     * **New to Old:** This sorting option shows the templates based on the changes made recently (New) to the changes made in the past (Old). <img src="https://mintcdn.com/moengage/fUSb9kG75-iJ0JuL/images/moengage_e4790d.png?fit=max&auto=format&n=fUSb9kG75-iJ0JuL&q=85&s=2bf701ee0dedc2a4e6ac004acea13cc6" width="2366" height="180" data-path="images/moengage_e4790d.png" />

## Filters

You can segregate templates as required using the following filters: <img src="https://mintcdn.com/moengage/OQ0V9ibjQLpsyCSD/images/moengage_0f1d26.png?fit=max&auto=format&n=OQ0V9ibjQLpsyCSD&q=85&s=767318375417b47b6d2c22d7df121dd7" width="2796" height="1476" data-path="images/moengage_0f1d26.png" />

1. **Template source:** You can select the template source from which you want to filter templates. You can filter templates from All templates, Saved templates, and API templates.
2. **Tags:** You can select the tags associated with the template you want to filter.
3. **Message Type (Only for Email):** You can filter templates based on the message type.
4. **Status:** You can select the status of the template which you want to filter.
5. **Last updated by:** You can fetch the template based on users who updated it recently.
6. **Team:** You can filter templates based on the team that has access to the template.
7. **Communication type:** You can filter communication from the following options: **All, Engage,** and **Inform.**
8. **Editor:** You can filter templates based on the editor in which your template has been created.
9. **Platform (only for On-site):** You can filter templates based on platforms such as **Web, Mobile,** and **TV.**
10. **Content (only for On-site):** You can filter templates based on their content, such as Timers, carousels, etc.
11. **Template type (only for On-site):** You can filter templates based on the template type, such as Banner, pop-up, etc.
12. **Use case (only for On-site):** You can filter templates based on the use cases with which they are associated.
13. **Show shared items only:** Enabling this option allows you to filter the templates and folders shared with other teams.

##

## Template actions

You can perform the following actions in templates by clicking this <img src="https://mintcdn.com/moengage/0iWkm50wROjmHH3Z/images/moengage_d345d7.png?fit=max&auto=format&n=0iWkm50wROjmHH3Z&q=85&s=decb09655f26ea42a54cc3649b057a2c" width="48" height="50" data-path="images/moengage_d345d7.png" /> icon in the folder.

<img src="https://mintcdn.com/moengage/cVruC-B7I1TnIZ0h/images/moengage_da88e7.png?fit=max&auto=format&n=cVruC-B7I1TnIZ0h&q=85&s=079a51dc54949eacb5a4c47762524878" width="1044" height="1054" data-path="images/moengage_da88e7.png" />

Click this <img src="https://mintcdn.com/moengage/0iWkm50wROjmHH3Z/images/moengage_d345d7.png?fit=max&auto=format&n=0iWkm50wROjmHH3Z&q=85&s=decb09655f26ea42a54cc3649b057a2c" width="48" height="50" data-path="images/moengage_d345d7.png" /> icon in the template. The following actions will be populated.

1. **Preview:** When you select the preview action, the left window pane lists an array of templates, which you can preview by selecting one. You can change the template by clicking the arrow <img src="https://mintcdn.com/moengage/CaPmX0z_ys8cr0ms/images/moengage_087a78.png?fit=max&auto=format&n=CaPmX0z_ys8cr0ms&q=85&s=b5278b1faae92ea1139622527a48bb34" width="62" height="82" data-path="images/moengage_087a78.png" />  icon beside it. On the right side of the window, you can check details like version history, creator details, and so on. You can also preview templates by directly clicking on the existing templates displayed on the main screen. <img src="https://mintcdn.com/moengage/M3SzEdkQVgGAjJCt/images/moengage_756bb3.png?fit=max&auto=format&n=M3SzEdkQVgGAjJCt&q=85&s=94b476c700b1d2f025924740e2c6927a" width="2728" height="1550" data-path="images/moengage_756bb3.png" />
2. **Share:** This option allows you to share templates with multiple teams. Sharing folders/templates with multiple teams will allow them to access and use your templates and duplicate them to edit further for their requirements. While sharing your templates with other teams, the team members will receive an email regarding your template being shared.
3. **Edit:** You can edit templates by choosing the existing templates you created or from the pre-built templates available.
   1. Select a template that you want to edit. You can edit the template details, such as Name, Tags, Teams, Destination, and Platform.
   2. If it is an email template, edit the email details, such as **Sender details** and **Attachments.** For more information, refer [here](/user-guide/campaigns-and-channels/email/create/create-an-email-campaign). <img src="https://mintcdn.com/moengage/wIFGWsQFEjsz2j4v/images/moengage_e0dcfb.png?fit=max&auto=format&n=wIFGWsQFEjsz2j4v&q=85&s=fcd92ab8a83ae6ceeab60e5a4cf4f088" width="2788" height="1370" data-path="images/moengage_e0dcfb.png" />
   3. If it is an On-site template, you can edit it using the tools provided. For more information, refer [here](/user-guide/campaigns-and-channels/on-site-message/create/osm-editor). <img src="https://mintcdn.com/moengage/epqsPEpMsGQCYy1r/images/moengage_5e5f81.png?fit=max&auto=format&n=epqsPEpMsGQCYy1r&q=85&s=ee6a67c45e4813767d05762721253060" width="2788" height="1340" data-path="images/moengage_5e5f81.png" />
   4. Click **Save as new and Publish** to save it as a new template, or click **Update and Publish** to update the template with your changes.
   5. **Editing templates associated with campaigns:** While editing templates, if its apart of any active or scheduled campaign it will prompt the details of the campaign where the templates are associated. You can **Save template & update campaign** (which updates the template associated with the email campaign) or to **Save template** ****without updating campaigns.****

      <Info>
        In On-site messaging, you cannot edit templates associated with any active or scheduled campaigns
      </Info>

      <img src="https://mintcdn.com/moengage/xaH8HoR16_YVDek5/images/moengage_cd0571.png?fit=max&auto=format&n=xaH8HoR16_YVDek5&q=85&s=c73b67aa7391c0fe1b781a8a07b1477e" width="1632" height="442" data-path="images/moengage_cd0571.png" />
4. **Duplicate:** This option allows you to duplicate templates and make further edits. You can manage multiple versions of your current template. For example, you can manage multiple versions of the same template to target customers based on their region, with their local languages and occasional themes.
5. **Rename:** This option allows you to rename the template.
6. **Move:** This option allows you to move the template to a folder and between folders.
7. **Delete:** This option allows you to delete templates. If you delete templates that are not part of any active campaigns, your folder gets deleted directly.
   * **Delete templates associated with the email campaigns:**  If you try to delete templates associated with any active and scheduled campaign, a prompt will appear with details of the campaign and ask you to stop the corresponding template before deleting it.
     <Info>
       In On-site messaging, you cannot delete templates that are associated with any active or scheduled campaigns.
     </Info>
     <img src="https://mintcdn.com/moengage/fVqFKGn_bbcOn3ck/images/moengage_29049f.png?fit=max&auto=format&n=fVqFKGn_bbcOn3ck&q=85&s=960788c2e6c3b48b47e62a2ed532eb78" width="1632" height="442" data-path="images/moengage_29049f.png" />

# Manage Folders

You can create folders to manage templates for separate campaigns and channels and share them across teams. For example, to send promotional messages from an email campaign, you can choose promotions as a message type, create templates, and manage them under a folder named *email*. You can also manage another subfolder for transactional templates.

<Info>
  You can manage only one level of subfolder in a folder
</Info>

1. Click **Create folder** from the title bar. <img alt="Screenshot 2025-02-24 at 11.20.45 AM.png" src="https://mintcdn.com/moengage/-uVFLyK4XoHTd5WE/images/moengage_120767.png?fit=max&auto=format&n=-uVFLyK4XoHTd5WE&q=85&s=4aa9f29e9ab2b44eececf93dcc7ccdb6" width="2728" height="96" data-path="images/moengage_120767.png" />
2. Provide the following details in the **Create folder** dialog box:
   1. Enter the name of your folder.
   2. In the **Teams list,** select your teams.
   3. In the **Tag(s)** list, select tags for your folder and click **Create**\*\*\*\*\*\*.\*\*\*\*\*\* **<img alt="Screenshot 2025-01-24 at 6.58.02 PM.png" src="https://mintcdn.com/moengage/MkyldVVKHHCZ-kMR/images/moengage_aff538.png?fit=max&auto=format&n=MkyldVVKHHCZ-kMR&q=85&s=2b0b611c1237720ab855cc3430dc8c28" width="1202" height="836" data-path="images/moengage_aff538.png" />**

## Folder Actions

You can perform the following  actions in folders by clicking this <img src="https://mintcdn.com/moengage/0iWkm50wROjmHH3Z/images/moengage_d345d7.png?fit=max&auto=format&n=0iWkm50wROjmHH3Z&q=85&s=decb09655f26ea42a54cc3649b057a2c" width="48" height="50" data-path="images/moengage_d345d7.png" /> icon in the folder. <img alt="Screenshot 2025-01-29 at 2.16.32 PM.png" src="https://mintcdn.com/moengage/iCae3l_a7eOJMTbz/images/moengage_210ff4.png?fit=max&auto=format&n=iCae3l_a7eOJMTbz&q=85&s=19d3a671b43f5421fde385d7a8a0a686" width="414" height="406" data-path="images/moengage_210ff4.png" />

1. **Share:** This option allows you to share the folder with multiple teams. Sharing folders with multiple teams will allow them to access the folders of your templates and duplicate them to edit further for their requirements. When you share any folder with other teams, the members of the team will get an email notification regarding the folder.
2. **Edit:** This option allows you to edit the folder name and tags associated with the folder.
3. **Move:** This option allows you to move the current folder to another folder.
4. **View details:** This option allows you to check the details of the folder.
5. **Delete:** This option allows you to delete the folder. When you delete any folders that are not part of any active campaigns, your folder gets deleted directly.
   * **Deleting folders associated with email campaigns:** If any template you attempt to delete is part of any active or scheduled campaign, it will prompt the campaign's details and ask you to stop the campaign before deleting. You can remove templates associated with any active or scheduled campaigns from the folder and manage them under **Templates** by selecting the **Move above templates outside and delete folder** check box.
     <Info>
       In On-site messaging, you cannot delete a folder associated with any active or scheduled campaigns.
     </Info>

# Use of Templates in Campaign Creation

The **Templates** feature serves a significant purpose with its template creation and management capabilities while creating campaigns. For more information, refer [here](/user-guide/campaigns-and-channels/email/create/create-an-email-campaign). <img src="https://mintcdn.com/moengage/SBG7um9Fqotw1CFo/images/moengage_b5e80a.png?fit=max&auto=format&n=SBG7um9Fqotw1CFo&q=85&s=93b4318d796bf1476eb2a3bdc1c3f435" width="2854" height="1244" data-path="images/moengage_b5e80a.png" />

* The templates you have created for that respective channel will be shown while creating campaigns. It also shows the templates that have the tags you add to your campaign. For example, If you add the tag, *New customer* while creating an email campaign, it will show the email templates with the tag, *New customer*.
* You can filter templates based on the available options for your respective channels.
* While creating campaigns, you can select the templates based on the editor in which they were created.
* The **Templates** feature also manages the templates you have created while creating a campaign. You can fetch and edit the templates created via the campaign creation flow from the **Templates.**

<Info>
  The permissions to edit, delete, save, and publish templates are determined based on the role. For more information, refer [here](/user-guide/settings/account/team-management/access-roles).
</Info>
