Skip to content

Chat bubble

Add a floating button to the pages where shoppers need help. They can open the conversation from the button or select a page-specific question beside it. On mobile, the chat opens full screen.

A floating Shop Agent offers questions about desk size and chair adjustments over a fading grid of office chairs.

Install the Global script. Use the Assistant ID of the published agent in this call. The readiness check handles both load orders.

Chat bubble
<script>
(function () {
function showBubble() {
Neocom.showChatBubble("YOUR_ASSISTANT_ID", {
suggestions: window.NEOCOM_SUGGESTIONS || []
});
}
if (window.Neocom) showBubble();
else window.addEventListener("neocomloaded", showBubble, { once: true });
})();
</script>

Include this snippet on each page where a new shopper should see the launcher. The Global script can also restore a previous conversation.

See the showChatBubble reference for the available options.

Write starter questions for the page the shopper is on. On an e-bike listing, try “Which e-bike suits my commute?” On a chair listing, try “Which chair fits a small desk?” Selecting a question sends it as the shopper’s first message.

Layered Electric bikes and Desk chairs pages offer different chat bubble questions. The bike page asks about commuting and range. The chair page asks about desk size and adjustments.

Store the questions in your storefront template or CMS. The launcher example above reads window.NEOCOM_SUGGESTIONS when it starts. Set it in the page head before the launcher and the Global script.

E-bike category
<script>
window.NEOCOM_SUGGESTIONS = [
"Which e-bike suits my commute?",
"How much range do I need?"
];
</script>

The bubble shows up to three questions. Use two or three that are short enough to scan on a phone and that your catalog or documents can answer. A returns page might offer “How do I return an item?” You can set defaults in your base template and override them by category. If your storefront uses client-side navigation, switch categories and check which questions appear.

Look for Bubble suggestion in Events › Conversations to review conversations that started with a prompt. Check page visits before changing a rarely selected question. For generated questions about the current product, use Product page suggestions. To guide suggested replies during a conversation, edit Suggestions tone in the Briefing.

The default bubble is black. In the Theme Builder, export Embed for your launcher’s theme option and send Backend to Neocom for the conversation. Select the saved Theme on the agent’s Configs tab. Theme reference

  • Switch the Shop Agent off on checkout or blog pages with services per page. Include the product page suggestions flag if that placement is used.
  • Use inline on selected pages. Mount the inline placement on advice pages and run the launcher on pages that need a bubble. Once an assistant has initialized, a later call to add the launcher is ignored.

You can offer a full-screen trigger alongside the bubble for the same assistant. Close the modal, continue via the bubble and look for your test message under Events › Conversations.