> ## 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 On-site Messages with Merlin AI

> Create compelling on-site message content using Merlin AI's generative capabilities. Speed up campaign creation while maintaining brand consistency.

Merlin AI is a highly efficient tool that uses the power of generative AI to generate compelling and contextually appropriate on-site messages. With its deep linguistic understanding, Merlin can accelerate the content creation process, thereby increasing efficiency.

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

# Navigation

To access Merlin AI in your On-site campaign, follow these steps: mmm

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/eF2J43N9Ckga5Apm/images/moengage_2eb9f9.png?fit=max&auto=format&n=eF2J43N9Ckga5Apm&q=85&s=d62fbc036c694aacaa9a6ed9ae234922" width="38" height="32" data-path="images/moengage_2eb9f9.png" /> . The **Engage** menu appears.
2. Click **+ New Campaign**.
   <img src="https://mintcdn.com/moengage/wjYnJKL0xml-g3HM/images/moengage_42315d.png?fit=max&auto=format&n=wjYnJKL0xml-g3HM&q=85&s=eef54b7f307e08cd6712123d7bfbc241" alt="1.png" width="562" height="474" data-path="images/moengage_42315d.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 **On-site**. The On-site campaign creation page appears.
   <img src="https://mintcdn.com/moengage/B1ZqBU-ISgaoSx_O/images/moengage_5098ff.png?fit=max&auto=format&n=B1ZqBU-ISgaoSx_O&q=85&s=e38bf7f9d4f0e0506a94ed1814cb344a" alt="" width="948" height="1080" data-path="images/moengage_5098ff.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 OSM Pro Campaign](/user-guide/campaigns-and-channels/on-site-message/create/create-osm-campaign).
5. In the **Content** step, you will find a **Merlin AI** banner before the template preview once you select a template.
   <img src="https://mintcdn.com/moengage/ncl4TtlD4tqnPefh/images/moengage_763453.png?fit=max&auto=format&n=ncl4TtlD4tqnPefh&q=85&s=08a37881d55c2911e9bb9a46eac8b20e" alt="merlin AI OSM.png" width="2460" height="448" data-path="images/moengage_763453.png" />
   From here, You can generate new On-site messages using Merlin AI copywriter.

# Generate On-site messages

This feature allows you to generate impactful On-site messages by providing manual campaign context or keywords.\
Ensure that you've selected the campaign use case to help Merlin AI learn the ultimate objective of your On-site campaign.

1. On selecting the **Create New** option, a prompt builder will open, enabling you to define your campaign intent and generate relevant On-site messages.
   <img src="https://mintcdn.com/moengage/_fazdN5K6hQMBuV9/images/moengage_3b982b.png?fit=max&auto=format&n=_fazdN5K6hQMBuV9&q=85&s=fcecf28d947780ea1ca69dc56ca6e680" alt="on site merlin editor.png" width="2566" height="1156" data-path="images/moengage_3b982b.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/wjYnJKL0xml-g3HM/images/moengage_482942.png?fit=max&auto=format&n=wjYnJKL0xml-g3HM&q=85&s=83687d0499c80f90042d6b68f964c061" alt="high performing keywords.png" width="1590" height="772" data-path="images/moengage_482942.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.
   <img src="https://mintcdn.com/moengage/_eUNBDpGCEXI_sgZ/images/moengage_a6b4f0.png?s=6d4b85064d2c4c38db431ac6a9ec3466" alt="merlin ai edit.gif" width="1326" height="578" data-path="images/moengage_a6b4f0.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/P9B7WlDoMUnquME5/images/moengage_0a5c65.png?fit=max&auto=format&n=P9B7WlDoMUnquME5&q=85&s=28056c24daa032db6863b84193a3031d" alt="example messages.png" width="1554" height="1096" data-path="images/moengage_0a5c65.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/M3SzEdkQVgGAjJCt/images/moengage_77b87a.png?s=cbbd7beaacd3f83ea1a4db43e973055d" alt="custom message.gif" width="714" height="204" data-path="images/moengage_77b87a.png" />
   </Info>
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.
8. 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/7H2dU4CG2W0DQCPI/images/moengage_6fca13.png?s=0f91d162e64e91d6496ca4a29a5c453b" alt="On site generate merlin message.gif" width="2572" height="1204" data-path="images/moengage_6fca13.png" />
