Case study
How it's built
The problem
Small teams run HR out of inboxes and spreadsheets. Employees wait days for answers that sit in a PDF handbook. Recruiters skim dozens of CVs by hand, and candidates hear nothing back.
I wanted one system that answers policy questions with citations, gives candidates useful feedback, and screens applications consistently while leaving the final call to a human.
How it works
The browser only talks to Next.js route handlers. They validate input, check files and rate limits, then call n8n webhooks with a secret key. n8n runs the workflows: Gemini reads policies and CVs, Google Sheets stores policies and candidates, Gmail sends the emails.
Screening rules
Every application gets a 0 to 100 match score. The score decides what happens automatically:
| Score | Outcome |
|---|---|
| Below 50 | Auto-rejected with email. Still listed for HR. |
| 50 to 85 | Shown to HR with a report. HR decides and sends the interview invite. |
| Above 85 | Auto “shortlisted” email. HR sends the interview time. |
Tech decisions
- n8n as the backend. Workflows are visible, easy to change, and retries and email come built in.
- A thin Next.js proxy. The n8n URL and key stay on the server; zod validates every request and every upstream response.
- Google Sheets as storage. Recruiters can open and audit it directly. That's good enough at demo scale.
- Humans make the final call. The AI never sends an interview invite; only HR can.
What I'd improve
- Move candidates to Postgres with row-level access for multiple recruiters.
- Embed policies in a vector store instead of re-reading whole documents.
- Add an evaluation set to measure screening consistency and bias over time.
- Replace the shared passcode with real accounts and an audit log of HR actions.