Owner Chat
An AI-powered customer support chatbot widget using Claude Haiku, with Slack handoff for human support and Monday.com CRM lead creation.
What It Does
Owner Chat is an embeddable chat widget that provides real-time support on the Owner Inspections website. It uses Claude Haiku AI for initial customer enquiries and can hand off to the human support team via Slack. Leads are automatically created in Monday.com.
AI Chat (Claude Haiku)
Answers questions about inspection services, pricing, coverage areas, and process. Max 400 tokens, 3-sentence limit. Australian English.
Slack Handoff
When customers want to talk to a person, conversation history is posted to a Slack thread. Team replies are polled every 4 seconds.
Monday.com Leads
Automatically creates leads with name, phone, email, service type, property address, and conversation summary via create_lead tool.
Team Status
Shows online/offline status by checking Slack presence of designated responders. Cached 60 seconds in Cloudflare KV.
Chat Modes
Claude Haiku answers customer questions. Can create leads and trigger handoff via tool use.
Conversation forwarded to Slack. Client polls for team replies every 4 seconds.
When no team members are online on Slack. AI-only mode.
AI Tools
create_lead
Creates a Monday.com item with: name, phone (+61 format), email, service type, property address/state, conversation summary, lead source "AI Chat", and lead stage "Left".
Also posts a lead notification to Slack.
handoff_to_human
Transfers the conversation to Slack with full history, summary, and visitor contact info.
Widget Details
Size: 380x520px chat window
Avatar: "OI" circular badge with online/offline indicator
Persistence: Conversations saved to localStorage with 24-hour expiry
Embedding: IIFE bundle (chat.js) — drop-in script tag
z-index: 99999 (always on top)
Deployment
Platform: Cloudflare Pages
Domain: chat.ownerinspections.com.au
Build: ESBuild bundles Preact widget to IIFE → Wrangler deploys
KV Store: CHAT_KV for 60-second status caching
Dev port: 8060