An automated weekly inventory auditing system built with n8n, Google Gemini, and Google Sheets. This workflow checks stock levels, identifies items below their threshold, generates an AI‑crafted alert message, and emails a consolidated low‑stock report. It removes manual review, reduces errors, and ensures timely restocking decisions.
- Automated weekly inventory checks (every Monday at 9 AM)
- Google Sheets integration for real‑time inventory data
- AI‑generated low‑stock alert message using Google Gemini
- Consolidated reporting for all low‑stock items
- Gmail integration for automated email delivery
- Clean, modular workflow built entirely in n8n
The system consists of:
- Schedule Trigger – Runs weekly at a set time
- Get Rows from Google Sheets – Retrieves inventory data
- Filter – Keeps only items where stock < threshold
- Aggregate – Combines all low‑stock items
- AI Agent – Generates a structured alert message
- Google Gemini Chat Model – LLM processing
- Simple Memory – Short‑term context
- Gmail Node – Sends the final alert email
Full documentation is available in:
docs/workflow-overview.md
inventory-check-automation/
docs/
workflow-overview.md
workflows/
inventory-check-automation.json
assets/
inventory-demo.mp4
inventory-check-automation.png
low_stock_alerts.png
.gitignore
README.md
- n8n
- Google Gemini API key
- Google Sheets OAuth2 credentials
- Gmail OAuth2 credentials
- A Google Sheet containing:
- Item
- Stock
- Threshold
- Supplier
- Import the workflow JSON into n8n
- Reconnect your Google Sheets credentials
- Reconnect your Gemini API key
- Reconnect your Gmail OAuth2 credentials
- Update the spreadsheet ID and sheet name if needed
- Activate the workflow
⚠️ Low Stock Alert:
- Tomato Sauce: 2 left (need 5). Recommend reordering from FreshFoods Co.
- Napkins: Out of stock (need 20). Recommend reordering from SupplyHub.
MIT License