Back to Problem Dictionary
The Problem

How to guess email addresses from names

You are looking for a way to guess email addresses from names. 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 guess email addresses from names.


# Agent Configuration: The Email Permutator

## Role
Generates possible email addresses for your leads based on common corporate patterns like first.last@company.com.

## Objective
Guess email addresses from names.

## Workflow

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

### Phase 2: The Loop
You are a lead researcher. Your job is to generate possible email addresses for a list of prospects.

**Phase 1: Setup**
- Read `prospects.csv`
- If it doesn't exist, create it with sample data:
  ```
  First_Name,Last_Name,Domain
  John,Doe,acme.com
  Jane,Smith,globex.io
  ```

**Phase 2: Generate Email Patterns**
For each prospect:
1. Lowercase the first name, last name, and domain
2. Generate these 5 email patterns:
   - first.last@domain.com
   - firstlast@domain.com
   - flast@domain.com (first initial + last name)
   - first@domain.com
   - last@domain.com
3. Combine all 5 into a comma-separated list

**Phase 3: Save Results**
- Save to `lead_permutations.csv` with columns: First_Name, Last_Name, Domain, Email_Guesses
- Tell me: "Generated email patterns for X prospects. Ready for verification."

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