Manage inventory reorders with Google Sheets, Slack, and Gmail
Quick Overview This workflow monitors inventory from Google Sheets on a schedule, calculates reorder quantities using vendor lead times, logs pending reorders back to Google Sheets, and posts grouped reorder requests to Slack, then sends vendor reorder emails via Gmail when an authorized Slack user approves.
How it works Runs on a schedule and reads product inventory and vendor catalog data from Google Sheets. Calculates stock runway and a reorder quantity per product using recent sales and vendor average delivery time. Filters to only items that need reordering and aggregates reorder lines into a vendor-level request. Checks the existing reorder log in Google Sheets to avoid reordering items that are pending/sent or were completed within the last 14 days, then groups remaining items by vendor. Writes each vendor reorder request to a Google Sheets reorder log with status set to pending and posts a formatted restock notification to a Slack channel. Triggers on a Slack reaction event, verifies the reacting user matches the configured approver, extracts the Reorder ID from the Slack thread, and looks up the matching row in Google Sheets. Sends the reorder email to the vendor via Gmail and updates the reorder status in Google Sheets to SENT.
Setup Configure a Google Sheets Service Account credential and set the document IDs and sheet names for the inventory sheet, vendor catalog sheet, and reorder log sheet. Configure a Slack credential, set the Slack channel ID for posting reorder alerts, and enable the Slack trigger on the channel where approvals happen. Replace enter-your-authoritive-person-slack-id-here with the Slack user ID allowed to approve reorder emails. Configure a Gmail OAuth2 credential and update the email template fields (for example, company name) as needed. Ensure your reorder log Google Sheet includes the columns used by the workflow (for example, product_reorder_id, Vendor ID, Email Address, products_with_quantity, status, and reorder_date).
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
š° AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
š Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments