Optimize dead shelf products with Google Sheets, Google Gemini and Slack
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on a schedule (every day at 01:00) (plus 1 other trigger). Along the way it connects Google Sheets, Google Gemini Chat Model and Slack.
How it runs
Trigger: On a schedule (every day at 01:00) (plus 1 other trigger).
- Set Configuration Constants (Edit Fields (Set)): sets 17 fields: sheetid, as_of_date, t_stagnant_days…
- Read Catalog from Sheets (Google Sheets): uses Google Sheets
- Read Sales Rollup from Sheets (Google Sheets): uses Google Sheets
- Read Inventory from Sheets (Google Sheets): uses Google Sheets
- Read Planogram from Sheets (Google Sheets): uses Google Sheets
- Merge Input Sources (Code): runs custom JavaScript code
- Calculate Metrics (Edit Fields (Set)): sets 14 fields: days_to_expiry, days_unsold, velocity_ratio…
- Filter: keeps only the items that match a condition
- Set Rule Actions (Edit Fields (Set)): sets 2 fields: rule_action, spoilage_flag
- Sort: sorts the items
…plus 8 more steps. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Slack templates (309)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Edit Fields (Set)
n8n-nodes-base.set - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Sort
n8n-nodes-base.sort - Limit
n8n-nodes-base.limit - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Slack
n8n-nodes-base.slack
From the author
Quick overview Youtube Video: https://youtu.be/iDW5lD-AHxM This workflow runs daily to analyze planogrammed prime eye-level SKUs using Sheets catalog, sales, and inventory data, then uses Gemini to validate recommended actions and writes a store action queue…