Install an AI Chatbot on Your Website
Launch website chat with one small embed
Add Dchat to a website with one script tag. Configure the widget in the dashboard, import your help content, send a test message, and confirm that human handoff reaches your inbox.
Add the website chat widget
Paste the Dchat loader before the closing body tag, keep the widget token environment-specific, and publish the page where visitors need support.
- Loader script
- API base
- Widget token
Allow the widget in your Content-Security-Policy
If your site sends a Content-Security-Policy, the widget needs three origins. Miss the last one and everything still works, but the widget falls back to polling every two seconds instead of a live connection - and nothing tells you.
- script-src + style-src: widget.dchat.com
- connect-src: your Dchat API host
- script-src: cdn.jsdelivr.net (realtime client)
Test an AI answer and human handoff
Ask a question covered by your knowledge base, then request a human. Confirm the answer is grounded and that the full conversation appears in the dashboard inbox.
- Test message
- Inbox record
- Handoff path
Record rollback
Document how to remove the embed, disable AI replies, rotate provider keys, and notify support owners.
- Remove embed
- Disable AI
- Rotate keys
Production should configure a real token or leave the token blank to disable the marketing widget.