SDK Installation Guide
Integrate ZaneChat widget into your website in under 2 minutes.
API Key
Your API key is required to authenticate your website with ZaneChat SDK.
Not generated yet
1. Add Script to Your Website
Paste this script before closing </head> or </body>.
<script src="https://api.zanechat.com/api/sdk/loader.js" data-api-key="YOUR_PUBLIC_API_KEY" data-theme="auto" defer ></script>
2. How It Works
- ✔ Script loads widget automatically on your website
- ✔ API key authenticates your business account
- ✔ Widget connects to ZaneChat backend in real-time
- ✔ Messages are synced instantly to dashboard & Telegram
3. Debug / Logs
You can check browser console for SDK logs:
[ZaneChat SDK] Initializing...
[ZaneChat SDK] API Key validated
[ZaneChat SDK] Widget loaded successfully
[ZaneChat SDK] WebSocket connected
If you see errors, ensure API key is valid and domain is allowed.
4. Troubleshooting
- ❌ Widget not showing → check script placement
- ❌ Invalid API key → regenerate key from dashboard
- ❌ No connection → check internet or firewall
ZaneChat SDK v1.0 — Real-time AI chat integration for modern websites.
