Welcome to Your Company

This page simulates a customer website hosting the Lonpac chat widget. The floating chat button in the bottom-right corner is rendered by a single embedded script — try asking it about Lonpac's insurance products.

Drop-in embed

One script tag, no build step, no dependencies. The widget renders in a shadow DOM so it never clashes with your site's styles.

Grounded answers

The assistant answers only from content published on lonpac.com and cites its sources with every reply.

Streaming responses

Replies stream in token by token over SSE, with an automatic non-streaming fallback for restrictive networks.

Embed the widget

Copy this snippet before the closing </body> tag of any page:

<script src="https://chat.example.com/widget.js"
        data-api-base="https://chat.example.com"
        data-title="Lonpac Assistant"
        data-color="#15387c"
        defer></script>

When the widget is served from the same origin as the chat API (as on this demo page), leave data-api-base empty and use a relative src.