LearnAIWithMe

LearnAIWithMe

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.

Gencay's avatar
Gencay
Jun 08, 2026
∙ Paid

“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;

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2026 Gencay I · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture