An open-source AI customer support chat for small business websites, built with Next.js, TypeScript, PostgreSQL and Claude. Visitors ask in a one-script-tag widget or on a hosted help centre, Claude answers only from the owner's help articles and cites them, and questions the articles don't cover go to an owner inbox with the transcript, alongside an article editor, an Unanswered list and widget settings.
by Light CloudAI apps, Helpdesk and support


The owner edits everything at /admin: business details and opening hours, help articles written as questions with a short answer and a Markdown body, the widget and the Unanswered list; the assistant's instructions are systemPrompt in src/lib/ai.ts and the demo bike shop is scripts/seed.mjs. With a key, up to three articles that clear a low bar go to Claude as citable documents with the last six questions and answers, an offer_handoff tool marks questions they don't cover, and past an hourly ceiling for the whole app answers fall back to the articles. The Claude path has never been called live: it was tested by replaying recorded-style streams through the Anthropic SDK, so send one real question before relying on it. Retrieval is keyword search with stemming, not embeddings, and demo mode only quotes strong matches, so a question such as whether a helmet that's too small can be returned gets a couldn't-find reply there, while with Claude on the article is still sent. Rate limits are kept in memory per instance, there is one owner account with no team roles, and replies to hand-offs go by email from your own mail program, so the visitor is not told in the chat. How well the widget button stands out on your own website depends on the colour you pick.
Deploy this template, write a help article for each question your customers ask, then paste the one-line script tag from the owner area, Widget, into your website. The chat button appears in the corner and answers from your articles.
This chat only sends Claude your own help articles and business details, tells it to answer from those alone, and has it cite the article for each answer. When the articles don't cover a question, it says so and offers a form to reach you instead of guessing.
Yes. Visitors can press Talk to a person at any time, and the chat offers it whenever the articles don't have the answer. Their question and email land in your inbox with the transcript, and are emailed to you when RESEND_API_KEY is set.
Yes. Without ANTHROPIC_API_KEY it runs in demo mode and replies with the best-matching help article's own words, clearly labelled, but only when the match is strong. Add the key to have Claude write the answers.
Not this one. It picks articles with PostgreSQL's built-in full-text search, weighted so rare words matter most, which works well for the tens or hundreds of articles a small business has; a question worded very differently from every article may miss.