automation · n8n · 2026

Job Hunter

A pipeline that reads every job listing for me, only pings me about the ones I'm actually allowed to take, and tracks what I do with them.

roleSolo
sourcesLinkedIn · Indeed
cadence4 runs / day, 8 AM to 8 PM
statusStill in use
n8n workflow for Job Hunter
the pipeline workflow — rotate terms, scrape, dedupe, judge (failures skip, not crash), compute verdict, store, notify
01 — why

As a DOST-SEI scholar I owe a Return of Service: my employer has to be a Philippine-registered entity. No job board lets you filter for that.

“Remote” doesn’t tell you whether a company can issue a Philippine Certificate of Employment. Checking that by hand — on top of stack fit, work setup and experience level — was the real bottleneck. Job Hunter automates the screening, not the applying.

RA 2067 · in shortServe in the Philippines, ideally in your field, for as long as the scholarship lasted — at a Philippine-registered employer or a valid EOR.
02 — an early run
105 in, 12 worth reading
105
scraped · 6 search terms × 2 sites
81
after within-batch dedup
60
after cross-run dedup (Postgres)
12
passed every gate and scored 5+ → Telegram
03 — how a job is judged
The LLM judges, code decides

Gemini only returns judgments that need reading comprehension: employer ROS status, work setup, office days, whether it’s really a dev role, and three subscores. A Compute Verdict code node owns every rule — dates, salary math, gates, flags and the final call. Fail any gate and the score drops to 0, but the subscores are kept so near-misses stay visible. Telegram only fires at 5+.

gate 1fail → OLD JOB POST
FreshnessPosted more than 31 days ago? Not worth the application.
gate 2fail → ONSITE
OnsiteIn the office every working day.
gate 3fail → OFFICE 3+ DAYS
Office daysHybrid, but more than two required office days a week.
gate 4fail → LOCATION FAR
LocationOffice clearly outside ~100 km of Santa Cruz, Laguna. Fully remote skips this.
gate 5fail → STACK MISMATCH
StackAn out-of-ecosystem stack (Java enterprise, .NET, SAP, low-code, mobile-only) is the primary stack.
gate 6fail → NOT DEV ROLE
Dev roleThe main job is QA, IT support, data entry or similar, not development.
score · 0–10notify ≥ 5
Stack fit0–3
Scored by the LLM. "Nice to have" mentions of other stacks don't count against it.
Experience0–2
Junior or 1–2 years scores highest; 3+ years scores 0 and gets a REACH ROLE flag.
Green / red flags0–3
Employer signals: PH address, named EOR, junior-friendly language, time tracking.
Salary0–2
Computed in code: bottom of the range, converted to monthly PHP, scored against two floors.

Unclear inputs never gate — a missing date or unstated setup becomes a flag and the job still gets through. A noisy alert costs a few seconds; a wrongly gated job is invisible forever. ROS works the same way: an unverifiable employer alerts with a ⚠️, and a clearly foreign one only alerts if the pay is high enough to make buying out the obligation worth considering.

Telegram job match messages
04 — what lands on my phone
Score, flags, and the reasoning — so I can decide in seconds

Every job is stored in Postgres with its judgments, computed verdict and the rules version that produced it, pass or fail. Only matches reach Telegram, each with ❤️ / ✅ / 🔗 buttons. A separate Error Trigger sends its own alert, so a crash never looks like an empty job market.

05 — the companion bot
Tapping a button is the whole tracking system

A second workflow listens for taps and commands. ❤️ toggles interest, ✅ marks a job applied, and /stats, /liked, /applied and /status manage the rest. /applied only moves forward, so a typo can’t rewind an interview back to “applied”.

Applications with no update for 21 days show up as ghosted — computed at read time by a view, so it never goes stale. Messages from anyone but me get no response at all.

n8n workflow for the Job Hunter Telegram bot
06 — what I learned
The parts that bit me
The LLM was bad at the parts code is good atEarly versions let Gemini do everything. It miscounted days near the age cutoff, emitted contradictory flags and invented ones the text didn't support. Now it returns required fields only, every rule-based flag is recomputed in code, and each row stores a rules_version so old and new scoring never mix.
One failed LLM call used to sink the whole runGemini's free tier throws occasional 503s when the model is overloaded. One that outlasted the retries stopped the execution, and since inserts happen after the loop, every job already scored that run was lost. Now a failed call emits a placeholder instead — Combine pairs verdicts with jobs by position, so every iteration must emit exactly one item. Placeholders are dropped before insert, and because cross-run dedup only skips stored jobs, the next scrape that finds it evaluates it again. Not inserting it is the retry.
Pinned test data hid broken wiringThe search-terms node was disconnected, but its pinned output kept manual tests passing. The first scheduled run failed instantly. Now I unpin and re-test from a cold trigger before trusting a workflow.
Zero rows means the flow just stopsAn n8n Postgres node that returns nothing outputs nothing, and the bot went silent. Every bot query now aggregates into exactly one row, and every formatter falls back to a non-empty message, since Telegram rejects empty ones.
Never trust the board's remote flagIndeed marks "Hybrid remote" listings as remote; one caused an alert for a 4-days-onsite role. Work setup now comes only from the LLM reading the description.
Rotate offsets instead of re-scrapingBoards return the same top results every time. A small table tracks an offset per search term (0 → 10 → 20 → 30 → 0), so each run samples a new slice — and every term that found a job is stored, so I can tell which terms actually earn their place.
Free-tier limits picked the modelGemini 1.5–2.5 Flash and Groq hit rate limits fast — some as low as 5 requests a day. Gemini 3.1 Flash Lite (15 RPM, 500 RPD) plus a batch-of-1 loop with a short wait keeps it under the ceiling.
07 — stack
orchestrationn8n, self-hosted — a scheduled pipeline and an event-driven bot
scrapingPython · JobSpy · Flask wrapper
databasePostgreSQL — isolated job_hunter schema, applications table + status view
llmGoogle Gemini 3.1 Flash Lite
notificationsTelegram Bot API, inline buttons
infraDocker Compose on my M710Q homelab · Tailscale Funnel exposes only webhook paths
08 — where it is now

Still running and still useful. Moving the rules into code made the alerts stricter and much cleaner — recent runs usually produce a handful, nearly all real dev roles in range or remote. Most rejections are correct: junior NestJS roles in the Philippines are genuinely thin, and the matches usually skew senior, which lands as REACH ROLE instead of a strong fit.