Corporate Hierarchy Builder

Sales OpsAdvanced Monthly

Mission Overview

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

BLUEPRINT.md
100% Text-Only (.md, .csv)
Bundle Contents:
account-hierarchy-builder.md accounts.csv README.txt
# 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`.

### Phase 3: Output
1.  **Generate:** Create the final output artifact as specified.
2.  **Summary:** detailed report of findings and actions taken.
!

How to Run This

1Get the files

Download the Bundle ZIP above. It contains the blueprint and any required files.

2Run in Terminal

Universal: These blueprints work with any agentic CLI.

Gemini CLI
gemini "Read @account-hierarchy-builder.md and use the sample file to execute the workflow"
?

Why use blueprints?

Blueprints act as a "Mission File". Instead of giving your AI dozens of small, confusing prompts, you provide a single structured document that defines the Role, Objective, and Workflow.