I Built a Claude Agent That Works the Night Shift While I Sleep
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.
“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?

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

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.

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.
Routine 2: How the Agent Builds the Sites
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.

Routine 3: How the Agent Writes the Pitch

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.

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

I wake up, open the drafts, check each site, and see the report.

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

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;



