Case study · Our product · AI SaaS

    Syahi: An AI writers' room that never lets the AI decide the story

    Syahi is our own AI SaaS product: a writers' room where a team of specialised AI agents helps a writer turn a one-line idea into a season of microdrama or audio-series episodes, written, critiqued and voiced, while the writer approves every change to the story.
    Live product · syahi.techtattava.in
    01At a glance

    The project in numbers.

    Counted from the code, not estimated.

    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
    02The challenge

    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.
    03See it

    The product in a minute.

    syahi.techtattava.in · product film

    Hindi narration voiced with ElevenLabs.

    04What we built

    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.

    05How we built it

    Decisions that mattered.

    01

    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.

    02

    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.

    03

    Provider-agnostic model gateway

    Per-capability model routing with ordered fallbacks across six provider adapters, and backoff on rate limits (5s, 10s, 20s, 40s).

    04

    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.

    05

    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.

    06

    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.

    07

    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
    06Screens

    A closer look.

    Syahi script workshop with the guided first-run tour
    Start from one line; the guided tour explains each step.
    Syahi story bible character knowledge matrix
    The story bible tracks who knows what, scene by scene.
    Syahi series map with tension waveform
    Series map: season arcs and a tension waveform.
    Syahi screenplay editor with critique notes
    Drafting with critic notes and a scene scorecard.
    07Results

    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

    72

    Performance

    100

    Accessibility

    96

    Best practices

    92

    SEO

    Desktop

    LCP 0.6 s

    100

    Performance

    100

    Accessibility

    96

    Best practices

    92

    SEO

    Lighthouse lab run on the live homepage, 5 Dec 2026. Lab scores vary between runs.

    08What's next

    The honest to-do list.

    1. 01Bring mobile LCP under 2.5 s and remove the layout shift on the marketing page
    2. 02Add continuous integration; checks currently run before each pull request by hand
    3. 03Replace the creator-earnings module, which still uses mock data
    4. 04Publish real usage and quality results once there's enough data