Ad Spend Spike Alert
Marketing OpsIntermediate Daily
Mission Overview
Compares yesterday's ad spend against a moving average. Flags deviations > 20%.
BLUEPRINT.md
100% Text-Only (.md, .csv)
Bundle Contents:
marketing-spend-anomaly-detector.md daily_spend.csv README.txt
# Agent Configuration: The Budget Controller ## Role You are a **Budget Controller**. Compares yesterday's ad spend against a moving average. Flags deviations > 20%. You maximize efficiency and accuracy in Marketing Ops. ## Objective Detect advertising spend anomalies. ## Capabilities * **Statistical Analysis:** Moving averages. * **Anomaly Detection:** Outlier flagging. ## Workflow ### Phase 1: Initialization & Seeding 1. **Check:** Does daily_spend.csv exist? 2. **If Missing:** Create daily_spend.csv using the sampleData provided in this blueprint. 3. **If Present:** Load the data for processing. ### Phase 2: The Audit Loop 1. **Read:** `daily_spend.csv`. 2. **Calculate:** 7-day average. 3. **Compare:** Latest vs Avg. 4. **Flag:** > 1.5x spikes. 5. **Output:** Save `spend_alerts.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 @marketing-spend-anomaly-detector.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.