HTML Builder

HTML Builder: Layouts and Use Cases

5 min read

When you use the AI Prompt in the HTML Builder, you pick a display layout and a use case. These choices tell the AI what shape and purpose your notification should have.

The layout you pick in the AI form is a design guide for HTML width and structure. The actual on-screen position (corner popup, top bar, etc.) is set later on the notification's Appearance tab.

Related: HTML Builder: AI Prompt Workflow and Creating a Template with the HTML Builder.

Display layouts

Three layouts appear in the HTML Builder AI picker. Each maps to a common notification display type.

LayoutAlso known asTypical widthBest for
Floating Side BoxToastAbout 360 to 500 pxSocial proof, quick alerts, small promos
Popup (Modal)PopupAbout 480 to 560 pxSign-up forms, discounts, important messages
Floating Bar (Top Bar)Top barFull width stripAnnouncements, free shipping bars, cookie notices

How layout connects to your live notification

StepWhereWhat you set
1HTML Builder AI formLayout guides the HTML design
2Notification Appearance tabDisplay type controls how Notifal shows it (popup, toast, top bar, etc.)
3Notification Appearance tabPosition controls corner or edge placement
Tip: Match the AI layout to the display type you plan to use on the notification. A top bar HTML design works best when the notification Appearance is also set to a bar style.

Use cases

Use cases describe why the notification exists. They shape the AI's copy, call-to-action, and structure.

Use caseWhat it is for
Increase SalesDiscounts, limited offers, product highlights
Grow Email ListNewsletter sign-ups, lead capture, multi-step opt-in
Boost EngagementEncourage clicks, comments, or interaction
Build Trust and Social ProofRecent purchases, reviews, visitor counts
Communicate with VisitorsAnnouncements, support messages, contact prompts
Recover or Retain VisitorsExit intent, return offers, stay-on-page messages
Promote Social ChannelsFollow us on social, share buttons
Content BlockingGate content until action is taken
Grow AOVUpsells, bundles, "customers also bought"
Prevent Cart AbandonmentCart reminders, checkout nudges

Pick the use case closest to your goal. You can edit the AI text afterward in the builder.

Pattern examples (layout + use case pairs)

Notifal ships ready-made pattern examples that combine a layout with a use case:

Pattern nameLayoutUse case
Popup for cart recoveryPopupRecover or retain visitors
Side box for social proofFloating Side BoxBuild trust and social proof
Top bar announcementFloating BarGrow email list
Popup for discountPopupIncrease sales
Side box for contactFloating Side BoxCommunicate with visitors
Multi-step opt-in popupPopupGrow email list

Load a pattern from the AI Prompt panel, then adjust industry, goal, and colors.

Practical examples

Recent purchase popup (WooCommerce)

  • Layout: Floating Side Box or Popup
  • Use case: Build Trust and Social Proof
  • Template tags: {product_name}, {order_meta__billing_city}
  • Notification Appearance: Toast or Popup, bottom corner

See WooCommerce Setup for Notifal for tag setup.

Free shipping top bar

  • Layout: Floating Bar
  • Use case: Communicate with Visitors
  • Notification Appearance: Top bar, full width

Exit intent discount

  • Layout: Popup
  • Use case: Recover or Retain Visitors or Increase Sales
  • Notification Timing: Exit intent trigger

Layout tips for clean designs

DoAvoid
Design content to fit the layout widthHard-coding position: fixed or z-index in template CSS
Use one inline <style> block in HTMLExternal stylesheets or @import
Use notifal-* class names for buttons and imagesFull page HTML wrappers
Match AI layout to planned display typeMixing a narrow toast HTML with a full-screen popup setting

Details on allowed CSS: HTML Sanitization and Allowed HTML.

Other editors

Layout presets in the AI form apply to the HTML Builder. The Block Editor uses a Template Container with column layouts instead. Elementor uses its own section and column system.

Checklist

  • [ ] Chose a display layout that matches your planned notification type
  • [ ] Picked a use case that matches your business goal
  • [ ] Loaded a pattern example if you want a faster start
  • [ ] Set notification Appearance display type to match the HTML design
  • [ ] Previewed on desktop and mobile before going live

What to read next

HTML Builder series

  1. Creating a Template with the HTML Builder
  2. HTML Builder: Buttons, Close Icon, and Click Tracking
  3. HTML Builder: AI Prompt Workflow
  4. HTML Builder: Layouts and Use Cases (you are here)
  5. HTML Sanitization and Allowed HTML

Other template editors