A AtomicX Chat
Help Sign in

Updated November 21, 2026

Embed the chat in a page

Overview

Instead of a floating bubble, you can place the chat as a box inside one of your pages, for example in place of a contact form. The box has the same abilities as the floating widget: your workflow, AI answers, lead capture, booking and voice input. It fills the width and height of the section where you place it.

The conversation lasts only while the visitor stays on that page. If they leave or reload the page, the next visit starts a fresh conversation.

Steps

  1. Go to Chat → Configurations and click Edit on the configuration (or create one).
  2. Under Basic Information, set Display Mode to Embedded (In-Page Chat Box), then click Update Configuration.
  3. Go to Insights → Widget generator and choose the configuration under 1. Select Configuration.
  4. Under 2. Display Mode, choose Embedded. The Button Position step is hidden, because there is no button.
  5. Under Generated Code, click Copy.
  6. On your website, paste the <div data-atomicx-embed></div> line where the form (or the chat box) should appear. Paste the script tag just before the closing body tag of the same page.
  7. Publish and open the page. The chat box appears in place of the form, and the conversation starts when the visitor first clicks into the box. If the configuration has a chat disclosure, the visitor accepts it first.

Tips

  • Size the box by sizing its section. If the section has a fixed height, the box fills it and the conversation scrolls inside it. With no set height, the box grows as the conversation grows.

  • One chat per page. If a page has both a floating script and an embedded script, only the embedded box starts. Leave the site-wide floating widget off pages that have an embedded box.

  • Add the script directly to the page, not through a tag manager, and make sure the page starts with a standard <!doctype html> line. Without it, the box may not size correctly.

  • Voice input. Tick Voice input under Additional Settings in the configuration to show a microphone button after the conversation has started. Dictated text fills the input and is never sent automatically. See Configure your chat widget.

  • Track conversions. When the chat captures a lead or books an appointment, the widget fires atomicx:lead-captured or atomicx:booking-made on window (and on the data-atomicx-embed element). For example, to run a pixel or open a thank-you page:

    window.addEventListener('atomicx:lead-captured', () => { /* fire pixel or location.href = '/thank-you' */ });
    

    The same moments are also sent to Google Analytics; see Google Analytics integration.

  • Chat test still shows an Embedded configuration as a floating widget. Check the embedded box on your own page.

An unhandled error has occurred. Reload ×