Prerequisites
- A Pro or Enterprise plan
- At least one ticket category configured in your server
- The bot online and connected to your Discord server
Step 1: Enable the Widget
1
Open the Web Chat tab
Go to your Dashboard → select your bot and server → click the Web Chat tab in the configuration panel.
2
Toggle the widget on
Switch the Enable Web Chat Widget toggle to on. A unique Widget Key (
WK_...) is generated automatically.3
Add at least one allowed domain
In the Allowed Domains section, add every domain where you will embed the widget (e.g.,
https://example.com). The widget will not load on domains that are not in this list.4
Save your changes
Click Save All at the top of the page.
Step 2: Add the Embed Snippet
Copy the script tag shown in the dashboard and paste it into your website’s HTML, just before the closing</body> tag:
Step 3: Configure Settings
Back in the dashboard, you can customize:Step 4: Test It
Open your website in a browser and verify:- The chat bubble appears
- Clicking it opens the pre-chat form (if enabled) or the chat view
- Sending a message creates a channel in your Discord server
- Staff replies in Discord appear in the widget
If the widget does not appear, open your browser’s developer console (F12) and look for
[TicketCord WebChat] messages. Common issues include an incorrect widget key, a missing allowed domain, or an expired plan.Allowed Domains
The widget validates the embedding page’s origin against your allowed domains list on every request. You can add up to 20 domains. Format: Full origin including protocol —https://example.com (no trailing slash, no paths).
Examples:
Developer Reference
Pre-fill fields, configure CSP headers, and more