I built a Claude agent that scrapes leads, builds sites,and writes cold emails while I sleep. Four routines, one folder, zero manual work. Here is the kit.
By Gencay
Published: 2026-06-08
URL: https://www.learnwithmeai.com/p/claude-agent-night-shift
“If you don’t find a way to make money while you sleep, you will work until you die.”
Warren Buffet
After reading this quote, I of course immediately thought about how I can do this with AI.
Hundreds of workflows later, one actually clicked.
A Claude agent that runs sales while I sleep.
Here is the part nobody tells you about freelancing. You stop selling, the money stops. There is no night shift.
There is one of you, and you need to sleep.
Local businesses are the easiest sale on earth. ,
A restaurant with a 4.6 rating and no website.
A salon with 200 reviews and a Facebook page from 2019.
They have customers. They have money. They are invisible past one Google Maps pin.
Finding them takes hours.
Emails take more.
Build a sample site, write the pitch, do it again for the next one.
By the third lead, your brain stops.
So I handed the shift to a Claude Agent.
What the Claude Agent Builds with Claude Code and Routines?

\The full Claude agent flow: download the kit, answer three questions, and four chained routines run overnight while you sleep.\
Not one agent doing everything. Three Claude routines, chained.
Each one finishes a job, drops the output in a folder, and the next one picks it up. Then a fourth step that is mine.
My first version skipped the chain. I told one agent to find leads and send emails. It found leads. It sent emails. To everyone, a generic template, no site attached, while I slept and could not stop it. I woke up to thirty sent messages and one confused restaurant owner asking who I was.
I killed the autopilot that morning.
Then I understood the rule. The agent does the work. I press send. Automation should remove the labor, not the judgment.
So I broke it into stages. One job per routine. Each runs at night, in order.
Routine 1: How the Claude Agent Finds the Businesses

\Routine 1 of the Claude agent runs at 2 AM, scraping local barber shops in El Paso with no real website.\
The Apify Google Maps Scraper pulls 10 results for a [business type] in a [city].
Then it drops the ones with a real website.
It keeps five.
For each one it writes the raw data to a folder.

\Routine 1 writes one JSON file per business into the folder. Five barber shops with no website, each saved as raw data for the next routine to pick up.\
Name, rating, review count, category, neighborhood, hours, amenities, the shop’s own photo, and its top Google reviews.
One file per business, similar to this.

\One file per business, raw data the Claude agent builds every site and email from.\
Routine 2: How the Agent Builds the Sites

\Routine 2 of the Claude agent runs at 3 AM, one hour after the scrape.\
It reads the folder Routine 1 filled and builds one page per business.
Not a bare template. A real site.
The hero uses the shop’s own Google photo behind a dark overlay.
Name, category, neighborhood, and the star rating up top. A services menu with prices. Hours.
A why-choose-us block pulled from their amenities, parking, and payments.
Their real Google reviews near the bottom.
A call button that dials the shop. Each site saved next to its data.
Here is one example.

\A site the Claude agent built for Kingdom Barbershop: their own photo, 4.9 rating, 225 Google reviews, and a call-to-book button. A real page from real data.\
Routine 3: How the Agent Writes the Pitch

\Routine 3 of the Claude agent runs at 4 AM. It writes one cold-email draft per barber shop, links the site already built, and saves it. Never sends.\
It reads both folders, the data and the site, and writes one cold email per business. Real name, real rating, link to the site already built, saved as a draft. Nothing sent.
Here is one draft it produced, untouched.

\One cold-email draft, untouched. Real name, real 4.9 rating, the site link, and a soft ask. The Claude agent writes five of these a night and sends none.\
Note: You can use this apify actor to find email addresses: https://apify.com/pipelinelabs/leads-finder-with-emails-apollo-lusha-zoominfo
Routine 4: The Report

\Routine 4 of the Claude agent runs at 5 AM, last in the chain. It reads every folder and writes one morning summary of the night’s run.\
I wake up, open the drafts, check each site, and see the report.

\The morning report from the Claude agent: 10 businesses scraped, 5 sites built, 5 drafts ready to send.\
Choose which one to send, or send all of them, because there will be 5 email drafts and 5 websites waiting for you.
If you can’t find their email address, you can call them directly or visit the business in person and speak with them face-to-face.
How the Claude Agent Works from Your Side

\The Claude agent from your side: download the kit, answer three questions once, and it builds and schedules all four routines itself.\
You do not build any of this. That is the point.
You just download the agent kit, which includes:
- SKILL.md
- CLAUDE.md
- The folder structure
It explains everything.
The kit asks you three things. Your Apify key. The folder it should work in. And what to hunt, the business type and the city. You answer once. That is the entire setup.
Then the kit builds the routines itself. It writes Routine 1, 2, 3, and 4, drops in your key and your target, and schedules them for the night. You do not touch a single one.
Then you sleep. The chain runs at 2, 3, 4, and 5 AM without you.
In the morning the leads are found, the sites are built, the drafts are written, and a report sits on top. You read them over coffee and press send on the ones worth sending.
Your whole job is the last twenty minutes. The kit did the night, the setup, and the wiring. You kept the judgment.
Setup
Now let me give you one prompt and the link;
Here is the google drive link: https://drive.google.com/drive/folders/1vPADeZSmwSha6cHe-mO\55apne0\gGhS?usp=sharing
After downloading this file, upload it to the Claude Code/Cowork(using Claude app) and paste this prompt;
Set up my Nightshift Sales Agent using this folder. [attach the folder you download]
Read CLAUDE.md in this folder — it has the four routines. Use THIS folder as the
working folder (output goes into potential_customer/ here). The example-run/
folder shows what good output looks like.
Ask me for:
1. my Apify API token,
2. the business type and city to target (e.g. "barber shops in El Paso, TX").
Then create and schedule the four nightly routines in order — Routine 1 Scrape
(~2 AM), Routine 2 Build sites (~3 AM), Routine 3 Write drafts (~4 AM),
Routine 4 Report (~5 AM). Fill the prompts with my Apify token, this folder's
path, and my business + city.
Rules: only businesses with no real website (a Booksy/booking link or directory
page doesn't count). Build a polished site per business using their photo,
rating, hours, services, and real Google reviews. Write one short cold-email
draft each — never send anything, save drafts only.
When done, tell me what you scheduled and run it once now so I can see tonight's
output today.
Next, it asks you three things.
Your Apify key. The folder it should work in. The business type and the city.
Get your Apify key for free, here.
You answer once.
Next, it builds the routines itself. It writes Routine 1, 2, 3, and 4, drops in your key and your target, and schedules them for the night.
You touch none of them.
Next, it runs once on the spot, so you see tonight’s output today.
Five businesses with no real website.
Five sites built from their own photos, ratings, hours, and real Google reviews.
Five drafts written and saved.
One report.
Then you sleep. The chain runs at 2, 3, 4, and 5 AM without you.
In the morning the work sits in the folder.
You open the report, skim the sites, read the drafts, and press send on the ones worth sending. Twenty minutes.
The skill did the night, the setup, and the wiring. You kept the judgment.
Note: Your computer needs to stay on during these hours for the routines to run.
If that’s not an option, simply schedule them for times when your computer is already awake.
Next steps
Install the skill. Pick one business type and one city. Run it tonight.
Tomorrow, change the city. Or the niche.
Restaurants in one town, barbers in the next, dentists after that.
Every run drops five more leads, five more sites, five more drafts into the folder.
You still read them. You still press send. That part stays yours.
The selling used to stop when you slept. Now it runs without you.
That is the night shift.