Case study · Our product · AI SaaS
Syahi: An AI writers' room that never lets the AI decide the story

The project in numbers.
15
specialised AI agents
30
narration voices
77
API endpoints
350+
automated tests
EN · HI
English, Hindi & Hinglish
6
LLM provider adapters
- Our role
- Product, design, AI engineering, backend, frontend, deployment. Built in-house.
- Platform
- Web app (React) + Python API on Vercel
- Stack
- React 19 · TypeScript · Vite · FastAPI · SQLAlchemy · Neon Postgres · Vercel Queues & Blob · Gemini · Google Cloud TTS
What had to be solved.
Serialized formats like microdramas and audio series live or die on continuity, and most AI writing tools are built for one-shot generation.
- A season has dozens of short episodes. Episode 40 has to remember what a character learned in episode 4.
- When AI output silently becomes part of the story, writers lose control of their own work.
- Generic chat tools ask too many questions, or none, instead of only the ones that change the story.
- Turning finished scenes into an audio drama usually needs a separate voice cast and studio.
The product in a minute.
Hindi narration voiced with ElevenLabs.
The journey, end to end.
01
Bring one line
A writer starts with a premise, even a single sentence. An input-analyst agent works out what's already decided and what isn't.
02
Answer only what matters
At most three dependency-aware questions per turn, with any assumptions the room makes shown to the writer.
03
Build the story bible
Character, world and story-architect agents create a living bible where every fact carries its source and status.
04
Plan the season
A series map with season arcs and a tension waveform, then an episode-by-episode plan.
05
Draft, critique, revise
Writer, critic and revision agents draft scenes, score them and revise. Drafts stream in block by block.
06
Approve into canon
Nothing becomes part of the story until the writer approves it. When canon changes, dependent drafts are flagged as stale.
07
Hear it
An audio-adapter agent prepares the script and the narration pipeline performs it with up to 30 voices, in English or Hindi.
Decisions that mattered.
LLM interpreter + deterministic router
An LLM reads what the writer meant, but a plain-code router decides what happens next. In the code's own words: testable, cheap and explainable.
Typed contracts with self-repair
Every agent has typed input/output contracts. If a model returns invalid JSON, the gateway sends the validation error back once for a repair instead of failing the run.
Provider-agnostic model gateway
Per-capability model routing with ordered fallbacks across six provider adapters, and backoff on rate limits (5s, 10s, 20s, 40s).
A canon gate enforced in code
The story-state service refuses to make AI output canon without a recorded writer decision. Retrieval uses BM25 under a token budget so long seasons stay consistent.
Serverless long-running jobs
Generation runs go through Vercel Queues with at-least-once delivery, a row-lock claim and up to 12 attempts. Progress streams to the browser over SSE and resumes with Last-Event-ID.
Voice pipeline with a fallback
Directed Gemini-TTS reads ("whispering", "urgent") fall back to Chirp3-HD in the same voice. Lines are synthesised in parallel and stored as private blobs.
Cost and abuse controls
A per-user daily token budget, every LLM call logged with tokens and latency, idempotency keys, ETag concurrency on drafts, a prompt-injection guard and database-backed sign-in rate limits.
Beyond the screens
Engineering hygiene, not just features.
The parts that don't show on a screenshot but decide whether a product survives real use.
- 202 backend test functions (pytest) and ~153 frontend tests (Vitest + Testing Library)
- mypy strict and Ruff on the backend; ESLint with jsx-a11y on the frontend
- Ports-and-adapters frontend with import boundaries enforced by lint
- 16 versioned prompt files and 5 database migrations
- Scrypt-hashed passwords; development auth refused in production
- An 8-step guided tour for first-time writers
A closer look.




Where it stands today.
Syahi is live and open for sign-ups, with a product film in English and Hindi. It is newly launched, so we don't have usage numbers worth publishing yet; we'll add them here once we do.
- Accessibility scores 100 on mobile and desktop.
- Mobile performance (LCP 4.2 s, layout shift 0.13) is the clear next fix on the marketing page.
Mobile
LCP 4.2 s
Performance
Accessibility
Best practices
SEO
Desktop
LCP 0.6 s
Performance
Accessibility
Best practices
SEO
Lighthouse lab run on the live homepage, 5 Dec 2026. Lab scores vary between runs.
The honest to-do list.
- 01Bring mobile LCP under 2.5 s and remove the layout shift on the marketing page
- 02Add continuous integration; checks currently run before each pull request by hand
- 03Replace the creator-earnings module, which still uses mock data
- 04Publish real usage and quality results once there's enough data
Next case study
PropShadow
A document-first guide through every step of an Indian property deal
Next case study
Apna Bhattu Kalan
A bilingual digital chaupal for a Haryana village
Have a product like this in mind?
We'll scope it honestly and build it properly.