An AI mock-interview platform: a voice assistant asks you interview questions in real time, then an LLM scores the transcript and gives structured feedback. Live at ai-interview-platform-pink.vercel.app. For code-level detail see the Low-Level Design.
flowchart LR
U([Candidate]) -->|voice + browser| App[Next.js app]
App <-->|real-time voice call| Vapi[Vapi assistant]
Vapi -->|tool call: generate_questions| WH["/api/vapi/webhook"]
WH --> GEN["/api/vapi/generate"]
GEN -->|questions prompt| Gemini[Gemini 2.0 Flash]
GEN --> FS[(Firestore<br/>interviews)]
App -->|transcript → feedback| Gemini
App --> FB[(Firestore<br/>feedback)]
App <-->|session cookie| Auth[Firebase Auth + Admin]
| Component | Responsibility |
|---|---|
Auth pages + auth.action.ts |
Sign up, sign in, forgot password; Firebase ID token exchanged for a 1-week session cookie |
| Home | Your past interviews and the latest public interviews |
Interview page + Agent |
Starts the Vapi call, shows live transcript and speaking state |
/api/vapi/webhook |
Receives the assistant's generate_questions tool call and forwards it |
/api/vapi/generate |
Asks Gemini for questions and stores the interview |
| Feedback page | Shows scores, strengths, improvements and the final assessment |
| Layer | Choice |
|---|---|
| Framework | Next.js (App Router), React, TypeScript, server actions |
| UI | Tailwind CSS, shadcn/ui, sonner toasts, react-hook-form + zod |
| Voice | Vapi web SDK + server SDK |
| AI | Vercel AI SDK (ai, @ai-sdk/google), gemini-2.0-flash-exp |
| Data / auth | Firebase Auth, Firestore, Firebase Admin |