Skip to content
All work

Case study 01SaaS · Voice AI

Converso

A subscription SaaS where learners hold real-time voice lessons with AI tutors they design themselves: pick a subject, topic, voice, and teaching style, then talk. Plans, transcripts, bookmarks, and session history included. Designed and built solo, end to end.

Role
Sole engineer: design, build, and deployment
Context
MCA final-year project · 2025
Stack
Next.js 15, React 19, TypeScript, Supabase, Clerk, Vapi, Deepgram, ElevenLabs, OpenAI GPT-4, Sentry, Tailwind CSS, Zod

Project documentation by Jitesh Borse, my project partner.

Designed, built, and shipped alone
Solo
Plan tiers, enforced on the server
3
Speech, language, and voice models per call
3
01

The problem

Learning from static content is passive. The product needed tutoring that feels like a conversation: you talk, it answers in a natural voice, it stays on topic, and every session is saved so you can pick up where you left off. And because it charges for plans, each plan's limits had to be checked on the server rather than in the browser.

02

The system

The learner's browser talks to two systems. The Next.js app serves the UI and runs server actions that check the Clerk session and plan before reading or writing Supabase Postgres. Live audio goes from the browser to Vapi, which orchestrates Deepgram for speech-to-text, GPT-4 for the reply, and ElevenLabs for the voice.

Learnerbrowser · microphoneConverso appNext.js server actionsClerkauth · billingSupabasePostgreSQLVapicall orchestrationVoice modelsSTT · LLM · TTS

Hover, tap, or tab through a component to see why it's in the system.

The learner's browser talks to two systems. The Next.js app serves the UI and runs server actions that check the Clerk session and plan before reading or writing Supabase Postgres. Live audio goes from the browser to Vapi, which orchestrates Deepgram for speech-to-text, GPT-4 for the reply, and ElevenLabs for the voice.
03

Walk through it

Creating a companion, within plan limits

How Converso decides, on the server, whether a learner may build another tutor, and what it does with the answer.

  • Learner
  • Next.js
  • Clerk
  • Supabase
  1. Open the builder
  2. Session + plan?
  3. Plan: 3 companions
  4. Count companions
  5. 2 of 3
  6. Render the builder
  7. Submit (Zod-valid)
  8. Insert companion
  9. Go to companion

Press Play, or step through with the arrows (← → work too). Each step explains what happens and why.

04

In the product

  • Companion library and the entry point to the Companion Builder.
  • A lesson: the tutor, the learner, and microphone controls.
  • My Journey: progress, history, bookmarks, and your companions.
05

Key decisions

  1. 01

    Every write is a server action

    Creating companions, bookmarks, and session history runs in Next.js server actions that resolve the user from the Clerk session first. The author and user IDs written to Postgres come from the session, never from the browser.

  2. 02

    Entitlements checked on the server

    Plans run on Clerk Billing (backed by Stripe). Before the Companion Builder renders, the server reads the plan and feature flags and counts the learner's companions: 3 or 10 depending on the plan, unlimited on Pro. At the limit, the builder never renders and the learner gets an upgrade path instead.

  3. 03

    A composed voice pipeline

    Vapi orchestrates the call: Deepgram Nova-3 transcribes the learner, GPT-4 answers, and ElevenLabs speaks with the voice and style the learner picked. The tutor prompt is templated with subject, topic, and style, and instructs short, spoken-style replies with no characters a voice can't read.

  4. 04

    Built for unreliable networks

    The app asks for the microphone explicitly before a call, shows a live input level, and reconnects automatically (up to three times) when the voice transport drops, with a manual reconnect as a fallback.

  5. 05

    Keep only what matters

    Only final transcripts are kept, so the conversation shows complete sentences rather than partial speech, and session history is written once when the call ends rather than on every message.

  6. 06

    Validated input, monitored output

    The Companion Builder validates every field with React Hook Form and Zod. Sentry runs on the client, the server, and the edge, so errors surface with context from day one.

06

What shipped

  • A complete SaaS flow: sign up with email or Google, choose a plan, build a tutor in the Companion Builder, and hold a voice lesson with a live transcript.
  • A searchable companion library filtered by subject and topic, bookmarks, and a My Journey page with recent sessions and created companions.
  • Next.js 15
  • React 19
  • TypeScript
  • Supabase
  • Clerk
  • Vapi
  • Deepgram
  • ElevenLabs
  • OpenAI GPT-4
  • Sentry
  • Tailwind CSS
  • Zod

Contact

Have something worth building? Let's talk.

A question about my work, an idea to pressure-test, or a role you think I'd fit. My inbox is open.

Start a conversation