> ## 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.

# Generate In-app Messages with Merlin AI

> Generate creative, context-specific in-app message copy with Merlin AI. Automate content creation while controlling language, tone, and style output.

Merlin can generate diverse, context-specific In-App messages with ease. Automated content creation not only increases efficiency but also ensures desired language, tone, and style.

In this article, we will guide you through the process of generating creative texts for In-app marketing campaigns using Merlin AI.

# Navigation

To access Merlin AI in your In-app campaign, follow these steps:

1. On the sidebar menu in MoEngage, hover over the **Engage** menu item <img alt="Screenshot 2025-06-04 at 4.32.53 PM.png" src="https://mintcdn.com/moengage/MBpE2Km0jgeTJl4Q/images/moengage_0140f7.png?fit=max&auto=format&n=MBpE2Km0jgeTJl4Q&q=85&s=e58b77716b2d4041a721f590d8a6ed50" width="38" height="32" data-path="images/moengage_0140f7.png" /> . The **Engage** menu appears.
2. Click **+ New Campaign**. <img src="https://mintcdn.com/moengage/431DqtwGIOyvyx6H/images/moengage_8ab7b3.png?fit=max&auto=format&n=431DqtwGIOyvyx6H&q=85&s=a633b0b359afcba8180877175ddf2f83" alt="1.png" width="562" height="474" data-path="images/moengage_8ab7b3.png" /> You can also click **All Campaigns** on the **Engage** menu and then click **+ Create campaign** on the All campaigns page.
3. On the **New Campaign** dialog box, under **INBOUND**, click **In-app**. The In-app creation page appears. <img src="https://mintcdn.com/moengage/M3SzEdkQVgGAjJCt/images/moengage_77a7f2.png?fit=max&auto=format&n=M3SzEdkQVgGAjJCt&q=85&s=62c57cf8d5a7dbab3c8bfe0a263ae2fc" width="948" height="1080" data-path="images/moengage_77a7f2.png" />
4. Set up your basic campaign details including the campaign name, target platforms, trigger criteria, and target audience in the **Target users** step. To learn more, see [Create In-app Campaign](/user-guide/campaigns-and-channels/in-app-message/create/create-in-app-campaign).
5. Select a template in the **Content** step.
6. Generate new In-app messages using **Merlin AI** copywriter.\
   You can choose either of the following methods to use **Merlin AI**:
   * **Magic Wand**
     With the magic wand, you can create powerful In-app messages for the text block of the selected magic wand.\
     You will find the magic wand icon beside your template's text and button fields. <img src="https://mintcdn.com/moengage/jnaevUpPOwD04mEl/images/moengage_83c364.png?s=ec399180e89db68c305ceedf66d9b9f8" alt="find MW.gif" width="2572" height="1204" data-path="images/moengage_83c364.png" />
   * **Create New**
     The Create New option enables you to generate message for your template that you can copy and paste wherever required in your template.\
     You will find the **Create new** button on the **Merlin AI** banner before the template preview. <img src="https://mintcdn.com/moengage/BlcsVkkZu61NB-XQ/images/moengage_4c7060.png?fit=max&auto=format&n=BlcsVkkZu61NB-XQ&q=85&s=5b7db3c261a2faf2d05a31fd8ae1b009" alt="merlin AI.png" width="2476" height="456" data-path="images/moengage_4c7060.png" />

# Generate In-app messages

Regardless of which method(magic wand or 'Create new' button) you choose to use Merlin AI, the content creation process is the same for both. The only difference between the two approaches is the implementation process of the Merlin AI text.

In this section, we will learn to create and implement the Merlin AI text for both methods.

## Create Merlin AI Text

Ensure that you've selected the campaign use case to help Merlin AI learn the ultimate objective of your In-app campaign.

1. Once the prompt builder opens, you can define your campaign intent and generate relevant In-app messages. <img src="https://mintcdn.com/moengage/2FjM3dGfEH1CYo8k/images/moengage_69506d.png?fit=max&auto=format&n=2FjM3dGfEH1CYo8k&q=85&s=fd4778d66aa9192ece4672e3bd3806f0" alt="merlin AI editor.png" width="2572" height="1172" data-path="images/moengage_69506d.png" />
2. Additionally, you can provide more context by selecting the target audience, and intended message tone. You can also define a message style that can be inspired by trends, persona, pop culture, literature references, etc.
3. The **high performing keywords** dropdown provides a sneak peek at the keywords that have performed well in the past. You can select up to three of these keywords to ensure that the generated messages include them. You can also type and select some new keywords to ensure their inclusion in the message. <img src="https://mintcdn.com/moengage/SBG7um9Fqotw1CFo/images/moengage_b6f987.png?fit=max&auto=format&n=SBG7um9Fqotw1CFo&q=85&s=00e0b81a41ccb82c86571810115c0d1e" alt="high performing keywords.png" width="1590" height="772" data-path="images/moengage_b6f987.png" />
   <Info>
     The impactful keywords are suggested from Push campaign performance. To learn how these are calculated, see [Merlin AI Copywriter](/user-guide/ai-and-intelligence/merlin-ai/merlin-ai-copywriter/merlin-ai-copywriter).
   </Info>
4. Likewise, you can exclude historically low-performing keywords or specific keywords by selecting them in the **exclude keywords** input.
5. Sometimes you may need to customize the generated messages with extra information. For example, the use case may include adding your coupon code that Merlin AI may not know. In such cases, enter the coupon code in the **Add Coupon** field in the Merlin AI prompt builder.
6. You can also add the user property personalization element from the **Personalization** dropdown. This will ensure the generated message positions the personalization element in a cohesive manner.
7. You can re-generate messages up to 20 times in a campaign using Merlin AI. If needed, you can use the pagination button located at the bottom of the preview to navigate between pages that display one page of results at a time. <img src="https://mintcdn.com/moengage/-X0av6ek9AEOUtsy/images/moengage_c89859.png?s=284188785d2da76f5e30f022d592b639" alt="merlin ai edit.gif" width="1326" height="578" data-path="images/moengage_c89859.png" />
   <Info>
     * The character limit for the message is **500** characters.
     * For each input type in the dropdown, there are descriptions and example messages related to each input option. This can help you visualize the type of AI-generated messages that can be expected. <img src="https://mintcdn.com/moengage/iCae3l_a7eOJMTbz/images/moengage_214b1b.png?fit=max&auto=format&n=iCae3l_a7eOJMTbz&q=85&s=6b6726ed91861495b48a8cbe3c284651" alt="example messages.png" width="1554" height="1096" data-path="images/moengage_214b1b.png" />
     * You can always select a custom value as input beyond the available options in the dropdown. Simply type the intended text and select it in custom placeholder values. <img src="https://mintcdn.com/moengage/50ZszvUJB4M_6y_L/images/moengage_e8c1b2.png?s=e4bd4ed3dec31e84d5a9d209ed661f10" alt="custom message.gif" width="714" height="204" data-path="images/moengage_e8c1b2.png" />
   </Info>

## Implement Merlin AI Text

* **Magic wand**
  After you've created a message you like, you can hit the **Select this** button on the prompt builder, and the chosen message will be instantly entered into the text or button field. <img src="https://mintcdn.com/moengage/o0kXRAcOq2mxzDnY/images/moengage_eff17f.png?s=549ab14c2e44726c77c17cf868997d2f" alt="magic wand.gif" width="2572" height="1204" data-path="images/moengage_eff17f.png" />
* **Create new**
  Once you're satisfied with the generated message, click the **Copy this** button on the Merlin AI prompt builder. You are redirected to the template settings page in the Content tab where you can make intended changes to your template by pasting the Merlin AI generated message in your template. <img src="https://mintcdn.com/moengage/H6NVBgn3z5fYOOBq/images/moengage_7b497f.png?s=721fab4172e40fbc885d58dacbd16321" alt="create new.gif" width="2572" height="1204" data-path="images/moengage_7b497f.png" />
