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

# Ad Templates & Magic Layers

> Browse, clone, and customize ad templates — or use ad-template campaign mode to produce layout-driven ads with consistent frames and swappable content at scale.

Ad Templates give you a library of structured ad layouts you can clone into Studio, customize with your brand, and reuse across campaigns. **Magic Layers** takes this further — decomposing and rebuilding ad layouts with AI template blocks so you can maintain consistent frame structures while swapping product imagery, copy, and brand elements at scale.

## How do I browse and use ad templates?

**1. Open the template browser**

Navigate to `/templates` to browse the full template library. Filter by format, platform, or style to find the right layout.

**2. Preview a template**

Click any template to open its detail page. Review the layout structure, layer breakdown, and format specifications.

**3. Clone into Studio or a campaign**

Clone the template into **Creative Studio** for freeform customization, or select **ad-template** as your campaign mode to use it directly in the campaign wizard.

## What is the ad-template campaign mode?

In the campaign wizard, choosing **ad-template** mode gives you structured, layout-driven ad production rather than freeform generation alone. The Creative Director and Prompt Engineer agents work within the template's layout constraints — ensuring outputs stay consistent while still being brand-specific and idea-driven.

> [!TIP]
>
> Ad-template mode is especially powerful when you need to produce the same ad in multiple sizes or across a product line — keep the layout consistent, swap the product and copy.

## What are Magic Layers?

Magic Layers decompose an ad layout into AI-editable template blocks. Each block can independently receive new product imagery, copy, or visual style — without disrupting the rest of the layout.

> [accordion] When should I use Magic Layers?
>
> Use Magic Layers when you need **consistent frame structures** across a set of ads — for example, a product line where every ad uses the same layout but features a different product. Magic Layers let you swap content at the block level without redesigning each ad from scratch.

> [accordion] How do Magic Layers relate to ad-template campaign mode?
>
> Ad-template campaign mode uses Magic Layers under the hood. When you run a campaign in ad-template mode, the outputs are Magic Layers-powered layouts that you can continue editing in Studio.

> [accordion] Can I build my own Magic Layers template?
>
> You can clone any existing template into Studio and customize it. For custom Magic Layers templates, start from an existing layout and modify the layer structure in the Studio editor.

> [!NOTE]
>
> This page covers the user-facing workflow. Engineering internals of the Magic Layers system are intentionally omitted.

## What's next?

> [card] [Campaign wizard](https://elarislabs-87.mintlify.site/campaigns/wizard.md)
>
> Run the campaign wizard in ad-template mode.

> [card] [Campaign modes](https://elarislabs-87.mintlify.site/campaigns/modes.md)
>
> Compare all campaign modes before you start.

> [card] [Image nodes](https://elarislabs-87.mintlify.site/studio/image-nodes.md)
>
> Customize cloned templates in the freeform editor.

> [card] [Brand pack](https://elarislabs-87.mintlify.site/studio/brand-pack.md)
>
> Apply your brand's colors, fonts, and assets to any template.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.