huabeitech/agent-desk

Open-source AI customer support system. AI-first support, human-ready operations.

What it solves

Customer support teams often struggle to balance automation with human care. A plain chatbot gives generic answers, while a human-only helpdesk is slow and expensive. AgentDesk solves this by combining an AI Agent that answers from a knowledge base with a full support workflow: when the AI cannot answer confidently, it can hand off to a human agent, and any conversation can become a tracked ticket. Everything lives in one self-hosted system, so teams do not need to stitch together separate chat, knowledge, and ticket tools.

How it works

When a customer sends a message through the web chat or a widget, the system loads the conversation history and the AI Agent configuration. It first retrieves relevant chunks from bound knowledge bases (documents and FAQs). A built-in “Answerability Gate” checks whether the retrieved content is strong enough to support an answer. If not, the AI returns a fallback message and recommends human support. If yes, the AI can optionally use Skills or MCP tools (like external APIs) to gather more context, sometimes asking the user for confirmation before proceeding. If the user requests a human or a workflow requires it, the conversation moves to a human handoff pool, where support agents take over in a dedicated workspace. Agents can reply, transfer, tag, link customers, and create or link tickets. Tickets then follow a status flow with progress records until resolved. The whole loop—from AI first response to human handling to ticket closure—stays in one system.

Who it’s for

  • Teams that need website live support or SaaS product support.
  • Support organizations wanting AI + human hybrid support without building from scratch.
  • Internal enterprise service desks for IT, HR, or operations.
  • Developers looking for an open-source foundation to build a custom AI helpdesk or support platform.
  • Anyone who wants a self-hosted system where AI answers from a knowledge base and escalates to humans when needed.

Highlights

  • AI-first support: AI Agents handle common questions first, with knowledge-constrained replies using RAG.
  • Answerability Gate: prevents unsupported answers by checking if retrieved knowledge is sufficient, otherwise recommends human help.
  • Natural human handoff: automatic or manual transfer to a human agent when the AI cannot answer or the user asks.
  • Conversation-to-ticket loop: support chats can become tickets with categories, assignments, status flows, and progress records.
  • Extensible: backend in Go, frontend in Next.js, with support for Skills, MCP tools, and OpenAI-compatible model providers.
  • Self-host friendly: runs with SQLite or MySQL and Qdrant vector database; easy Docker Compose startup.
  • Multiple entry points: admin dashboard, agent workspace, customer-facing web pages, and an embeddable SDK for websites.

Related

  • Project
  • Project
  • Project
  • Project