Skip to content

About

Helping international students understand the conditions behind US university financial aid.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Second Chance

The aid offer is only part of the story

Second Chance helps international students find the financial aid details they need before committing to a US university.

Explore the live app · How it works · Run locally · API contract

React FastAPI Vite Vercel

Built for EvoHacks II · Projects for Social Good


How Inquiry Preparation & Agentboxd Work Together

Finding a hidden policy detail is only half the battle. When an international student discovers that a university requires financial aid applications at the time of admission, their immediate next question is: how do I ask the university without getting confused or sounding demanding?

Second Chance addresses this through two coordinated layers:

  1. Student-Facing Inquiry Composer: Translates complex fine-print conditions into clear, polite, natural questions addressed to the university's official financial aid desk (e.g., finaid@cornell.edu), accompanied by exact source links and privacy guardrails.
  2. Agentboxd Agent Sandbox & Mailbox API: Agentboxd (https://api.agentboxd.com) provides programmatic email inboxes for AI agent workflows. In Second Chance, Agentboxd serves as an isolated communication sandbox for operator testing (/api/operator). Rather than allowing autonomous agents to fire off unverified emails to university admissions offices, our backend saves drafts unaddressed (POST /v1/inboxes/:id/drafts) and inspects test replies (GET /v1/inboxes/:id/threads) under mandatory human review.
flowchart LR
    A["Verified Policy Evidence"] --> B["Select Questions"]
    B --> C["Inquiry Assistant"]
    C --> D["Polite Draft + Source Links"]
    D --> E["Student: Open in Mail App / Copy"]
    D --> F["Operator Sandbox: POST /drafts"]
    F --> G["Agentboxd Inbox"]
    G --> H["Human Review & Test Loop"]
Loading
  • Natural student phrasing: Translates internal research checklists into respectful, professional questions suited for financial aid deans.
  • Privacy guardrails: Warns applicants never to send tax forms, passwords, bank account numbers, or national identity documents in initial inquiries.
  • Zero auto-spam: In the agent/operator workflow, no email is ever sent or scheduled automatically. It requires explicit human review in the Agentboxd dashboard.

See the Agentboxd integration architecture and safety model for full technical details.


The story

I was excited when I got into Loyola. The offer came with 50% financial aid. It sounded like a chance I could finally take. Then I worked out what was left to pay: more than ₹20 lakh a year.

I remember trying to understand the conditions on my own. The details were spread across university pages, and a generous percentage still left a cost I could not ignore.

We built Second Chance to help other students find the details and ask better questions earlier. The app does not calculate your final cost or decide whether you will receive aid.


What you can do

Find a university Search by name and choose the matching institution.
Read the evidence Explore source-linked passages, review status and retrieval details when available.
See what to check Review next steps and questions relevant to the information returned.
Compose an inquiry Prepare an editable inquiry email citing official sources, with clear safety guardrails.
Take the questions with you Copy or export the checklist before speaking with a university.

Important

Second Chance is a research starting point, not an admission, aid or cost decision. Policies can change, and a snippet may not contain every condition. Check the original source and confirm details directly with the university.

How it works

flowchart LR
    A[Search for a university] --> B[Choose a directory result]
    B --> C{Research}
    C --> D[Curated policy records]
    C --> E[Official-page discovery]
    D --> F[Source passages + next questions]
    E --> F
    C --> G[Unavailable or stale result]
    F --> H[Read the source and confirm with the university]
Loading

Some universities have curated records. For others, College Scorecard can help find the institution, and Tavily can help locate pages on its domain. The API extracts passages and returns their sources and review details. Results can be fresh, cached, stale or unavailable. Automatically discovered passages are marked unreviewed.

We do not cover every policy. Without the optional API keys, discovery is limited to curated records. Even with keys, a university may have no usable result.

Built with

React + Vite for the interface, FastAPI + Python for the API, SQLite for the evidence cache, and Vercel for deployment. The optional directory and discovery integrations use College Scorecard and Tavily.


Run locally

Requirements: Python 3.13, Node.js 20 and npm. These versions match the repository's CI configuration.

1. Start the backend

git clone https://github.com/AtulACleaver/second-chance.git
cd second-chance
cp .env.example .env

cd backend
python -m venv .venv
source .venv/bin/activate       # Windows PowerShell: .venv\Scripts\Activate.ps1
pip install -r requirements.txt
python -m uvicorn app.main:app --reload --port 8000

API health: http://127.0.0.1:8000/api/health · API docs: http://127.0.0.1:8000/docs

2. Start the frontend

Open a second terminal from the repository root:

cd frontend
npm ci
npm run dev

Open http://localhost:5173. Vite proxies /api requests to the local backend.

Optional configuration

Edit the root .env file. Never commit API keys.

Variable Purpose
SCORECARD_API_KEY Enables broader university directory searches.
TAVILY_API_KEY Enables discovery of official pages for non-curated schools.
CACHE_PATH Sets the local SQLite cache path.
ENABLE_OPERATOR_API Enables private operator endpoints (/api/operator) for testing (true or false).
OPERATOR_TOKEN Bearer token protecting operator endpoints.
AGENTBOXD_API_KEY API key for Agentboxd draft integration.
AGENTBOXD_INBOX_ID Designated inbox ID for test inquiry drafts.

The app can run without the external keys, defaulting to curated records and local operations. See .env.example for the full list of settings.

Run the checks

# From the repository root, with the backend virtual environment active
(cd backend && python -m pytest -q)
python evaluation/run.py
python evaluation/agentboxd_checks.py

# Frontend production build
(cd frontend && npm run build)

The evaluation uses fictional profiles and boundary checks. It is a regression test, not a measure of real-world financial aid accuracy. See evaluation results.


Under the hood

Path Purpose
frontend/ React interface and API client
backend/app/ Directory lookup, research, policy records and cache
api/ Vercel serverless entry point
evaluation/ Fictional profile fixtures and evaluation runner
docs/CONTRACT.md API request and response contract

API at a glance: GET /api/health checks service health, GET /api/schools?q=... searches the directory, and POST /api/research returns source-linked research for a selected school. See the contract for request fields and response states.

Agentboxd integration

Second Chance connects student research to institutional follow-up through a two-tier workflow:

  1. Client-side inquiry assistant: An in-browser tool that formats selected policy questions into an editable email draft with resolved official university desk addresses and verified source citations, complete with safety guardrails (reminding applicants never to share financial documents, passwords, or SSNs).
  2. Protected operator portal: A private, authenticated team demo workflow (/api/operator) that creates unaddressed, unsent drafts in Agentboxd (POST /v1/inboxes/:id/drafts) for mandatory human operator review. It is disabled by default, requires a Bearer token, and never sends email automatically.

For the security boundaries, API contract, and multi-user roadmap, see Agentboxd documentation.

Team

Focus
Atul Backend and project direction
Aryan Integration, testing and coordination
Shashank Frontend and design

Built for EvoHacks II. See AI-USE.md for the project's AI-use and contribution disclosure.

About

Helping international students understand the conditions behind US university financial aid.

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages