‹ Back
eeZfi Web Chat · Summarize via iframe bridge
Inline embed Floating bubble Proactive engage Summarize page Summarize (iframe)

The real embed is a cross-origin iframe, which by browser rules can't read the page it sits on. So the host site reads its own page and passes the content into the iframe over postMessage — the same channel the chat already uses to report its height, just in the other direction. eeZfi provides the chat; the site adds a tiny bridge.

Try it → tap the bubble, then "Summarize this page". The chat (an iframe) asks this page for its content, this page hands over only its article, and the iframe returns a real summary. Nothing is read or sent until you tap.

How the data flows

  1. Visitor taps "Summarize this page" inside the eeZfi iframe.
  2. The iframe asks its host: postMessage({ type: 'eezfi:request-page' }).
  3. The host bridge reads its own main content (allowed — same origin to itself) and replies: postMessage({ type: 'eezfi:page-content', text, title, url }).
  4. The iframe sends that text to eeZfi and shows the summary. (Height flows back the other way as eezfi:chat-height, exactly as today.)

Because the host reads its own DOM and only messages the text across, this works across origins where a direct DOM read can't. The page content reaches eeZfi only after the tap.

The host bridge (paste once)

This is the entire third-party-side integration — an iframe and a short message bridge:

HTML · paste before </body>
<!-- eeZfi page assistant — host bridge.
     NOTE: the src below is the PLANNED per-business route — NOT built yet.
     eeZfi supplies the real frame URL at onboarding. This demo's live
     widget uses /demo/eezfichat/frame. -->
<iframe id="eezfi-frame" title="Assistant"
        src="https://YOUR-EEZFI-HOST/eezfi/YOUR-BUSINESS-ID/assist"
        style="border:0;width:380px;height:460px"></iframe>
<script>
(function () {
  var frame = document.getElementById('eezfi-frame');
  var EEZFI = 'https://YOUR-EEZFI-HOST';
  window.addEventListener('message', function (e) {
    if (e.origin !== EEZFI) return;                  // trust only the eeZfi frame
    var m = e.data || {};
    if (m.type === 'eezfi:request-page') {           // visitor tapped → read & hand over
      var main = document.querySelector('article, main, #content') || document.body;
      frame.contentWindow.postMessage({
        type: 'eezfi:page-content',
        title: document.title, url: location.href,
        text: (main.innerText || '').slice(0, 30000)
      }, EEZFI);
    }
    if (m.type === 'eezfi:chat-height' && m.height) { // same height trick as the chat embed
      frame.style.height = m.height + 'px';
    }
  });
})();
</script>

The site controls exactly what gets shared by choosing the selector (here article, main, #content) — nav, ads, and anything sensitive stay out.

The /eezfi/{id}/assist URL above is the planned per-business route and isn't built yet — eeZfi supplies the real frame URL at onboarding. This page's live demo uses /demo/eezfichat/frame.

Below is a sample host page. Open the assistant and summarize this page.

mapleandoak.com/shipping-returns
Help center

Shipping & returns

How we ship, when it arrives, and how to send something back.

Shipping options

Standard shipping is a flat $7 and arrives in 4–6 business days. Express is $18 and arrives in 2 business days if ordered before 1pm ET. Orders over $75 ship free with standard shipping. We ship within the continental US; Alaska, Hawaii, and PO boxes may take longer.

Returns

You can return most items within 30 days of delivery for a full refund, as long as they're unused and in the original packaging. Final-sale items (marked on the product page) and gift cards can't be returned. Custom or made-to-order furniture is returnable only if it arrives damaged.

How to start a return

  • Open your order from the email receipt and choose "Return an item".
  • Print the prepaid label — return shipping is $9, deducted from your refund (free if the item was wrong or damaged).
  • Drop it at any carrier location within 14 days of starting the return.

Refunds

Once we receive and inspect the item, refunds go back to your original payment method within 5–7 business days. We'll email you when the refund is issued.

Damaged or wrong items

If something arrives damaged or we sent the wrong item, email support@mapleandoak.com within 7 days with a photo and we'll send a replacement or full refund at no cost — no need to return the original in most cases.

Contact

Support is available Monday–Friday, 9am–6pm ET at support@mapleandoak.com or (555) 014-7788.