For the complete documentation index, see llms.txt. This page is also available as Markdown.

Setup

Add the chat snippet to your site

Guest chat works with no backend integration: paste one script tag and ask Limio to allow your site's origin.

1. Paste the snippet

Add the script tag to every page where chat should appear, just before </body>:

<script src="https://<your-limio-domain>/__core/embed/bootstrap.js" defer></script>

<your-limio-domain> is the domain your Limio shop is served from, for example shop.example.com. Your Limio contact can confirm it.

The domain the script loads from determines which Limio environment — and so which agent — the chat connects to. There is no tenant attribute and no API key in the snippet; the URL is the configuration.

Attribute
Required
Value

data-fab

no

auto (default) shows the chat launcher bubble. never hides it; you then open chat from your own code with LimioChat.open().

data-api-origin

no

Only needed when the script is not loaded from your Limio domain — see Serving the bundle yourself. When the script loads from your Limio domain, the API origin is the script's own origin.

The widget mounts itself into the page. If you want to control where, add <div id="limio-chat"></div> and the widget mounts there instead.

2. Allow your origin

Ask your Limio contact to add your site's origin to the tenant's allowed origins, for example https://www.example.com. Until this is done, the widget loads but every chat request is rejected, and the browser console shows blocked requests to the chat API.

Check it works

Load the page. You should see the chat launcher in the bottom-right corner. Open it and send a message; the agent replies. Reload the page: the conversation session survives, because the visitor's session token is kept in your site's localStorage (key limio.chat.<api-host>.session, 24-hour expiry, renewed automatically).

If the launcher appears but messages fail, the most common cause is the origin allowlist (step 2). Open the browser console: the embed logs the reason for any failure with an error code your Limio contact can act on.

Serving the bundle yourself

If your site can't load third-party scripts (a strict CSP, a procurement rule), you can serve the bundle from your own static hosting instead. Limio gives you two files:

File
What it is

bootstrap.js

The small loader your page references

widget.<hash>.js

The chat widget, lazy-loaded by the bootstrap. Styles are built in; there is no separate stylesheet.

Put both in the same directory, with the filenames unchanged: the bootstrap finds the widget bundle relative to its own URL. Then point the snippet at your copy and add data-api-origin so chat requests still reach Limio:

data-api-origin is the origin only, with no path and no trailing slash. A self-hosted bundle doesn't pick up Limio releases automatically — you replace the files when Limio ships an update. Prefer the Limio-hosted snippet unless you have a reason not to.

Last updated

Was this helpful?