Maseer
An AI legal-services platform that sits between citizens and judicial processes — drafting documents, analysing cases and guiding people in plain language.
Challenge
Even simple legal tasks confront citizens with dense terminology, unfamiliar documents and multi-step procedures — and a mistake in a legal document has real cost. AI in this domain has to be precise, cautious and controllable.
Product
A platform with three portals — citizen, service office and administration — plus an AI assistant that drafts legal documents and analyses cases, conversational legal guidance, and a content-moderation layer.
Core flow
- 01Citizen request
- 02AI analysis
- 03Draft document
- 04Office review
- 05Delivery
What was built
- 01Citizen portalSubmit a request, generate documents, track progress.
- 02Office portalDay-to-day operations for office staff and managers.
- 03Admin portalOversight, configuration and reporting.
- 04AI assistantDrafts legal documents and analyses cases.
- 05Conversational guidanceMulti-turn guidance within controlled limits.
- 06Content guardFilters and checks what goes into and comes out of the models.
Architecture
A monorepo with a single AI gateway — semantic cache, rate limiting and a circuit breaker — so models stay swappable and cost stays predictable; and a provider layer that keeps external services such as SMS and payments behind a stable contract.
AI
AI features only ship through a dual quality gate: a stress-test bank and zero critical findings. In legal work, caution is a product requirement.
Technology
- NestJS
- Next.js
- PostgreSQL
- Prisma
- AI gateway
- Docker
Infrastructure and internal security details are intentionally not public.
Key decisions
- Decision 01
One AI gateway with semantic caching, rate limiting and a circuit breaker — swappable models, controllable cost.
- Decision 02
A provider layer for external services: simulated today, real tomorrow, with no change to business logic.
- Decision 03
AI release gated by a dual quality check.
- Decision 04
A version stamp on the health endpoint, so a stale deployment can never hide.
Outcome
Maseer is live, and its customer-facing assistant runs on Pasokhinoo — two products from one ecosystem, working together.