Website widget

A chat bubble for any website: Shopify, WordPress, Wix, a custom site or a link-in-bio page. One line, no other code.

Install

  1. Copy your public key

    Find it in Dashboard → Channels. It starts with pk_.

  2. Paste the snippet

    Add this line before </body> on every page.

  3. Open your site

    The chat button appears in the corner. Ask it something.

<script src="https://nightshift.vn/widget.js" data-key="pk_..." defer></script>
Note

The public key can only ask questions, so it is safe to put in your HTML. If someone misuses it, rotate it in Channels and update your snippet.

Lumen StoreReplies instantly
Hi! Is the Trail 22 backpack still in stock in olive?
Yes, olive is in stock. It fits laptops up to 16" and it's fully waterproof.
Write a message…

Attributes

AttributeDefaultWhat it does
data-keyrequiredYour site's public key.
data-color#ffd1dcBrand colour of the button, header and customer bubbles (hex).
data-titleAI nameTitle in the widget header.
data-greetingHi there 👋First line on the home screen.
data-positionrightright or left corner.
data-apiscript originAPI address, if it differs from where widget.js is served.
<script src="https://nightshift.vn/widget.js"
        data-key="pk_..."
        data-color="#b83a68"
        data-title="Acme Support"
        data-greeting="Xin chào 👋"
        data-position="left"
        defer></script>

How it behaves

“Powered by Nightshift”

On the Free plan the widget shows a small “Powered by Nightshift” line. On paid plans it's hidden automatically.