How to build Klaviyo email templates with AI (drag-and-drop vs HTML)
When to have AI build native drag-and-drop templates versus custom HTML in Klaviyo, with copy-paste prompts, hybrid and conversion options, and a QA checklist before sending.
To build Klaviyo email templates with AI, decide first which template type the AI should produce: a native drag-and-drop template your team can edit block by block, or custom HTML that gives full design control but needs code to change. For most brands the best workflow is AI-generated drag-and-drop templates for recurring campaigns, and AI-generated HTML (made hybrid or converted) only when the design cannot be built from Klaviyo's blocks.
This guide covers the three template types Klaviyo supports, how AI fits each one, two copy-paste prompts, and the QA checklist we run before any AI-built template reaches a real inbox.
What are the three types of Klaviyo email templates?
Klaviyo's Templates API names three editor types, and the type decides how an AI tool should build the template and who can edit it afterwards.
| Template type | API editor_type | How it is stored | Who can edit it | Best AI use |
|---|---|---|---|---|
| Drag-and-drop | SYSTEM_DRAGGABLE | A structured definition of sections, rows, columns and blocks | Anyone on the team, no code | Recurring campaigns and flow emails |
| Hybrid | USER_DRAGGABLE | Custom HTML with editable drag-and-drop regions | Code outside the regions, blocks inside them | Custom layouts that still need product blocks or universal content |
| Custom HTML | CODE | Raw HTML | Someone comfortable with email code | One-off designs, advanced layouts, AMP |
Two details matter for AI workflows. Drag-and-drop templates are created through a definition object rather than HTML, and custom HTML templates can carry an AMP version while drag-and-drop templates cannot, according to the same Klaviyo API documentation.
Should AI build drag-and-drop or HTML templates?
The right output depends on who will touch the email after the AI is done. Use this decision table:
| Your situation | Ask the AI for | Why |
|---|---|---|
| Marketers without coding skills will edit the email | Drag-and-drop | Every block stays editable in Klaviyo's editor |
| You need dynamic product blocks or universal content | Drag-and-drop or hybrid | These blocks only work in drag-and-drop regions |
| The design uses layouts Klaviyo blocks cannot reproduce | HTML, then hybrid | Full control, with editable regions where needed |
| You already have a library of HTML templates | Convert to drag-and-drop | Klaviyo can rebuild HTML as blocks |
| You send AMP emails | Custom HTML | AMP is not supported in drag-and-drop templates |
Our default recommendation is drag-and-drop for most sends. It keeps the team fast, avoids a developer bottleneck for a typo fix, and makes it easy to reuse headers, footers and product sections.
How to build a drag-and-drop Klaviyo template with AI
Until recently, asking an AI assistant for an email meant getting a wall of HTML back. Klaviyo addressed this with drag-and-drop template tools in its MCP server, which let AI tools such as Claude or ChatGPT create and update native drag-and-drop templates that sync to your template library. At announcement, Klaviyo listed these tools as available for Enterprise and Commercial accounts, so check your plan before you build a workflow around them.
Step 1: connect your AI tool to Klaviyo
Connect Claude or ChatGPT to the Klaviyo MCP server, following Klaviyo's MCP documentation. If you have not set up MCP before, our guide to auditing a Klaviyo account with Claude and MCP walks through the connection.
Step 2: give the AI your brand system first
Before asking for a layout, give the assistant your logo URL, hex colors, fonts, button style, tone of voice and two or three emails you consider on brand. Without this, the output looks generic. Our guide on designing on-brand Klaviyo emails with AI covers what to include.
Step 3: describe the email section by section
Use a prompt like this one:
Create a Klaviyo drag-and-drop email template named "[Campaign name] - DnD".
Brand: logo [URL], primary color [#hex], secondary [#hex], heading font [font],
body font [font], buttons [shape, color, text style].
Structure, top to bottom:
1. Header with centered logo linking to [homepage URL].
2. Hero: full-width image [URL], headline (max 8 words), 2-line intro,
then a CTA button "[CTA text]" linking to [URL].
3. Two-column product row: [product 1 name, price, image, URL],
[product 2 name, price, image, URL], each with a button.
4. One short reassurance line (shipping, returns or guarantee).
5. Footer with social links matching our website footer and the unsubscribe link.
Use consistent padding between sections. Write alt text for every image.
Do not invent prices, claims or discount codes.
Step 4: refine in conversation, then edit in Klaviyo
Ask for changes in plain language ("make the hero full-width", "add a third product"), then open the template in Klaviyo's editor for final touches. Because the result is a native template, anyone on the team can adjust it without code.
For 20 more prompts by email type, see our list of AI email design prompts for Klaviyo.
How to build a custom HTML Klaviyo template with AI
HTML still makes sense for highly designed one-offs. AI models write email HTML well, but they also make mistakes that only show up in specific inboxes, so the brief has to be strict.
Step 1: brief the AI with email-safe rules
Write a single-file HTML email for Klaviyo, 600px wide.
Rules: table-based layout, inline CSS, no JavaScript, no external CSS files,
web-safe font fallbacks, images hosted at the URLs I give you, alt text on
every image, a mobile media query that stacks columns.
Include {% unsubscribe %} in the footer.
Use Klaviyo template tags for personalization, for example
{{ first_name|default:'there' }}.
Keep the total HTML small and avoid unnecessary nested tables.
Content: [paste your copy and links here]
Klaviyo asks you to include an unsubscribe tag such as {% unsubscribe %} before importing a marketing template, as noted in its hybrid template guide.
Step 2: watch the file size
Gmail generally clips messages whose HTML is larger than 102KB, which can hide your footer and unsubscribe link, according to SendGrid's support documentation. AI-generated HTML tends to be verbose, so ask the model to remove repeated styles and empty rows.
Step 3: import into Klaviyo
In Klaviyo, go to Content > Templates, open the Email: saved tab and choose Create > Import email template, then upload the .html file. Klaviyo notes that it recommends custom HTML for technically savvy marketers or teams with a developer, and that its support team cannot build custom templates for you.
How to make an AI-generated HTML template editable
Pure HTML locks your team out of quick edits. Klaviyo gives two ways around this.
Option 1: make it a hybrid template
A hybrid template keeps your custom HTML and adds editable drag-and-drop regions. Each snippet below creates one region, and you can add several blocks inside it:
<td align="center" data-klaviyo-region="true" data-klaviyo-region-width-pixels="600">
<div class="klaviyo-block klaviyo-text-block">Hello world!</div>
</td>
Place the snippet inside a table row where you want editable content, set the width to the region's width in pixels, and import the file. When you use the template in a campaign or flow and choose drag and drop, the region accepts blocks such as text, images, product blocks or universal content blocks. Universal content blocks are supported in hybrid regions, universal sections are not. Everything outside the regions stays code-only.
Option 2: convert it to drag-and-drop
Klaviyo can convert an HTML template into a drag-and-drop template with Clone to drag and drop. Klaviyo uses AI to rebuild the design as editable blocks, and your original template is never changed. Points to know:
- Conversion works on custom HTML templates, not hybrid templates.
- Conversions stop after 10 minutes of processing, so very long or complex templates may fail.
- Small spacing or styling differences from the original are possible.
- Features without a drag-and-drop equivalent may not carry over, and AMP content is not included.
- Through the API, starting a conversion job requires a paid Klaviyo plan, per the Templates API reference.
This is the fastest way to move an existing HTML library, or AI-written HTML, into a format your team can maintain.
How to QA an AI-built Klaviyo template before sending
AI speeds up production, not review. Run this checklist on every template, whatever its type:
- Links: every button and image points to the right URL, with UTM parameters if you use them.
- Facts: prices, product names, discount codes and claims match the site. AI tools can invent all four.
- Personalization: tags render correctly and have fallbacks, for example
|default:'there'. - Images: alt text on every image, no stray borders, crops checked on desktop and mobile.
- Spacing: equal space above and below each section, no large gaps.
- Mobile: columns stack cleanly and buttons are easy to tap.
- Footer: unsubscribe link, address and social links present.
- Size: HTML under 102KB so Gmail does not clip it.
- Tests: send previews to Gmail, Apple Mail and Outlook before scheduling.
Common mistakes when building Klaviyo templates with AI
- Starting with layout instead of brand. The output is only as on brand as the inputs.
- Keeping AI HTML as the master template. If only one person can edit it, every change waits for them. Convert it or make it hybrid.
- Trusting AI copy without a fact check. Invented discounts and claims are the most common error to watch for.
- Building one-off templates instead of a system. Save headers, footers and product rows as universal content so changes update everywhere they are used.
- Ignoring the template limit. Klaviyo's Templates API notes that cloning and creating templates fails once an account holds 1,000 or more templates, so clean up old drafts if you generate templates at scale.
If you are weighing Klaviyo's built-in AI against specialized tools for this work, our comparison of Klaviyo Composer and dedicated AI email design tools covers the trade-offs.
Build on-brand Klaviyo templates faster
Ypsómetro is building an AI app for Klaviyo brands that audits accounts, finds revenue opportunities and designs on-brand emails. Join the waitlist for the Ypsómetro AI app to get early access when it opens.
Frequently asked questions
Can AI build Klaviyo email templates?
Yes. AI assistants such as Claude or ChatGPT can write custom HTML you import into Klaviyo, and through Klaviyo's MCP server they can create native drag-and-drop templates that sync to your template library. Every AI-built template still needs a human check of links, facts and mobile rendering before sending.
Should I use drag-and-drop or HTML templates in Klaviyo?
Use drag-and-drop when non-technical marketers will edit the email or when you need product blocks and universal content. Use custom HTML for one-off designs that Klaviyo blocks cannot reproduce or for AMP emails, and make it hybrid if parts must stay editable.
How do I convert an HTML email template to drag-and-drop in Klaviyo?
Open Content > Templates, find the HTML template in the Email: saved tab and choose Clone to drag and drop from its menu. Klaviyo rebuilds the design as editable blocks in a new template and leaves the original unchanged, so review spacing, links and personalization before sending.
What is a hybrid template in Klaviyo?
A hybrid template is custom HTML with one or more editable drag-and-drop regions, added with a data-klaviyo-region snippet. Inside those regions you can add blocks such as text, images, product blocks or universal content blocks, while the rest of the email stays code-only.