Chat Widget
JavaScript Snippet Installation
Add the Ticket0 chat widget to any website with a single script tag.
The JavaScript snippet is the quickest way to add the chat widget to any website — no build step required.
Get your snippet
- Go to Settings → Widget
- Copy the snippet shown — it includes your workspace ID automatically
Add to your site
Paste the snippet before the closing </body> tag on every page where you want the widget to appear:
<script>
window.Ticket0 = window.Ticket0 || {};
window.Ticket0.workspaceId = "ws_your_workspace_id";
</script>
<script
src="https://cdn.ticket0.ai/widget/v1/widget.js"
async
defer
></script>The widget loads asynchronously so it won't slow down your page.
Verify installation
Reload your website. A chat bubble should appear in the bottom-right corner. Click it to open the widget and send a test message — it should appear as a ticket in Ticket0 within seconds.
Content Security Policy
If your site uses a CSP, add these directives:
script-src https://cdn.ticket0.ai;
connect-src https://app.ticket0.ai;
frame-src https://cdn.ticket0.ai;Next steps
- React package — if you're using React, the React package gives more control
- Widget customization — change agent name, brand color, and position