Freight carrier lead pipeline and cold-email sender
A pipeline that turns public FMCSA carrier filings into a clean, de-duplicated lead list and sends personalised outreach from the business's own Google Workspace inboxes.
The problem
A small trucking dispatch business needed a steady supply of new carriers to contact. The raw source is a daily PDF of filings that lists carrier numbers but no contact details, and cold email from a brand-new domain goes to spam unless it is set up carefully.
How I built it
I split the work into small steps that can be rerun safely: extract carrier numbers from the PDF into SQLite, enrich them with contact and fleet data, keep only carriers that are active and old enough, and export a clean file for the campaign tool. For sending I built a second route that uses the business's own Google Workspace inboxes through the Gmail API, with per-inbox daily caps, randomised delays, template rotation and day-3 follow-ups that thread under the original email. A reply check runs before follow-ups so nobody who answered gets chased, and an optional step writes each first email with an LLM and checks it against a list of spam phrases before it can be sent.
What got hard
- Google Workspace blocked the sending tool at the sign-in screen.
New third-party apps are blocked by default, so I wrote the admin steps to open it for the setup window, built a sender that uses one OAuth token per inbox, and listed when to tighten the setting again.
- Deliverability before volume.
The plan uses a separate outreach domain, a single SPF record, DKIM, DMARC introduced in stages, a three-week warm-up with no cold sends, then a gradual ramp in daily volume per inbox, with open, reply, bounce and spam-complaint targets to watch weekly.
- Never contacting the same carrier twice.
A sent log keyed by carrier number and campaign survives monthly database rebuilds, and follow-ups skip anyone who replied, including replies that come from a different address than the one contacted.
- Getting the sender right before anything goes live.
Every sender defaults to a dry run, and a written review of the sender listed the issues to close first (token scopes, how daily caps are counted, duplicate-send risk if the process is killed mid-send).
The result
Built the extraction, enrichment, export and sending tools, with a setup guide, a daily workflow and a weekly monitoring checklist.
The ← and → keys turn the page too.