Etheris Labs
Selected work

An AI grading assistant for a nonprofit education network

UPAY

A human-in-the-loop grading system that pairs Gemini with a teacher review dashboard, turning thousands of handwritten answer sheets into scored, feedback-rich results every month for roughly the price of a coffee.

Year
2025
Timeline
3 months
Services
AI grading automation
Client
UPAY, education nonprofit
The problem 01

A thousand teacher hours a month spent on mechanical marking.

UPAY, an educational nonprofit, was hand-grading 2,000 to 4,000 answer sheets every month. At around fifteen minutes a paper, evaluation alone consumed over a thousand hours of teacher time — time that came directly out of actually teaching.

The constraints were unforgiving. Grading accuracy had to hold up against a human marker, the whole thing had to run on a nonprofit budget, and it had to read handwriting in English, Hindi, and regional languages. Commercial tools priced at $0.10–0.50 per page were never an option.

And UPAY did not want AI replacing their teachers’ judgment, only their busywork. No score could reach a student without a person signing off on it first.

What it was costing

15 min
Per paper, by hand Mechanical marking before any teaching feedback was written.
1,000+
Teacher hours / month Spent on evaluation alone across the network.
Weeks
Feedback delay Students waited long enough for the feedback to stop being useful.
Our response 02

A review layer between the model and the mark sheet.

Teachers submit answer sheets through a Google Form. Every sixty seconds an n8n workflow polls for new submissions, pulls the sheet from Drive along with the subject answer key when one exists, builds a structured prompt with explicit grading criteria, and calls Gemini 2.5 Flash with the base64-encoded pages.

What comes back is not a number but a per-question JSON breakdown with feedback, written straight into Supabase with a GRADED status. Response cleanup and retry logic sit around the call, so a malformed model response never stalls the queue.

Then it stops. Nothing is sent. A React and Supabase admin dashboard puts every AI-graded paper in front of an admin teacher, who can open the question-by-question breakdown, compare answers against the key, and trigger a targeted recheck — "re-evaluate question 3 for partial credit" — which returns the paper to Gemini with that instruction attached and preserves the full audit trail. Only after explicit approval does a Supabase Edge Function email the result.

How a paper moves through the system.

Six steps, one of which is deliberately a human being.

  1. 01 Intake

    Google Form submission

    A mentor uploads the answer sheet. Drive stores the file and a tracking spreadsheet row is created automatically.

  2. 02 Poll

    n8n picks it up

    Every 60 seconds the workflow checks for new rows, downloads the sheet, and retrieves the subject answer key when one exists.

  3. 03 Grade

    Gemini 2.5 Flash

    A structured prompt with explicit criteria and few-shot examples returns per-question scores and written feedback as JSON.

  4. 04 Store

    Supabase, status GRADED

    Grade summaries, per-question rows, and recheck requests are persisted with cleanup and retry logic around the model call.

  5. 05 Review

    An admin teacher decides

    Every paper is reviewed in the dashboard. A discrepancy triggers a recheck with written instructions; the paper returns to Gemini with that context.

  6. 06 Send

    Result emailed on approval

    A Supabase Edge Function sends the score, the per-question breakdown, and personalised feedback — never before sign-off.

A closer look.

The workflow, the schema, the review surface, and what a student actually receives.

The n8n orchestration

Polling, Drive retrieval, prompt construction, the Gemini call, response cleanup, and the Supabase write — visual automation instead of weeks of custom backend.

The review layer

Pending approval, rechecking, sent, and all. Nothing moves from the first tab to the third without a teacher deciding it should.

Schema built for the audit trail

Grade summaries, per-question grades, and recheck requests are separate tables so every revision stays traceable.

What the student receives

Score, percentage, and specific written feedback — approved by a teacher before it left the system.

Handover on site

Walking UPAY mentors and coordinators through the portal. Adoption was as much of the build as the pipeline was.

“The system grades thousands of papers a month for the cost of a coffee, but no result reaches a student until a teacher has approved it.”
Capabilities 03

What it does.

  1. 01

    Multilingual handwriting grading

    Multimodal evaluation of handwritten answer sheets across English, Hindi, and regional languages.

  2. 02

    Per-question breakdown

    Scores and written feedback returned question by question, not as a single opaque mark.

  3. 03

    Mandatory admin review

    Every AI grade waits in a pending queue until an admin teacher approves or challenges it.

  4. 04

    Iterative recheck loop

    An admin sends specific instructions back to the model and receives revised scores with the audit trail intact.

  5. 05

    Answer-key awareness

    When a subject answer key exists, it is retrieved and included in the grading prompt.

  6. 06

    Automated result delivery

    Approved results are emailed with totals, breakdowns, and personalised feedback via Supabase Edge Functions.

  7. 07

    Resilient model handling

    Response cleanup and retry logic mean a malformed generation never breaks the pipeline.

  8. 08

    Free-tier economics

    Self-hosted n8n, Supabase’s free database allowance, and Vercel hobby hosting keep running costs near zero.

How we built it 04

01 / Submission intake

Zero new habits

Mentors already used Google Forms, so the intake is a Google Form. Drive holds the files, a Sheet holds the queue, and nobody had to learn a new tool to start using the system.

Poll interval
60 seconds
New software for mentors
None

Built with

  • Google Forms
  • Google Drive
  • Google Sheets

Six decisions that made it work at nonprofit scale.

01 / Submission intake

Zero new habits

Mentors already used Google Forms, so the intake is a Google Form. Drive holds the files, a Sheet holds the queue, and nobody had to learn a new tool to start using the system.

Poll interval
60 seconds
New software for mentors
None

Built with

  • Google Forms
  • Google Drive
  • Google Sheets

02 / Gemini grading engine

The model choice

Gemini 2.5 Flash was picked for multimodal handwriting across languages at roughly 60% less cost than the GPT-4 class alternatives. Structured JSON schemas and few-shot examples pushed agreement with human graders to 85–90%.

Agreement with human graders
85–90%
Cost advantage
~60% cheaper than GPT-4 class
Languages
English, Hindi, regional

Built with

  • Gemini 2.5 Flash
  • Structured JSON schemas

03 / Workflow orchestration

No backend to maintain

n8n handles polling, retrieval, prompt assembly, the API call, cleanup, and persistence. Choosing visual orchestration over a custom service removed weeks of build time and left a workflow a non-engineer can read.

Custom backend services
0
Hosting
Self-hosted n8n

Built with

  • n8n
  • Supabase

04 / Human review dashboard

The non-negotiable

A filterable React dashboard with pending, rechecking, sent, and all views. Question-by-question comparison against the answer key, bulk actions where they are safe, and a hard gate before anything is sent.

Papers auto-sent
0
Review states
Pending / rechecking / sent

Built with

  • React
  • TypeScript
  • Supabase

05 / Recheck loop

Correcting the model

When an admin disagrees, they write the instruction in plain language. The paper goes back to Gemini with that context, returns a revised score, and both versions stay on the record.

Trigger
Admin instruction in plain language
History
Original and revised both retained

06 / Cost engineering

Nonprofit budget

Every architectural choice was also a pricing choice. The result runs at about $0.00375 per paper against commercial tools charging $0.10–0.50 per page — roughly $15 a month in variable cost at full volume.

Cost per paper
$0.00375
Monthly variable cost
~$15
Commercial equivalent
$0.10–0.50 per page

Built with

  • Supabase free tier
  • Vercel
  • Self-hosted n8n

Built with

AI
Gemini 2.5 Flash Structured JSON output Few-shot prompting
Automation
n8n Google Forms Google Drive Google Sheets
Application
React TypeScript Vercel
Data & delivery
Supabase Postgres Supabase Edge Functions Automated email
Results 05

Automation with a human sign-off.

Outcome / 2025
4K

Papers graded / month

Handwritten, multilingual answer sheets processed automatically each month.

$0.00375

Cost per paper

Against $0.10–0.50 per page for commercial grading tools.

90%

Grading agreement

Match rate against human graders, with every result reviewed before send.

1,000+

Teacher hours returned

Per month, redirected from mechanical marking to actual teaching.

~$15

Monthly infra cost

Run almost entirely on free-tier services and self-hosted orchestration.

0

Unreviewed results sent

An admin teacher approves every single paper before it reaches a student.

Takeaways 06

What we learned.

Augment, do not replace

Positioning AI as a first-pass grader and a human as the quality gate produced the productivity gain without any of the trust cost.

The model is the cheap part

Model selection saved 60% on inference, but choosing visual orchestration over a custom backend saved weeks of engineering.

Free tiers are a real architecture

A production system serving thousands of students a month runs on allowances most teams never bother to design against.

Design for the malformed response

Cleanup and retry logic around the model call is what separates a demo from something that runs unattended every sixty seconds.

Who this is for 07

Who else has this problem.

Any organisation where qualified people spend their week on mechanical evaluation that a reviewed model could handle first.

  • Schools and coaching centres

    High-volume internal assessment where teachers grade the same paper structure hundreds of times a term.

  • Education nonprofits and NGOs

    Programme scale that outstrips staffing, on budgets where commercial per-page pricing is not survivable.

  • Universities and exam boards

    Structured-response marking that needs a defensible audit trail and a human of record on every result.

  • Training and certification providers

    Recurring competency assessments where turnaround time is the product.

  • Edtech platforms

    Teams that need a grading layer with review built in rather than a raw model API and a lot of glue code.

Recognise your operation in any of those?

We scope the version of this that fits your systems, your volume, and your budget — and we will tell you if it is not worth building.

Start a project
Questions 08

Questions we get asked about this build.

Can AI reliably grade handwritten answers in Hindi and regional languages?

Yes, with the right model. Gemini 2.5 Flash was chosen specifically for multimodal handwriting recognition across English, Hindi, and regional languages, and reaches 85–90% agreement with human graders on this workload. The remaining gap is exactly why the review layer exists.

Does a teacher still review every paper?

Every one. AI-graded papers land in a pending queue and go nowhere until an admin teacher approves them. If a grade looks wrong, the teacher sends a written instruction and the paper is re-evaluated with that context, keeping both versions on record.

What does it actually cost to run?

About $0.00375 per paper, or roughly $15 a month at four thousand papers. That comes from self-hosted n8n, Supabase’s free database allowance, Vercel hobby hosting, and a deliberately cost-efficient model — against $0.10–0.50 per page for commercial alternatives.

Could this handle our exam format?

The grading prompt is built per subject with explicit criteria, few-shot examples, and an optional answer key, so structured and semi-structured formats port well. Free-form essay marking needs a heavier rubric and a tighter review loop, which we would scope before committing.

How long would a system like this take to build for us?

This one took three months end to end, including the dashboard and the recheck loop. A narrower first version — intake, grading, and review without the recheck workflow — is usually faster, and we would sequence it that way deliberately.

Next project

AWS Document Automation

A cloud-native pipeline that reads scanned documents with OCR and GPT, extracts the details that matter, files each one to the right client automatically, and makes the whole archive searchable and editable.

View case study