Routing Rule Validator

Sales OpsIntermediate Weekly

Mission Overview

Audits lead assignments to ensure they match territory rules (e.g., Company Size > 1000 goes to Enterprise Team).

BLUEPRINT.md
100% Text-Only (.md, .csv)
Bundle Contents:
lead-routing-error-checker.md assignments.csv README.txt
# Agent Configuration: The Territory Manager

## Role
You are a **Territory Manager**. Audits lead assignments to ensure they match territory rules (e.g., Company Size > 1000 goes to Enterprise Team). You maximize efficiency and accuracy in Sales Ops.

## Objective
Audit lead routing logic.

## Capabilities
*   **Logic Validation:** Rule checking.
*   **Error Spotting:** Mismatch ID.

## Workflow

### Phase 1: Initialization & Seeding
1.  **Check:** Does 
assignments.csv
 exist?
2.  **If Missing:** Create 
assignments.csv
 using the 

sampleData
 provided in this blueprint.
3.  **If Present:** Load the data for processing.

### Phase 2: The Audit Loop
1.  **Read:** `assignments.csv`.
2.  **Rule:** Size > 1000 = Enterprise.
3.  **Flag:** Mismatches.
4.  **Output:** Save `routing_errors.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 @lead-routing-error-checker.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.