Side Project
Agent Platform
©2026[Scroll to explore]
A multi-tenant platform where a business runs a team of specialized AI support agents: tune each one without code, test it against an eval suite, ship it as a versioned deploy, and embed it on any site with one script tag.

The idea
Support bots usually ship as one prompt nobody dares to touch. Here every agent is a product: its own prompt, knowledge, rules and API keys, changed through drafts, checked by evals, and released like code, with a human inbox one handoff away.
Features

Each tenant runs as many agents as it has use cases, each with its own persona, system prompt, knowledge, quick replies, conversation starters and API keys. Tenants share one Postgres database scoped by tenant id, and team members get one of five roles, from owner to support agent.
Tech Stack
- APINestJS 11
- ORMPrisma 7
- DatabasePostgreSQL + pgvector
- CacheRedis
- LLMGemini on Vertex AI
- DashboardReact 19 + Vite
- Flow builderReact Flow
- AuthFirebase Auth
- WidgetTypeScript, Shadow DOM
- HostingCloud Run + Cloud SQL
Architecture

The life of a message
- The widget posts the message with its agent key, and the API appends it to the conversation's event log.
- A pure decision function reads the log and runs the cheap checks first: status, timeouts, limits, active flows and handoff requests.
- If the agent needs to answer, it pulls in that agent's deployed knowledge, whole when small or through hybrid retrieval when large.
- Gemini 2.5 Flash streams the reply back over SSE, behind the security preamble and the agent's guardrails.
- Tool calls run after the text: hand off to a human, end the chat, or add an abuse strike.