Local test page for the embeddable chat widget. Set the API endpoint below and reload — the widget bubble will appear in the bottom-right corner.
<script
src="https://chat.budhathokidriving.com/widget.js"
data-api="https://chat.budhathokidriving.com/api/chat"
data-name="Budhathoki Sahayak"
data-color="#1e40af"
data-greeting="🙏 नमस्ते , हजुरलाई बुढाथोकी ड्राइभिङको च्याटमा स्वागत छ। ड्राइभिङ कोर्स, लाइसेन्स वा ट्रायलका बारे केहि सोध्नुहोस्।"
data-logo="https://budhathokidriving.com/files/Budhathoki-Driving-School-tlogo.png"
data-turnstile-site-key="0x4AAAAAADDj5Lk-hmsjbm0j"
data-quick-replies='[{"label":"...","answer":"..."}]'
></script>
data-turnstile-site-key is optional but recommended — it gates
every chat request behind an invisible Cloudflare Turnstile challenge so
bots can't spam your LLM token budget. Set TURNSTILE_SECRET_KEY
on the worker (via wrangler secret put) to enforce it
server-side.
data-logo is optional — if set, a small round icon appears
before the bot name in the chat header.