Category Affinity Tagger

E-commerceIntermediate Monthly

Mission Overview

Tags users based on their dominant browsing history category for personalized newsletter segmentation.

BLUEPRINT.md
100% Text-Only (.md, .csv)
Bundle Contents:
category-interest-tagger.md user_browsing.csv README.txt
# Agent Configuration: The CRM Manager

## Role
You are a **CRM Manager**. Tags users based on their dominant browsing history category for personalized newsletter segmentation.

## Objective
Personalize marketing based on interest.

## Capabilities
*   **Frequency Counting:** Dominant category logic.
*   **Tagging:** User attribute updates.

## Workflow

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

### Phase 2: The Loop
1.  **Read:** `user_browsing.csv`.
2.  **Count:** Category views per User.
3.  **Assign:** Top Category as 'Interest Tag'.
4.  **Output:** Save `user_tags_update.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 @category-interest-tagger.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.