AI Job Outreach Automation
A daily n8n pipeline that finds companies hiring remote Executive Assistants, uses Claude to qualify each posting and write a personalised outreach email, then hands a sales team a ready-to-work Google Sheet. A business that places remote Executive Assistants with founders and executives needs a steady flow of companies that are actively hiring for that role. Finding them by hand means checking several job boards every day, opening every posting, deciding if it is genuinely remote, English-speaking and actually an EA role, then writing a personal message to each company. I built an automation that does all of that every morning and drops only qualified opportunities, each with a drafted email, into a Google Sheet a sales rep works from.
The challenge
- Job boards return a lot of noise. A search for "executive assistant" also returns engineering roles, medical assistants, hybrid office jobs and postings written in other languages.
- The same job is often cross-posted on several boards, so naive scraping creates duplicates.
- Generic outreach gets ignored. Each message had to reference real details from the posting.
- The sales team needed to change the tone of messages and test variations without touching the automation.
- It had to be compliant: no LinkedIn, no HTML scraping, only official public APIs and within each provider's rate limits and attribution rules.
- LLM costs had to stay low even when a board returns dozens of irrelevant postings.
The solution
A scheduled n8n workflow with five stages:
- Setup and dedupe. A single Config node holds every setting: search terms, enabled sources, filters, models and limits. The workflow reads three tabs from the Google Sheet: the prompt library, every job already saved and every job already rejected. Anything already processed is never checked or paid for twice.
- Collect and pre-filter. One code node calls the Remotive, Jobicy and Himalayas public APIs for each search term, maps all three response formats into one common shape, strips HTML from descriptions and removes postings older than 21 days. Jobs cross-posted on more than one board are merged by matching company and title. If one board fails, the others still run. A rule-based pre-filter then drops obvious mismatches for free before any AI call: titles that are not Executive or Admin Assistant roles, titles that say hybrid or on-site, descriptions not written in English (detected by an English word-frequency check) and postings that require another language. A language listed as "a plus" is still allowed.
- Claude validates. Each remaining posting goes to Claude Haiku with forced tool use, so the response is always strict JSON. Claude decides whether the role is truly remote, English-speaking and relevant, with a short piece of evidence for each decision. In the same call it extracts personalisation details: who the assistant would support, the three most specific responsibilities and the tools mentioned.
- Claude writes the outreach. Qualified jobs go to Claude Sonnet, which writes a short email that references concrete details from that posting. The prompt is not hard-coded. It lives in a Prompts tab in the Google Sheet with placeholders such as {{company_name}}, {{executive_supported}} and {{key_responsibilities}}. The team can switch tone by marking a different row Active. If two rows are Active, each job randomly gets one and the version used is recorded next to the message, which makes A/B testing reply rates a simple filter in the Sheet.
- Deliver and audit. Qualified jobs are appended to a Jobs tab with the posting URL, title, company, location, description and the drafted message, plus Status, Owner and Rep Notes columns for the sales rep. The Status column is a colour-coded dropdown (New, Contacted, Replied, Meeting Booked, Not Interested, Skip). Every rejected posting is logged in a Filtered Out tab with the stage and the exact reason, so the filter is fully auditable and easy to tune.
How I built it
- Architecture first: I chose public JSON APIs over scraping to stay within each board's terms, and split filtering into a free rules layer and a paid LLM layer to keep costs predictable. A per-run cap limits how many postings reach Claude, and any overflow is picked up on the next run.
- Code kept outside n8n: all eight Code nodes live as separate JavaScript files in version control. A build script assembles them into the importable n8n workflow JSON, so the logic is readable, diffable and testable.
- Offline test suite: I wrote a test harness that runs every Code node the same way n8n does, with mocked job board responses, mocked Google Sheets reads and mocked Claude replies. It covers deduplication, cross-posting, old postings, each rejection rule, prompt loading and filling from the Sheet, the fallback prompt, retry behaviour and replayed data.
- Model choice per task: Haiku for the high-volume yes or no classification, Sonnet only for the smaller set of messages where writing quality matters.
- Reliability: Claude calls are batched with retries. If a call still fails, that posting is deliberately not logged anywhere, so it is automatically retried on the next run instead of being lost.
- Sales-ready Sheet: I generated a Sheet template with frozen headers, column widths, status dropdowns, conditional formatting, two ready-made prompt versions and a How To Use tab for the rep.
- Documentation: a README covering install, credentials, scheduling, adjusting filters and prompts, troubleshooting and the sales rep's daily routine.
Problems I solved during deployment
- Google Sheets API rejected the uploaded template because it was still an Office file. I fixed it by converting it to a native Google Sheet and pointing the nodes at the new document.
- The Claude API returned authentication errors because the key was being sent as a bearer token. I fixed it by sending the key in the correct x-api-key header.
- The model rejected a deprecated sampling parameter. I removed it from both request builders and re-ran the tests.
- Re-running the workflow with pinned test data appended duplicate rows, because pinned output skipped the dedupe step. I added a second dedupe guard right before filtering, so already-processed postings are dropped no matter how the workflow is triggered, and added a test for that case.
Results
- The first live run processed 44 fresh postings across three job boards. The rule layer removed 42 of them before any AI cost. Claude reviewed the remaining 2 and qualified 1, which landed in the Sheet with a personalised email.
- Every rejected posting is logged with its reason.
- It runs daily on a schedule with no manual work.
- Message tone can be changed or A/B tested from the Sheet without touching the workflow.
- AI cost stays low because only pre-filtered postings ever reach Claude.
Key takeaways
- Cheap deterministic rules in front of an LLM cut cost and noise dramatically.
- Forced tool use makes LLM output dependable enough to drive automation logic.
- Putting prompts where the business team already works gives them control without engineering help.
- Idempotency matters: an automation that runs daily has to be safe to run twice.
Tools used
Want results like this for your business?
Let's talk