Back to Problem DictionaryView Documentation →
The Problem
How to launch ads when bestsellers return
You are looking for a way to launch ads when bestsellers return. Most people would tell you to buy a SaaS subscription for this.
We say: Build it yourself for free.
The Solution
The Automation Blueprint
Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to launch ads when bestsellers return.
# 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`.
Related E-commerce Automations
Want the Full Library?
I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.
Browse All 500 Blueprints