AI Interviewer · voice AI · TypeScript · realtime
A mock job interview you do out loud
AI Interviewer asks you five spoken questions about a role and scores each answer live. When you hang up, you get a full report by email, with the recording.
Role
Sole author
Frontend
Next.js, WebRTC
Backend
Express, Drizzle, BullMQ
AI
OpenAI Realtime, GPT-4o mini
What's in it
Feature
What it does
Job templates
Paste a job title and description, and the questions are about that role.
Live scores
Five scores out of 100 after every answer: communication, technical, clarity, problem solving and confidence.
The report
An overall score, a summary, three strengths, three things to work on, and feedback on each question.
Recording and dashboard
Watch your interview back next to the report, and see every past one in one place.
The problem
A chat app can take a second to reply. A voice interviewer can't. Pause too long after someone stops talking and it feels broken.
Interviews are also heavy. Audio both ways plus a video recording is a lot of data, and none of it needs to go through my server.
How I got there
Explore
Run everything through my own server
Realise
Every hop adds delay and bytes
Insight
Let each piece go where it is going
Hand out a key, then get out of the way.
What happens when you press start
Get a one-time key
The server makes a key that only works for this one session, plus an upload link for the recording.
backend/src/routes/interview.routes.ts
Talk to the model directly
The browser connects straight to OpenAI over WebRTC. My API key never reaches the browser, and the audio never touches my server.
frontend/hooks/use-interview.ts
Wait for you to finish
It waits for 300ms of silence before replying, so it's quick but doesn't cut you off mid-sentence.
backend/src/lib/openai.ts
Score each answer
Before the next question, the model has to call a submit_feedback tool with the five scores. So the scores come back as data, not something it says out loud.
Write the report
The recording goes straight to S3. A queued worker writes the report with GPT-4o mini and emails you when it's done.
backend/src/workers/evaluation.worker.ts