Install an AI Chatbot on Your Website
Launch website chat with one small embed
Add ZChat 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.
Choose your platform
- Webflow: Webflow adds site-wide code in the footer custom code area. Publish after saving.
- Open Site settings, then Custom code, then Footer code.
- Paste the snippet and save.
- Publish the site. Nothing in the Designer needs to change.
- Squarespace: Squarespace applies a footer code injection to every page.
- Open Code Injection and paste the snippet into the Footer field.
- Save. The snippet applies across the whole site.
- Shopify: Shopify takes the snippet in theme.liquid, above the closing head tag.
- In Shopify admin, open Online Store, the theme's actions menu, then Edit code.
- Open Layout and theme.liquid. Paste the snippet above the closing </head> tag.
- Save. Edit the live theme, or duplicate it first and test the copy.
- WordPress: WordPress takes the snippet in the theme footer, or in a header and footer scripts box.
- Paste the snippet into your theme footer before the closing body tag, or into the custom scripts box of a header and footer plugin.
- Clear your caching plugin or CDN cache if you use one.
- Custom HTML: Any other site: put the snippet before the closing body tag on every page.
- Add the snippet to your site template so it loads on every page, before the closing </body> tag.
- Allow your domain in the site's allowed domains list in ZChat.
Copy the snippet
Keep the snippet as it is. Only the widget token changes between sites.
<script async src="https://widget.zchat.com/loader.js"
data-api="https://api.zchat.com"
data-widget-token="YOUR_WIDGET_TOKEN"></script>Check the widget on your site
After publishing, open your site. You should see a chat button in the bottom-right corner.
ZChat cannot see your site from here, so this check is yours to make.
Add the website chat widget
Paste the ZChat 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.zchat.com
- connect-src: your ZChat 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.