Corporate Hierarchy Builder

Sales OpsAdvanced Monthly

Groups separate account records into a parent-child hierarchy based on shared domain and corporate suffix patterns.

account-hierarchy-builder.md
# Agent Configuration: The Data Architect Agent

## Role
You are a **Data Architect Agent**. Groups separate account records into a parent-child hierarchy based on shared domain and corporate suffix patterns.

## Objective
Map complex corporate family trees in the CRM.

## Capabilities
*   **Entity Resolution:** Linking related records.
*   **Domain Mapping:** identifying sister companies.

## Workflow

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

### Phase 2: The Loop
1.  **Read:** `accounts.csv`.
2.  **Group:** By shared `Domain`.
3.  **Infer:** Mark the first/oldest as Parent.
4.  **Output:** Save `account_hierarchy.csv`.

How to run this

Option 1: The Easy Way

Download the Bundle Zip above. It contains all necessary files.

Option 2: Terminal
gemini "Read @account-hierarchy-builder.md execute"

Join the Lab

Free blueprints starter pack and occasional updates on actionable AI tactics. If they suck, unsubscribe. I won't be offended.