返回首頁
SaaS Live
Replai
讓團隊建立、測試並發布 AI 客服 agent,在共用收件匣核准草稿或直接接手。
Overview
Replai is a SaaS where teams build AI support agents from their documents, websites and GitHub repositories, connect a web widget or LINE, and approve drafts or take over in a shared inbox. The same setup runs from a dashboard, a CLI or a 103-tool MCP server. I built it end to end at AIthentic, and NexRex runs its LINE support on it.
What I built
- The agent builder, a React 19 and TypeScript dashboard where a team sets up an agent's knowledge sources, settings and channels, runs saved test cases against the draft and publishes a version.
- Human review in the reply flow. Each draft waits for an approval tied to the approver, the exact text, the recipient and an expiry, and a human takeover cancels queued AI work.
- The support workflow NexRex uses: conversations the agent cannot resolve become Linear issues, and an operator confirms the fix has shipped before the customer is told.
- A 103-tool remote MCP server on the official MCP Registry, with 12 OAuth scopes and a 20-task eval. An API catalog, llms.txt and a setup skill let an agent discover Replai and set it up. The public package is replai-mcp on GitHub.
Architecture
- The runtime is Pydantic AI and DBOS on GCP Cloud Run with a Compute Engine worker. A small ingress stores each event as an encrypted receipt, then each conversation's turns run in order within budgets for model requests, tool calls and time, and fall back to another provider when one fails.
- Retrieval runs inside Supabase Postgres: pgvector embeddings with an HNSW index, plus PGroonga keyword search for Chinese text.
- Golden RAG cases scored against written rubrics pick the production model, alongside citation, handoff and promptfoo red-team checks.
技術棧
Python Pydantic AI DBOS Supabase PostgreSQL pgvector React TypeScript MCP GCP LINE API promptfoo
程式碼不公開,可以另約時間說明。