HelpDesk Lite
A support desk for small teams: one inbox for customer questions, a public help centre, and help to answer well and on time.
1 Problem
Small companies answer customers from a shared mailbox. Questions get missed, the same answer is written again and again, and nobody can see which customers have waited too long.
2 Target users
- Support agents in small companies
- Founders who answer support themselves
- Customers who want an answer without writing in
3 User pain points
- Tickets slip through when several people share one mailbox
- No history of what a customer asked before
- The same questions arrive every week
- No early warning when a reply is overdue
4 Existing workflow limitations
- Email folders cannot track status or owner
- Help articles live in a separate tool and are not suggested at the right moment
- Quality is invisible: nobody asks customers how it went
What people use today: A shared mailbox or team chat, or full help-desk suites priced per agent.
5 Product solution
HelpDesk Lite turns each question into a ticket with a status, owner and priority. Each ticket shows the customer's history, similar solved tickets and matching help articles, plus a reply draft the agent reviews. Tickets that pass their first-reply target are escalated, and customers rate the answer.
6 User journey
- Customer searches the public help centre, then writes in
- The ticket arrives with suggested articles and similar tickets
- An agent takes it and edits a drafted reply
- If the first reply is late, the ticket is escalated and the team is notified
- The customer rates the answer; ratings feed the quality overview
7 Technical architecture
Shared by all 11 products
- Monorepo with one shared core package (sign-in, database, migrations, file storage, AI helper, rate limits, UI shell) and one Next.js app per product.
- Next.js 16 App Router with React 19 Server Components; changes go through server actions, and every action checks the session again on the server.
- PostgreSQL through postgres.js; schema changes are ordered migrations stored in the code. Development uses an embedded PostgreSQL (PGlite).
- Files go to storage behind one interface: the local disk while developing, a private cloud bucket in production.
- Optional Claude features go through one helper with spending limits per workspace and per server; if there is no key or a call fails, a free built-in method answers instead.
Specific to HelpDesk Lite
- Tickets, messages and internal notes in PostgreSQL; attachments checked by their bytes and stored privately.
- Built-in insight rules (pure, unit tested) give a summary, category, priority advice, similar tickets and repeated questions; Claude can replace them when a key is set.
- Knowledge-base matching scores articles against the customer's words and shows the best ones on the ticket and in the public form.
- Escalation runs when the team opens the app: tickets past their first-reply target (urgent 1 h, high 4 h, normal 24 h, low 48 h) are escalated once.
8 Database design
Tickets, messages (customer, agent or internal note), customers, attachments, saved replies, help articles, notifications and ratings — all scoped to the workspace.
11 tables, read from the migrations in the code:
hd_tickets 17 columns
id, workspace_id, number, subject, status, priority, channel, customer_name, customer_email, assignee_id, tags, public_token, created_at, updated_at, first_response_at, solved_at, category
hd_messages 8 columns
id, ticket_id, workspace_id, kind, author_id, author_name, body, created_at
hd_replies 5 columns
id, workspace_id, title, body, created_at
hd_customers 7 columns
id, workspace_id, email, name, company, notes, created_at
hd_attachments 9 columns
id, workspace_id, ticket_id, message_id, name, mime, size_bytes, storage_key, created_at
hd_articles 13 columns
id, workspace_id, slug, title, category, body, published, views, helpful_yes, helpful_no, author_name, created_at, updated_at
hd_insights 5 columns
ticket_id, workspace_id, message_count, data, created_at
hd_notifications 8 columns
id, workspace_id, user_id, ticket_number, kind, body, created_at, read_at
hd_settings 5 columns
workspace_id, sla_urgent, sla_high, sla_normal, sla_low
hd_templates 8 columns
id, workspace_id, name, subject, body, priority, category, created_at
hd_assign_rules 3 columns
workspace_id, category, assignee_id
9 API implementation
Server actions handle ticket work; one route serves attachments only to the signed-in team. The public help centre and contact form read only published articles.
27 screens and 3 route handlers, read from the code:
GET /api/account/exportGET /api/files/:idGET /api/health//app/app/account/app/customers/app/customers/:id/app/help/app/kb/app/kb/:id/app/kb/new/app/new/app/notifications/app/overview/app/portal/app/replies/app/settings/app/start/app/t/:n/app/team/forgot/help/:ws/help/:ws/articles/help/:ws/articles/:slug/invite/:token/login/reset/:token/signup/status/:token10 Important technical decisions
A person always reviews and sends; the draft uses the team's saved replies for tone, and internal notes are marked team-only.
The desk is fully useful with no AI key and no running cost; Claude improves the same features when switched on.
An update that only matches tickets not yet escalated makes the rule safe even if two requests run at the same time.
11 Trade-offs
Escalation runs when the team opens the app, not on a background timer
Cost: A ticket nobody looks at overnight escalates when the first person signs in — but there is no extra scheduler to run or pay for.
Built-in rules before AI
Cost: Summaries and categories are plainer than a model's, but they cost nothing and never invent facts.
No email in or out yet
Cost: Customers write through the form or help centre; email needs a mail service, which comes with launch.
12 AI capabilities
- Ticket summary, category and priority advice
- Similar solved tickets and repeated questions across the inbox
- Reply drafts that the agent edits and sends
- Matching help articles for customers before they write in
13 Security and permissions
- Workspace scoping on every query
- Internal notes never shown to customers
- Attachments checked by bytes, served as downloads with safe headers
- Rate limits on the public contact form
- Tickets and internal notes are visible only to the signed-in team
14 Testing
Browser tests cover the help centre, writing in with attachments, agent replies, escalation, notifications and ratings; unit tests cover article matching, insight rules and reply drafting.
Counted from the code on 27 November 2026.
15 Challenges and debugging
Bug: Help-article matching treated everyday words like “after” as meaningful, so unrelated articles matched.
Fix: Everyday words (after, page, says, today …) went on a stop list and words are stemmed before matching.
Bug: “Similar tickets” matched on words such as “page” and “says” that appear everywhere.
Fix: Similar tickets now need a match score of at least 6 and at least two shared meaningful words; a unit test uses exactly such a ticket.
Bug: Two requests at once could escalate the same ticket twice.
Fix: The escalation update only succeeds while escalated_at is still empty, so it happens exactly once.
16 Final outcome
A complete support desk: shared inbox with owners and statuses, customer history, a public help centre, reviewed reply drafts, escalation and satisfaction ratings.
17 Evidence of results
- Covered by 22 browser test steps and 20 unit tests (counted from the code on 27 November 2026).
- AI evaluation test on a recorded ticket: the reply picker prefers “we will check” over a saved reply claiming a refund is already done, and returns nothing rather than a weak match.
- Escalation is safe under parallel requests: the update only matches tickets not yet escalated, so each escalates once.
Usage numbers: none yet — the product is not public. Real numbers will be added after launch, never estimates.
18 User feedback
No outside users yet. Feedback from the first testers will be added here word for word, with what changed because of it.
19 Future improvements
- Receive tickets by email (needs a connected mailbox)
- Send replies by email once an email service is set up
- Business-hours aware reply targets
- Article usefulness votes