Installation
Quick Start
Props
Connection
Chat
UI
Callbacks
Examples
With Suggestions
Model Selector
Proxy Mode (Production)
Route requests through your backend to hide tokens:External Controls
Theming
Override CSS variables:Widget Mode (No Build)
Embed via script tag for non-React sites:FAQ
Do I need a backend?
For production: yes. Never expose session tokens in client-side code. UseproxyUrl to route requests through your backend.
Does it support SSR?
The component is client-side only. Use dynamic imports withssr: false in Next.js:
Can I customize the message rendering?
Not currently. The UI Kit provides opinionated styling. For full control, use the Chat API directly with your own components.How do I handle authentication?
Get session tokens from your auth system (Stytch B2B) and pass to thesessionToken prop. Tokens refresh automatically with your auth flow.
Related
Build a Chatbot
Full tutorial with backend
Authentication
Token setup