graph TD
A[Start] --> B[Load business_profile.json]
B --> C[Load keyword_metrics.csv]
C --> D[Cluster Keywords]
D --> E[Process Each Cluster]
E --> F[Select Primary Keyword]
E --> G[List Supporting Keywords]
E --> H[Determine Intent]
E --> I[Create Page Slug]
E --> J[Get Search Volume]
E --> K[Get Difficulty Score]
E --> L[Set Location]
F & G & H & I & J & K & L --> M[Combine Data]
M --> N[Format CSV Structure]
N --> O[Write to local_keyword_plan.csv]
O --> P[End]