graph TD
A[User Input: Companies List] --> B[Subagent 1: Seed-List Normaliser]
B --> |companies.csv| C[Subagent 2: Company Snapshot Creator]
C --> C1[Web Crawl: Homepage/About/Contact]
C --> C2[Registry/DUNS Lookup]
C1 --> C3[Merge & Create Snapshots]
C2 --> C3
C3 --> |company_snapshots_all.csv| D[Subagent 3: Contact Enricher]
D --> D1[Web Search: Direct Contacts]
D --> D2[Build Enriched Profiles]
D1 --> D3[Create Unified Table]
D2 --> D3
D3 --> |people_enriched.csv| E[Subagent 4: Sheet Assembler]
E --> E1[Prepare CSV with Headers]
E --> E2[Google Sheets API Upload]
E1 --> E3[Final Google Sheet]
E2 --> E3
subgraph Output
E3
end