OI
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

VariableService
ANTHROPIC_API_KEYClaude API authentication
SLACK_BOT_TOKENSlack bot token (xoxb-...)
SLACK_CHANNEL_IDSlack channel for live chat
CHAT_RESPONDER_IDSComma-separated Slack user IDs for presence check
MONDAY_API_KEYMonday.com GraphQL API key
MONDAY_BOARD_IDMonday.com board ID for leads
SENTRY_DSNError tracking (optional)