Kivo
An AI support chat widget for any website
An AI support chat widget that answers a website's visitors only from the business's own docs, built autonomously by a team of three AI coding agents with me as product owner.
- Next.js · TypeScript · Tailwind CSS · Turborepo · Supabase · pgvector · Clerk · OpenAI · Arcjet · PostHog · Vercel
- Built · production launch pending

OVERVIEW
Kivo is an AI support chat widget a business adds to its website with one script tag. The owner pastes text or uploads PDFs, Markdown or text files; the bot answers visitors only from those, and says “I don't know” instead of guessing. Owners read every conversation, track their monthly usage, and on Pro make the widget their own. It was built autonomously by a team of three AI coding agents, each in its own sandbox; I was the product owner.
WHAT I FOUND → WHAT I DECIDED
- Supabase's Data API is public, so anyone holding the browser key can query itRow-level security and grants are the boundary: visitors never get a Supabase key, and an owner's Clerk token only ever reads that owner's projects
- Vercel caps request bodies at 4.5 MB, too small for a product catalogue PDFThe browser uploads straight to private storage with a one-time signed URL; the server then checks the file's real size and bytes before processing it
- Two requests at once could both pass a plan limitEvery limit is checked and written inside one Postgres function, under a row lock, so only one of them can win
- A public chat box invites cost abuse and prompt injectionRate limiting and injection detection run before any AI call, each message counts against the quota first, and uploaded text is treated as data, never instructions
WHAT IT DOES
- Paste text or upload PDF, Markdown or text files; each is split, embedded and searchable within the project, with its status shown.
- Each question finds the five closest passages in that project's knowledge and answers from them alone.
- One script tag adds a button and a chat panel to any site, isolated so it never touches the host page's styles.
- Every visitor chat is saved, listed newest first and readable in full.
- On Pro: button colour, corner, label, opening animation, header text and the “Powered by” badge, with a live preview.
- Free and Pro plans through Clerk Billing; the server, never the browser, decides what each plan allows.
- PostHog tracks the funnel from landing to upgrade, and traces every bot reply with its model, tokens, cost and latency.
HOW IT WAS BUILT
Kivo was my way into autonomous agent development. I ran it as product owner in JSM HQ, a visual office where a team of AI coding agents works in parallel, each in its own sandbox: a lead, Michael, who plans every phase and never writes app code, and two developers, Dwight and Jim, building in parallel lanes. I wrote the spec and the seven-phase plan and approved each phase's breakdown; the agents turned it into 68 tasks across nine boards and shipped them as 68 merged pull requests — each with a Vercel preview, green typecheck, lint, tests and build, an AI code review from Greptile, and its done-when checks run on that preview before the lead merged it. The developers only ever touched the development database, and production stayed mine to promote. A final redesign — ink and paper with one terracotta accent — was verified with 89 screenshots across three widths and both themes, WCAG AA contrast and the nine-step core flow passing end to end.
SCREENS

JSM HQ, where the agents work: Michael plans at the lead desk, Dwight and Jim build in their own sandboxes 
A phase board in JSM HQ: each task tied to an agent, waiting on what it depends on 
The landing page's live demo: Kivo answering from its own docs 
Knowledge: a pasted FAQ ready, a PDF processing, a file it couldn't read 
A visitor's conversation, read back in the dashboard 
Customize on Pro, with a live preview of the widget 
Install: one script tag with the project's key