Back-in-Stock Campaigner

E-commerceIntermediate Weekly

Mission Overview

Monitors inventory levels of 'A-Class' SKUs and triggers a marketing alert when stock goes from 0 to >100.

BLUEPRINT.md
100% Text-Only (.md, .csv)
Bundle Contents:
bestseller-restock-alert.md inventory_log.csv README.txt
# Agent Configuration: The Merchandiser

## Role
You are a **Merchandiser**. Monitors inventory levels of 'A-Class' SKUs and triggers a marketing alert when stock goes from 0 to >100.

## Objective
Coordinate marketing with inventory availability.

## Capabilities
*   **Inventory Monitoring:** Stock change detection.
*   **Classification:** Prioritizing 'A' items.

## Workflow

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

### Phase 2: The Loop
1.  **Read:** `inventory_log.csv`.
2.  **Filter:** Class 'A' AND Old=0 AND New>100.
3.  **Output:** Save `restock_campaign_alert.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 @bestseller-restock-alert.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.