> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-unity-sdk-initialization-split.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate In-app Messages with Merlin AI

> Walk through generating in-app message content using Merlin AI in MoEngage's updated interface, with automated tone, style, and language controls.

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-unity-sdk-initialization-split/JCklsy9f8YKzVPpW/images/moengage_0140f7.png?fit=max&auto=format&n=JCklsy9f8YKzVPpW&q=85&s=b809d6f1adb7b3a3a4d8c22ceb50eb57" width="38" height="32" data-path="images/moengage_0140f7.png" /> . The **Engage** menu appears.
2. Click **+ New Campaign**.
   <img alt="1.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/lGL78K6d2VV03Hy7/images/moengage_8ab7b3.png?fit=max&auto=format&n=lGL78K6d2VV03Hy7&q=85&s=118e583cbc9afc7e48243d36174107c1" 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-unity-sdk-initialization-split/IIwLuKGPjdbByE3q/images/moengage_77a7f2.png?fit=max&auto=format&n=IIwLuKGPjdbByE3q&q=85&s=3a5eff02c848308ae93e39e5e2a6c9b4" 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 alt="find MW.gif" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/-e4tuuxPyRwoC6Pk/images/moengage_83c364.png?s=47e7b140b8f4bbef75eea7c2c8be108c" 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 alt="merlin AI.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/TTRQNpctY9N8S3Xx/images/moengage_4c7060.png?fit=max&auto=format&n=TTRQNpctY9N8S3Xx&q=85&s=65ee60944f6311477ac47090158ceaef" 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 alt="merlin AI editor.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/aMQNgnBcE5JNk3XO/images/moengage_69506d.png?fit=max&auto=format&n=aMQNgnBcE5JNk3XO&q=85&s=1367939eb23f09c5ddec09550649a729" 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 alt="high performing keywords.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/7I6Q9SBGr41ReRTp/images/moengage_b6f987.png?fit=max&auto=format&n=7I6Q9SBGr41ReRTp&q=85&s=5099408ddf5eab4627698208ddc1e41c" 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 alt="merlin ai edit.gif" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/QmWc4jzcdR8vL8D6/images/moengage_c89859.png?s=dae8ff62cde2c3a7ed5f97f7f82e343d" 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 alt="example messages.png" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/lyl829Ibss13DAHw/images/moengage_214b1b.png?fit=max&auto=format&n=lyl829Ibss13DAHw&q=85&s=fdf1e1b7fbe6475233956ce9618ae456" 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 alt="custom message.gif" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/WCD9PHM9QZsnxcgC/images/moengage_e8c1b2.png?s=1a92bceea87b5a69badd05f82622b633" 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 alt="magic wand.gif" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/5pATfnQZWnbfz9Tn/images/moengage_eff17f.png?s=0a2e442a4aa29d9c69c139db96f1b56b" 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 alt="create new.gif" src="https://mintcdn.com/moengage-unity-sdk-initialization-split/cCVRNbpzxfVeActK/images/moengage_7b497f.png?s=f7c8f0cdd89f90dd927b8677e9798416" width="2572" height="1204" data-path="images/moengage_7b497f.png" />
