owner-chat
Tech Stack
Technologies powering the Owner Chat widget.
Frontend
P
Preact 10
Lightweight React-compatible UI library
T
TypeScript
Type-safe development
E
ESBuild
Bundles widget to single IIFE file (chat.js)
Backend
C
Cloudflare Pages
Serverless edge-deployed platform
C
Cloudflare KV
Key-value store for 60-second status caching
AI
C
Claude Haiku 4.5
AI conversation model (claude-haiku-4-5-20251001), max 400 tokens
Integrations
S
Slack API
Human handoff — posts conversation threads and polls for replies
M
Monday.com GraphQL
Lead creation with service mapping and conversation summary
S
Sentry
Error tracking via Cloudflare integration
Development
C
concurrently
Runs widget watcher and worker dev server in parallel
W
Wrangler
Cloudflare deployment CLI
Environment Secrets
| Variable | Service |
|---|---|
ANTHROPIC_API_KEY | Claude API authentication |
SLACK_BOT_TOKEN | Slack bot token (xoxb-...) |
SLACK_CHANNEL_ID | Slack channel for live chat |
CHAT_RESPONDER_IDS | Comma-separated Slack user IDs for presence check |
MONDAY_API_KEY | Monday.com GraphQL API key |
MONDAY_BOARD_ID | Monday.com board ID for leads |
SENTRY_DSN | Error tracking (optional) |