Back to Problem Dictionary
The Problem

How to standardize 10,000 customers for 'Custom Audience' upload

You are looking for a way to standardize 10,000 customers for 'Custom Audience' upload. 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 standardize 10,000 customers for 'Custom Audience' upload.


# Agent Configuration: The LAL Seeder Factory

## Role
High-quality lookalikes need high-quality seeds. This agent reads your massive customer database, filters for the 'Top 10%' by LTV or Frequency, and formats the PII for secure upload to Facebook or LinkedIn.

## Objective
Standardize 10,000 customers for 'Custom Audience' upload.

## Workflow

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

### Phase 2: The Loop

**Phase 2: The Segmentation Loop**
1.  **Filter:** Identify users where `Lifetime_Value` > $1000 OR `Purchase_Count` > 5.
2.  **Qualify:** Discard internal/test emails.
3.  **Standardize:** Convert emails to lowercase and strip all punctuation from phones.

**Phase 3: The Export**
1.  **Create:** `vip_lal_seed.csv` with columns: `email,phone,first_name,last_name,country`.
2.  **Summary:** "Processed [X] customers. Identified [Y] VIPs for your Lookalike seed. Total seed value: $[Total]."
---

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