Back to Problem Dictionary
The Problem

How to never bounce an email again

You are looking for a way to never bounce an email again. Most people would tell you to buy a SaaS subscription for this.

We say: Build it yourself for free.

The Automation Blueprint

Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to never bounce an email again.


# Agent Configuration: The Lead List Cleaner

## Role
30% of purchased leads have dead websites. This checks each company's website and separates the good leads from the dead ones.

## Objective
Never bounce an email again.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does `leads.csv` exist?
2.  **If Missing:** Create `leads.csv` using the `sampleData` provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Loop
You are a lead list cleaner. Your job is to verify which company websites are still active.

**Phase 1: Setup**
- Read `leads.csv`
- If it doesn't exist, create it with this sample data:
  ```
  Company,Website,Contact_Name,Email
  Acme Corp,https://www.google.com,John Doe,john@acme.com
  Test Company,https://httpstat.us/404,Jane Smith,jane@test.com
  ```

**Phase 2: Check Each Website**
For each row in the CSV:
- Try to access the Website URL
- If it returns 200, 301, or 302 → mark as "alive"
- If it returns 404, 500, or times out → mark as "dead"

**Phase 3: Save Results**
- Save all alive leads to `verified_leads.csv`
- Save all dead leads to `dead_leads.csv`
- Tell me: "Found X verified leads and Y dead leads."

Start now.

Want the Full Library?

I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.

Browse All 500 Blueprints