Building My Own Job Lead Automation System (and Why It Was Harder Than I Expected)

Published: 25 June 2026 · By Sourov Deb

Promise

After this page you can describe, step by step, how a small job-lead system works: it pulls offers from an official API, adds AI notes, and stores them in a spreadsheet. If you hunt for work in France, this shows you what to automate and what still needs you.

Audience: Adults in Réunion (French first language) looking for teaching or training work, plain English A2–B1. No coding knowledge needed to follow it.
Time to read: 8 minutes · Format: web page

Before you start

You will be able to: name the four parts of my system and say what each one does, in the right order.

Three words you need first:

  1. API — a door that lets one program ask another program for data.
  2. lead — one job offer or contact that might become work.
  3. dry run — a test mode: the system runs but sends and saves nothing.

You need: nothing. A pen helps for the worked example.


Why I built it (my own words, unchanged)

For the past few weeks, I’ve been building a system to automatically find English teaching and training opportunities in France using the official France Travail API. As someone based in La Réunion managing ADHD, bipolar, and a full CELTA qualification process, I needed something stable, low-maintenance, and repeatable — not another manual job board hunt that drains my energy.

Segment 1 — The four tools and what each one does

I built everything inside Google Apps Script (JavaScript in the cloud). The core tools were:

  • France Travail Offres d’emploi v2 API — the official source for active job offers across France (including DOM-TOM).
  • OpenRouter — to enrich leads with AI. I used Claude 3.5 Haiku as the main model and added several free fallback models when the primary one was slow or unavailable.
  • Google Sheets — as my main database to store leads, contact names, outreach drafts, and status.
  • Google Apps Script — to connect everything: pull data, enrich it with AI, write to Sheet, and (soon) send emails.

I also kept an optional GitHub backup layer for summaries, though I’m keeping most sensitive contact data only in my private Sheet.

Visual 1 — Flow diagram
What it shows: how a job offer travels through the system.
How to draw it: Draw four boxes in a line with arrows between them.
The point it makes obvious: Each tool does one job, and Apps Script joins them.

France Travail API --> OpenRouter (AI) --> Google Sheets
  (job offers)          (score + draft)      (my database)
          \_____________ Google Apps Script ____________/
                    (connects every step)

EXAMPLE (work): An offer for an English trainer in Saint-Denis comes from the API. The AI gives it a fit score and writes a short French message. The Sheet stores the offer, the score and the draft in one row.

Check 1: Which tool is my main database?

Show the answer
Google Sheets.

Building it was harder than the plan. Here is where it got stuck.


Segment 2 — Obstacle 1: the editor, not the API

The biggest difficulties weren’t the API itself — it was the friction in the development process.

Apps Script’s editor sometimes refuses to show functions in the dropdown even when the code is correct. I spent hours fighting with a setup_OnceOnly_() function that simply wouldn’t appear. After multiple failed attempts and reloads, I eventually hardcoded the credentials directly into the script just to move forward. It’s not ideal for security, but it let me actually test and get results.

Visual 2 — Before / after pair
What it shows: what I wanted and what I did to move forward.
How to draw it: Write the plan on the left and the workaround on the right.
The point it makes obvious: A workaround can unblock you, but it has a cost.

PLAN                              WORKAROUND
run setup_OnceOnly_() to store  -> credentials hardcoded in
credentials safely                 the script
(function would not appear)        cost: weaker security

EXAMPLE (household): The key to the letterbox is lost, so you leave the box unlocked to get your post. It works today, but you must fix the lock soon.

Check 2: Why is hardcoding credentials “not ideal”?

Show the answer
Because it is weaker for security: anyone who sees the script can see the credentials.

The second obstacle came from the data itself.


Segment 3 — Obstacle 2: missing contacts in the data

Another challenge was data quality. France Travail gives good job titles and descriptions, but direct emails and contact persons are often missing. Many leads only have generic “apply through France Travail” links. This forced me to focus more on generating strong outreach drafts that candidates can use manually or via email when contacts become available.

Visual 3 — Comparison table
What it shows: what a France Travail offer usually gives, and what it often lacks.
How to draw it: Draw two columns: usually there, often missing.
The point it makes obvious: Good titles and descriptions, but often no direct contact.

USUALLY THERE          OFTEN MISSING
---------------------  ---------------------
job title              direct email
description            contact person
"apply through         
 France Travail" link

EXAMPLE (work): An offer has no email, only an “apply” link. You keep the strong French draft ready, and you send it when you find the contact.

Check 3: What did missing contacts push me to focus on?

Show the answer
Writing strong outreach drafts that can be used later, by hand or by email.

Speed is tempting, so I added a safety switch.


Segment 4 — The safety switch: dry-run mode

Balancing speed with safety was also constant. I kept a strict DRY_RUN mode for a long time so I wouldn’t accidentally spam anyone while testing.

Visual 4 — Before / after pair
What it shows: the same run with dry run on and off.
How to draw it: Draw two boxes: ON and OFF. Write what happens in each.
The point it makes obvious: In dry run nothing leaves the system.

DRY_RUN = ON              DRY_RUN = OFF
reads offers              reads offers
scores + drafts           scores + drafts
saves nothing             saves to Sheet
sends nothing             (later) sends emails

EXAMPLE (daily life): Before you post a parcel, you weigh it at home first. Nothing is sent, but you learn what will happen.

Check 4: Why keep dry-run mode on while testing?

Show the answer
So the system does not accidentally spam anyone.

With the switch in place, here is what one run produced.


Segment 5 — What one run achieved

In one run I pulled and enriched 159 leads. The system now:

  • Searches multiple keywords across regions
  • Uses AI (with free fallback models) to score fit and write personalized French outreach messages
  • Stores everything cleanly in my Google Sheet with proper columns for follow-up

The outreach drafts already use the correct CELTA phrasing I need: “Formation Cambridge CELTA complétée — 120 heures supervisées, 4 travaux écrits validés au standard requis, qualification en appel.”

Visual 5 — Step strip
What it shows: what the system does now, in order.
How to draw it: Draw three numbered boxes from left to right.
The point it makes obvious: Search, score and draft, then store.

[1 Search]            [2 Score + draft]         [3 Store]
many keywords,   ->   AI with free fallback  ->  Google Sheet,
many regions          models, French message     follow-up columns

One run: 159 leads

EXAMPLE (work): 159 leads is more than anyone can read in one day. The fit score lets you start with the best ten.

Check 5: How many leads did one run pull and enrich?

Show the answer
159.

Next steps (my own words, unchanged)

I’m now turning off dry-run mode so the leads actually save into my Sheet. After that I plan to add controlled email sending (maximum 20 per run) with attachments. The long-term goal is a stable, low-energy system that surfaces real opportunities without me having to stare at job boards every day.

Building this reminded me that automation is rarely “set and forget” — especially when you’re working with official APIs, quirky editors, and incomplete public data. But once the foundation is solid, it becomes a genuine quality-of-life tool.


Worked example — follow one offer through the system

The task: A new offer appears: “Formateur anglais, Saint-Pierre”. Follow it from start to finish.

StepWhat happensWhy
1Apps Script asks the France Travail API for offers with the keyword.The API is the official source of offers.
2OpenRouter scores the fit and writes a French message.AI adds the notes I would write by hand.
3If the main model is slow, a free fallback model answers.The system keeps running.
4With dry run ON, nothing is saved; with it OFF, the row goes into the Sheet.Safety first while testing.
5No direct email? The draft waits in the Sheet until a contact is found.Many offers only have an “apply through France Travail” link.

Self-explanation prompt: Why does step 4 come before any email is sent? Because a mistake in testing could send messages to real employers.

Your turn (guided): Do the same for an offer that has a direct email. Step 5 changes: what happens? (Answer: the draft can be sent, once controlled sending is added, with a maximum of 20 per run.)


Common mistakes

MistakeWhy it happensFix
Testing with real sending onYou want to see it work.Keep dry-run mode on until the output is right.
Leaving credentials in the scriptThe proper setup function would not appear.Treat it as temporary and move credentials to a safer place.
Expecting every offer to have a contactJob boards look complete.Plan for missing emails; keep drafts ready.
Relying on one AI modelThe main model usually works.Add fallback models for slow or unavailable times.

Glossary

TermPlain definitionWhere first used
APIa door that lets programs ask each other for dataBefore you start
leadone offer or contact that might become workBefore you start
dry runtest mode that saves and sends nothingBefore you start
Google Apps ScriptJavaScript that runs in Google’s cloudSegment 1
fallback modela second AI model used when the first is slowSegment 1
credentialsthe secret keys that let a program log inSegment 2
outreach drafta ready message to send to an employerSegment 3

Quick review

  1. What are the four tools in my system?
  2. Which tool joins all the steps?
  3. What was the biggest difficulty?
  4. What does dry-run mode do?
  5. What is the planned limit for email sending per run?
Show all five answers
1) France Travail Offres d’emploi v2 API, OpenRouter, Google Sheets, Google Apps Script.
2) Google Apps Script.
3) The friction in the development process, for example the editor not showing a function.
4) It runs the system without saving or sending anything.
5) A maximum of 20 per run.

Sources

  • Everything on this page is my own account of building the system (published 25 June 2026), kept as written. The 159-lead figure is from my own run.
  • France Travail “Offres d’emploi” API: data.gouv.fr listing. Update checked on 28 October 2026: data.gouv.fr says the API is no longer openly shown on francetravail.io while France Travail reviews how it is reused, and access is now on request through the francetravail.io contact form.
  • Why contacts are often missing: France Travail says an employer’s visible contact details go into the API only with the employer’s consent (francetravail.fr).
  • Google Apps Script: developers.google.com/apps-script.

Status: rewritten in lecture-notes style on 28 October 2026. Not tested with readers.

Contact, follow and legal information

Contact

Questions about a post, a lesson or a video? Write to me.

sourovdeb.is [at] gmail [dot] com

Contact page

Mermaid Studio