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.
-
Copy your project secret key from the dashboard’s Install section — it’s public, safe to ship.
-
Drop in the iframe. Replace
USER_ID(andUSER_ID_SIGif you use identity verification):<!--USER_ID = the end-user's stable id in your appUSER_ID_SIG = HMAC-SHA256(identity_secret, USER_ID) as hex,computed on YOUR backend (see below)--><iframesrc="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)
| Param | Required | Description |
|---|---|---|
projectSecretKey | ✅ | Your public project key. |
userId | ✅ | Stable end-user id (URL-encode it). |
userIdSignature | when identity verification is on | Hex 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');