How to Create Interactive In-App Templates With Merlin AI In-App Template Generator

  • UPDATED: 22 June 2026
  • 5 minread
How to Create Interactive In-App Templates With Merlin AI In-App Template Generator
Reading Time: 5 minutes

When it comes to driving bottom-line revenue, In-App messaging is your most powerful channel. Yet, scaling high-engagement touchpoints like interactive pop-ups, surveys, or gamification is constantly stalled by the need for front-end developer resources. The sheer friction of generating custom in-app templates from scratch severely limits how often marketing teams can actually test and deploy them. 

The MoEngage Merlin AI In-App Template Generator removes this friction, shifting the paradigm from waiting on developer queues to partnering with an autonomous AI agent. Acting as an AI-native UI/UX engineer, the agent understands design logic, brand semantics, and interactive code. When you prompt the agent, it dynamically writes production-ready, highly semantic code based on your exact specifications. Marketing teams can now rapidly generate, conversationally iterate, and launch pixel-perfect, interactive in-app experiences completely on their own. 

The ROI of Scaling Custom In-App Experiences

Journey-based in-app messages can deliver an average 44.17% conversion rate, effectively converting nearly one out of every two active users you reach. Yet because of the build friction described above, in-app remains the channel marketing teams test least often.

The math is simple: the channel with the highest ceiling is the one you’re shipping to least. Closing that gap is entirely about how fast you can produce and iterate on templates, which is exactly what the Merlin AI In-App Template Generator Agent is built for.

What You Can Do With The Merlin AI In-App Template Generator

Each capability below maps to a specific bottleneck that usually slows in-app campaigns down.

1. Generate Gamified In-App Templates From A Prompt 

Examples of interactive in-app templates generated by Merlin AI including a spin-the-wheel discount popup, an NPS rating survey slider, and a summer sale countdown timer overlay on mobile devices

Prompt Merlin AI to code rich, interactive modules, spin-the-wheel pop-ups, scratch cards, countdown timers, multi-step survey carousels, that are ready to launch immediately. These are the formats that drive participation and reward distribution, and they’re usually the first thing cut when developer time is scarce.

2. Clone Any Ui Layout From A Reference Image

Infographic showing how to create in-app templates by uploading a reference screenshot to the Merlin AI In-App Template Generator dashboard, converting a product grid design into a production-ready mobile UI

Have a design you love, an approved Figma frame, or a competitor’s pop-up you want to match? Upload a PNG reference alongside your prompt, and the AI codes a similar, on-brand template that’s responsive across both portrait and landscape orientations.

3. Build And Preview Multi-State In-App Journeys

Merlin AI template generator dashboard displaying a detailed natural language prompt to code a multi-step NPS survey in-app template, showing the active rating screen and the resulting "Thank You" success state

Merlin AI codes the conditional logic required for complex, multi-state experiences. Simply instruct the agent to define the entry state, user interactions (taps, swipes, inputs), and resulting states like gamified scratch cards or multi-step survey carousels. Once generated, you can instantly validate the entire functional user journey within a live, clickable mobile and desktop device preview before going live.

4. Iterate Conversationally With The Agent

Chat interface of the Merlin AI template generator demonstrating conversational refinement to update the prize parameters, layout, and copy of a gamified spin-the-wheel in-app template.

Refine designs in real time by chatting with the agent. Ask it to “make the button bigger,” “swap the image,” or “change the background to #E63946” and the UI updates instantly. Each refinement is saved as a separate version card in the chat, so you can jump back to any earlier design, compare options, or branch a new edit from a previous version, all without re-entering the traditional design revision queue.

5. Inspect The Code When You Need To

A built-in code inspector lets you view the underlying HTML for your in-app templates at any point. This ensures technical reviewers can instantly audit the output, leaving your team in full control of the code that ships inside your app.

6. Enforce Brand Consistency

Because Merlin AI integrates directly with your workspace brand guidelines, you don’t need to manually input style guides for every prompt. The agent references your uploaded brand guidelines, approved color palettes, and typography tokens automatically. Every generated button, modal, and text element inherently adopts your visual identity, ensuring that the compiled code renders a perfectly market-ready interface every time.

A few things the generator handles automatically, so you don’t have to think about them:

  • Tracking is built in:
    Event tracking for close buttons, form submissions, and primary CTA clicks is included by default, so your templates are measurable out of the box.
  • Responsiveness:
    Templates adapt to both portrait and landscape orientations.
  • Accessibility:
    Designs follow accessibility standards for inclusive interaction.

How to use Merlin AI to Generate In-App Templates

Generating an interactive in-app experience flows through a straightforward four-step loop with the AI agent:

  1. Brief the Agent
    You tell Merlin AI what you want to build. You can prompt it from scratch in plain English, choose a structural baseline (like a survey or a countdown), or simply upload a visual reference image (like a Figma screenshot).
  2. Code Generation:
    Merlin AI analyzes your intent, cross-references your workspace brand kit, and compiles the functional code.
  3. Preview & Validate:
    You test the output instantly inside a live, clickable mobile simulation. You can interact with the buttons, trigger the gamified animations, and even audit the raw code to see exactly how it works.
  4. Conversational Refinement:
    If something needs a tweak, you just chat with the agent to fix it. Merlin generates a new version card for each edit, letting you compare or roll back changes before pushing the final experience live.

See it in Action: Merlin AI In-App Template Builder Demo

In this video, we put the Merlin AI In-App Template Builder to the test. Watch how the agent interprets a natural language prompt to generate a dynamic countdown timer from scratch, effortlessly refines layouts using simple chat commands, and translates a static reference image upload into a fully responsive, ready-to-ship user flow, completely bypassing the traditional engineering queue.

The Anatomy of a Perfect Prompt for In-App Template Generation

Infographic breaking down the anatomy of a perfect prompt for the Merlin AI In-App Template Builder

Building an interactive experience takes more than a one-line description: you need to dictate the entire user flow. Use this 5-part experience formula to give the agent everything it needs to code a flawless UI:

  • Goal: what the experience is designed to achieve: conversion, feedback, retention, onboarding.
  • Core components: input fields, countdown timers, interactive wheels
  • Functional elements: exact CTA text, hex codes, close-button placement
  • Entry state: what the user sees first when the module appears.
  • Interaction: what happens when the user engages: taps, swipes, inputs.
  • Result state: what the user sees after completing the interaction.
  • Theme/Brand elements: colors, fonts, logo placement, and any specific visual guidelines.

Cross-Industry In-App Templates Use Cases

The generator is flexible enough to cover the in-app moments that matter most in each vertical. A few starting points:

Retail and e-commerce: first-purchase discount pop-ups, cart-abandonment nudges, flash-sale countdowns, spin-the-wheel rewards, and loyalty-tier upgrade alerts.

Finance, tech, and insurance (BFSI): KYC completion reminders, new-product announcements, cross-sell offers, post-transaction NPS surveys, and security advisories.

Entertainment and media: free-trial-to-paid conversion pop-ups, content recommendations, live-event reminders with countdowns, watchlist prompts, and personalized “Year in Review” recaps.

Travel and hospitality: abandoned-search recovery, last-minute deal alerts, ancillary upsells (seats, baggage, insurance), expiring-points reminders, and pre-trip checklists.

Merlin AI In-App Template Generator Prompt Toolkit

In-app is the channel most likely to convert and least likely to get tested. The reason has always been execution friction. The Merlin AI In-App Template Generator removes that friction, letting you generate in-app templates, clone designs, code full interactive flows, and iterate by chat, all with natural language.

Grab 100+ ready-made prompts for Merlin AI In-App Template Generator in the Merlin AI Prompt Toolkit and generate templates for onboarding, conversion, surveys, retention, and engagement.

Go to Toolkit