For AI agents: the docs index is at https://documentation.indigitall.com/llms.txt. Append .md to any documentation page URL to get its markdown version.
To add Web Chat, upload the SDK JavaScript and CSS files to your website and provide your public channelKey. The widget adds itself to the page; no HTML container or manual Socket.IO setup is required.
Value
Required
Description
channelKey
Yes
Public, unique channel or project identifier.
baseUrl
No
Web Chat environment URL. Defaults to https://eu1.chat-v2.indigitall.com.
contactCode
No
Stable contact ID. If omitted, the SDK creates a UUID for the browser-tab session.
contactName
No
Contact display name.
⚠️
Security
channelKey is public. Never include a serverKey, private token, or server credential in browser code.
download .zip and extract its two files to upload them to the main folder of your website.
WebChat.init() automatically creates the floating launcher and chat panel.
Contact identification
Automatic session contact
When no user ID is available, omit contactCode:
WebChat.init({ channelKey: 'YOUR_CHANNEL_KEY' })
The SDK generates a UUID and saves it in sessionStorage. It is reused while the browser-tab session is active, then replaced after the tab or browser session ends.
Your own contact identifier
For identified users, pass a stable, unique value:
Only one Web Chat instance can be active. Calling WebChat.init() again automatically destroys and replaces the prior instance.
The returned instance has destroy(). Call it on logout, user changes, or when the containing view is removed:
window.supportChat?.destroy()
CSP with nonce
To keep the full normal UI under a CSP that requires a nonce for dynamically created style elements, configure the response and provide the same server-generated nonce to the SDK:
The response header must include style-src 'self' 'nonce-SERVER_GENERATED_NONCE'. The nonce is generated once per response by the server; never generate it in browser code. This lightweight mode retains normal customization and functionality, but it does not support style-src-attr 'none' because a nonce does not permit style attributes.
Troubleshooting
Issue
Recommended check
Launcher is not visible
Check JavaScript/CSS URLs and browser-console loading errors.
Chat cannot connect
Check channelKey, configured baseUrl, CORS, and the WebSocket/polling proxy.
A new contact is created on every visit
Pass a stable contactCode; automatic UUIDs only last for the browser-tab session.
Authorization error
Check that channelKey belongs to the intended channel and any provided contactCode is valid.