Library / E-commerce & Payments
E-commerce & Payments
Flag dead shelf SKUs with Google Gemini and send actions via Slack and Sheets
Runs daily to join catalog, sales and inventory sheets, scores stagnant SKUs, gets Gemini merchandising recommendations, and posts a Slack digest.
What it does
## Dead Shelf Detector - Prime Shelf Optimizer ### How it works This workflow runs on a daily schedule or manually to detect stagnant, high-risk shelf inventory and recommend merchandising actions. It reads catalog, sales, inventory, and planogram data from Google Sheets, joins the sources, computes risk metrics, filters and ranks problem SKUs, then sends the top candidates to an AI merchandiser for structured recommendations. The workflow writes action tickets back to Google Sheets, sends a Slack digest to stores, and records a run log for auditing. ### Setup steps - Configure Google Sheets credentials and confirm the sheet ID plus required tabs for catalog, sales rollup, inventory, planogram, action queue, and run log. - Configure Google Gemini credentials for the Tier 2 AI Merchandiser chain and verify the structured output parser matches the expected recommendation fields. - Configure Slack credentials and set the target channel or recipients for the store digest. - Review the Config & Constants node values, especially sheetid, as_of_date, t_stagnant_days, and max_units_30d. - Enable or adjust the Schedule 01:00 trigger after testing the workflow with the Manual Test Run trigger. ### Customization Adjust the stagnant-day and unit thresholds, Tier 1 filter logic, capital-at-risk ranking, AI batch limit, guardrail rules, ticket fields, and Slack digest format to match store operations and merchandising policy. @youtube
The steps
- Set Configuration Constants
- When Timing is 01:00 AM
- When Manually Triggered
- Read Catalog from Sheets
- Read Sales Rollup from Sheets
- Read Inventory from Sheets
- Read Planogram from Sheets
- Merge Input Sources
- Calculate Metrics
- Filter by Tier 1 Conditions
- Set Rule Actions
- Sort by Capital at Risk
- Limit AI Batch Size
- AI Merchandising Agent
22 steps in total.
Similar automations
AI Agents & AssistantsRetry webhook deliveries with exponential backoff and a dead-letter queue webhook9 stepsMonitoring, Ops & IncidentsTriage pharmacy expiry actions with Sheets, Slack, Gmail and Gemini22 stepsMonitoring, Ops & IncidentsFlag risky B2B orders from Google Sheets with Gemini and alert Sales on Slack19 stepsMonitoring, Ops & IncidentsFlag B2B churn-risk orders from Google Sheets with Gemini and Slack alerts22 steps