🧪 HEA — Module Embed (Engine) · Same-DOM Advanced

This page mounts the HEA engine module directly into the host DOM (no iframe). Use this when you need tight control, custom layout, or first-party analytics without postMessage.

When to use this vs other patterns

✅ Module Embed (Engine) — pros

  • Same-DOM control (styles, layout, events).
  • No iframe boundary; simpler analytics wiring.
  • Programmable modes: inline, fullpage, embed, popup.

⚠️ Consider alternatives

  • For Floating pop-up → use loader (hea_embed.js).
  • For Conversation starter full-page → use hea_simple.html (Hosted iFrame).
  • For Magic ask bar → use hea_askbar_embed.js.

CSP: allow script-src (the module URL) and any API origins you call. Since this runs in-page, host CSS can affect the chat UI; include our base stylesheet above.