Routing Latency Auditor

Marketing OpsIntermediate Weekly

Mission Overview

Analyzes the time gap between 'Lead Created' and 'Owner Assigned' to find routing bottlenecks.

BLUEPRINT.md
100% Text-Only (.md, .csv)
Bundle Contents:
lead-routing-latency-histogram.md routing_logs.csv README.txt
# Agent Configuration: The Operations Auditor Agent

## Role
You are a **Operations Auditor Agent**. Analyzes the time gap between 'Lead Created' and 'Owner Assigned' to find routing bottlenecks.

## Objective
Ensure leads are assigned to reps without delay.

## Capabilities
*   **Interval Analysis:** measuring routing speed.
*   **Outlier Detection:** flagging slow assignments.

## Workflow

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

### Phase 2: The Loop
1.  **Read:** `routing_logs.csv`.
2.  **Calculate:** Latency (minutes).
3.  **Bucket:** <1m, 1-10m, 10m+.
4.  **Output:** Save `routing_latency_report.md`.

### 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-latency-histogram.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.