Choosing a surface
Chat bubble, inline panel, popup or ask bar — and how to style each.
The four surfaces
The same assistant, in four shapes. Pick one in Look & install → Chat bubble; each has a live preview.
💬 Chat bubble
A floating button in the corner of every page. The default, and the right choice if you're not sure — it's always available and never in the way.
📄 Inline panel
Sits inside a section of a page, like any other block. Good for a dedicated "menu" or "our services" page where the assistant is the point of the page.
🔘 Button and popup
Your own buttons open a large window. Use this when you already have "Order now" or "Book" buttons and want them to open the assistant.
🔍 Ask bar
A search-style box for your hero section. Invites a question immediately rather than waiting to be clicked.
The snippets
The chat bubble needs only the script tag. Paste it before </body> on every page you want it on:
<script src="https://raglie.com/embed.js" data-restaurant-slug="your-web-address" async ></script>
The inline panel and ask bar add a container that marks where they appear. Put the <div> exactly where you want the assistant to sit:
<div id="raglie-assistant"></div> <script src="https://raglie.com/embed.js" data-restaurant-slug="your-web-address" data-mode="inline" data-target="#raglie-assistant" async ></script>
The popup attaches to buttons you already have. Add data-raglie-open to any button on the page and it opens the assistant — every matching button works, so you can have several:
<button data-raglie-open>Ask our assistant</button> <script src="https://raglie.com/embed.js" data-restaurant-slug="your-web-address" data-mode="modal" async ></script>
Always copy the snippet from your own dashboard rather than these examples — yours carries your web address and any appearance settings you've changed.
Appearance settings
Whichever surface you pick, you can adjust it before copying the code:
- Theme — auto, light or dark. Auto follows the visitor's own setting.
- Launcher shape, size and shadow — how the bubble sits against your design
- Button text and icon — what the launcher says
- Corner of the page — which corner the bubble occupies
- Placeholder text and width — for the ask bar; full width or a fixed size
- Panel height — for the inline panel
- Which buttons open it — for the popup, if you'd rather target your own CSS selector than use
data-raglie-open - Branding — whether a small Raglie credit shows
Save, and installed sites pick the changes up on their own. Only the surface and its layout live in the snippet.
When visitors move between pages
A conversation follows the visitor around your site. If they open the chat, ask a question and then click through to another page, the chat is already open on the new page with the same messages. Nothing to set up: it works with the snippet you already have.
- Several surfaces, one conversation. An ask bar and a chat bubble on the same page share the conversation, so a question asked in the bar carries on in the bubble.
- Starting over. Visitors can tap the pencil icon in the chat header to start a new chat. After an hour without a message, the next visit starts fresh anyway.
- Private to the visitor. The conversation is kept in the visitor's own browser, not on our servers.
- Limits. Your website and your Raglie-hosted page don't share a conversation, and browsers that block third-party storage (some strict privacy modes) start a new chat on each page.
Optional: smoother page changes
On a classic website each page loads from scratch, so the chat is rebuilt and restored rather than kept. To make that change even harder to notice, add this line to your own site's stylesheet, on every page:
@view-transition { navigation: auto; }In browsers that support it (recent Chrome, Edge and Safari), your pages then cross-fade while the chat stays put. It only works between pages of the same site, and it has to be in your own CSS: the embed can't add it for you, because its styles arrive too late on the incoming page. It's entirely optional; other browsers simply change page as usual.
💡 Pro tip
You can use more than one. A chat bubble everywhere, plus an inline panel on the page that lists what you sell, is a common and effective combination.