Skip to content

Install — Web (iframe)

The web widget is delivered as an iframe embed served from embed.widget-chat.com. It’s fully isolated from your page (its own document), so it can’t inherit or leak your CSS.

  1. Copy your project secret key from the dashboard’s Install section — it’s public, safe to ship.

  2. Drop in the iframe. Replace USER_ID (and USER_ID_SIG if you use identity verification):

    <!--
    USER_ID = the end-user's stable id in your app
    USER_ID_SIG = HMAC-SHA256(identity_secret, USER_ID) as hex,
    computed on YOUR backend (see below)
    -->
    <iframe
    src="https://embed.widget-chat.com?projectSecretKey=YOUR_PROJECT_SECRET_KEY&userId=USER_ID&userIdSignature=USER_ID_SIG"
    style="position:fixed; bottom:0; right:0; width:400px; height:600px; border:none; z-index:9999;"
    allow="clipboard-write"
    ></iframe>

Parameters (query string)

ParamRequiredDescription
projectSecretKey✅Your public project key.
userId✅Stable end-user id (URL-encode it).
userIdSignaturewhen identity verification is onHex HMAC-SHA256 of userId — see Identity verification.

Sign userId on your backend

When identity verification is enabled, compute the signature server-side and pass it into the URL — never ship the identity secret to the browser:

import crypto from 'node:crypto';
const userIdSignature = crypto
.createHmac('sha256', IDENTITY_SECRET) // server-only
.update(userId)
.digest('hex');