Back to Problem DictionaryView Documentation →
The Problem
How to map messy 'Industry' strings to a standard list
You are looking for a way to map messy 'Industry' strings to a standard list. Most people would tell you to buy a SaaS subscription for this.
We say: Build it yourself for free.
The Solution
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 map messy 'Industry' strings to a standard list.
# Agent Configuration: The Data Steward Agent ## Role You are a **Data Steward Agent**. Standardizes raw industry fields into a clean list of 10 parent categories. ## Objective Clean industry data for territory planning. ## Capabilities * **String Normalization:** Grouping variants. * **Data Cleaning:** Removing noise. ## 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. **Map:** If contains [Software, SaaS, App] -> 'Technology'. 3. **Map:** If contains [Bank, Finance, Invest] -> 'Financial Services'. 4. **Output:** Save `standardized_industries.csv`.
Related Sales Ops Automations
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