HTML Builder

HTML Builder: Layouts and Use Cases

6 min read

The OnPage Generate with AI wizard asks you to pick a display layout and a goal. In the HTML Builder, templates are layout-agnostic: mention popup, toast, or top bar in your Noti message (or use an empty-canvas chip), then set the real display type on the notification Appearance tab.

The layout you describe is a design guide for HTML width and structure. Corner placement and bar vs popup behavior come from Appearance.

Related: HTML Builder: Chat with Noti (AI) and Creating a Template with the HTML Builder.

Display layouts

Three layouts appear in the OnPage AI wizard. You can describe the same shapes to Noti in the HTML Builder. 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
1OnPage wizard, or your Noti briefLayout 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

Browse all use cases with real examples on notifal.com/use-cases.

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

Use these pairs as a starting brief for Noti or the OnPage wizard, 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 OnPage AI wizard apply to the imported draft. In HTML Builder, describe the same layout to Noti. The Block Editor uses a Template Container with column layouts instead. Elementor uses its own section and column system.

Checklist

  • [ ] Mentioned layout in your Noti brief, or picked it in the OnPage wizard
  • [ ] Picked a use case that matches your business goal
  • [ ] Set notification Appearance display type to match the HTML design
  • [ ] Previewed on desktop and mobile before going live

HTML Builder series

  1. Creating a Template with the HTML Builder
  2. HTML Builder: Widgets and Structure
  3. HTML Builder: Buttons, Close Icon, and Click Tracking
  4. HTML Builder: Chat with Noti (AI)
  5. HTML Builder: AI Prompt Best Practices and Examples
  6. HTML Builder: Layouts and Use Cases (you are here)
  7. HTML Sanitization and Allowed HTML

Other template editors