← Back to Projects

LabReach AI

Research outreach helper: scrape lab pages, draft with a local LLM option, and never send until I review.

2026 · In progress

  • Python
  • Ollama
  • BeautifulSoup
  • Playwright
  • SQLite
  • Gmail API

Key outcomes

  • Hybrid scrape path for JS-heavy faculty pages
  • Local drafting option so research notes do not have to hit a cloud API
  • Hard review step before any send

Project overview

LabReach AI, photo 1

LabReach finds lab pages, pulls context, drafts outreach, and forces a review step before Gmail can send anything.

System architecture

LabReach AI, photo 2

URLs → scrape/extract → structured profiles → LLM draft → review artifacts → optional send.

Discovery
Crawl department listings and candidate lab URLs.
Extraction
Pull emails and research context from messy faculty pages.
Drafting
Local or configured LLM turns context into outreach text.
Review gate
Human checkpoint is mandatory before send scheduling.

Engineering decisions

DecisionAlternativeWhy
Human review as invariantAuto-sendReview artifacts required before send.
Local drafting optionCloud-only LLMSupport local drafting for sensitive workflows.

Results and future work

Working CLI pipeline. End-to-end prep flow with a mandatory review step before mail.

Still open. Not a hosted SaaS; extraction quality remains site-dependent.

  • Campaign observability and safer retry policies.
Full engineering log

Motivation

Why I started this

What pulled me in, and what I wanted to get better at.

Why I built it

Research outreach prep was repetitive, and fully automatic emailing felt reckless. I wanted help without a silent send button.

What interested me

Faculty pages are messy. LLM drafts are easy. Sending the wrong email is expensive.

What I wanted to learn

I built scrape, draft, review, then maybe send. Local Ollama is there when I do not want research notes leaving my machine.

System Overview

How the system fits together

LabReach finds lab pages, pulls context, drafts outreach, and forces a review step before Gmail can send anything.

01

Discovery

Crawl department listings and candidate lab URLs.

02

Extraction

Pull emails and research context from messy faculty pages.

03

Drafting

Local or configured LLM turns context into outreach text.

04

Review gate

Human checkpoint is mandatory before send scheduling.

Data flow

URLs → scrape/extract → structured profiles → LLM draft → review artifacts → optional send.

Control flow

Campaign state lives in SQLite. Send actions are explicit; drafts never auto-mail.

Engineering Breakdown

Broken down by discipline

Each block is the requirement, how that part works, what I checked, and what is still open.

01Acquisition & Extraction

Acquisition & Extraction

Goal

Turn JS-heavy faculty pages into structured outreach context.

Design

BeautifulSoup plus Playwright for pages that defeat static HTML. Extraction quality varies; the pipeline records failures instead of guessing emails.

Challenges

  • JS-rendered directories break naive scrapers.
  • Email formats and robots policies vary by department.

Iterations

  • Static scrape
  • Playwright path
  • Per-site failure logging

Final implementation

Hybrid extraction with stored context for the drafting stage.

02Drafting & Control Plane

Drafting & Control Plane

Goal

Accelerate writing without removing human accountability.

Design

Ollama/local drafting option, template context, and review artifacts before Gmail API send.

Challenges

  • Automation without brakes creates reputation risk.
  • Draft quality still needs domain-aware editing.

Iterations

  • Single-email script
  • Campaign history
  • Hard review gate

Final implementation

CLI pipeline where review is part of the product, not an afterthought.

Key Design Decisions

Design decisions

DecisionAlternativeWhy
Human review as invariantAuto-sendReview artifacts required before send.
Local drafting optionCloud-only LLMSupport local drafting for sensitive workflows.
Notes on these decisions

Human review as invariant

Can drafts ever send automatically?

Auto-send is faster and unsafe for cold academic outreach.

Review artifacts required before send.

Local drafting option

Where should sensitive research text go?

Cloud is convenient; local keeps drafts off third-party servers.

Support local drafting for sensitive workflows.

Results & Validation

What held up

What worked in the end, what I can show for it, and where it's still limited.

Working CLI pipeline

GitHub labreach-ai

End-to-end prep flow with a mandatory review step before mail.

Limitations

  • Not a hosted SaaS; extraction quality remains site-dependent.
Bench notes

The longer design notes, the timeline, and the revisions. The sections above are the system and what I measured.

Evolution

How it got here

The steps I can put in order from the notes. A clip opens from its still.

  1. v1

    Script

    One-off scrape and draft.

  2. v2

    Pipeline

    Discovery, storage, and review gates.

  3. Next

    Observability

    Stronger campaign retries and metrics.

Reflection

Looking back

What surprised me, what I'd redo, and questions I'm still chewing on.

What surprised me

  • The review layer mattered more than clever prompting.

What I would redesign

  • More structured schema for faculty pages.

Future improvements

  • Campaign observability and safer retry policies.

Questions that emerged

  • Where should academic outreach automation stop?

Notes

  • Speed without a send brake is not a feature.
  • Extraction failures should be data, not silent guesses.