🧪 HEA Ask Bar Test — method: Magic ask bar (askbar widget)

This page uses the askbar embed loader at /public/hea_chat_engine/hea_askbar_embed.js to mount the “Magic ask bar”. It auto-expands into a compact chat and can optionally open full-page on mobile.

Ask bar embed — Pros & Cons

✅ Pros

  • One script + one div: configure via data-* attributes.
  • Clean UX: inline bar that expands; feels native to pages.
  • Theming: brand1/brand2, placeholder, start/max, etc.
  • Mobile option: data-fullpage-onmobile="1" to open full page.

⚠️ Cons

  • Inside an iframe for isolation → tight host styling requires params instead of CSS.
  • Analytics/lead capture via postMessage bridge if needed.

Generated embed snippet

Tip: pass ?hea_id=..., &creator_id=..., &placeholder=Ask+away…, &start=420, &max=640, &brand1=%23ff5f6d, &brand2=%23ffc371, &fullpage_onmobile=1 to this page to preview and to prefill the snippet.

⚙️ Key data-* parameters

💡 Best defaults: expand="focus", autoclose="1", start="420", max="640", fullpage-onmobile="1"

<div
  data-hea-askbar
  data-creator-id="hea-world"
  data-hea-id="heaguide-web-001"
  data-expand="focus"
  data-autoclose="1"
  data-placeholder="Ask about features, pricing, or setup…"
  data-start="420"
  data-max="640"
  data-brand1="#ff5f6d"
  data-brand2="#ffc371"
  data-fullpage-onmobile="1"
  style="max-width:920px;margin:20px auto;"></div>
<script src="https://hea-world.com/public/hea_chat_engine/hea_askbar_embed.js"></script>

Live demo