🔬 Monitor warehouse receiving performance with Google Sheets, Gemini, and Gmail

⚡ 28 views · 🔬 Document Extraction & Analysis

Description

Quick overview

This workflow runs hourly to analyze warehouse receiving logs from Google Sheets, calculates per-user performance and compliance metrics, enriches results with department data, uses Google Gemini to generate recommendations for flagged users, emails managers via Gmail when escalation is needed, and appends results to an analytics dashboard sheet.

How it works

  1. Runs every hour on a schedule trigger.
  2. Reads receiving log rows from Google Sheets and normalizes key fields like duration, errors, and compliance.
  3. Aggregates the log data by user_id and computes performance status, severity score, and alert tier based on time, errors, and compliance rate.
  4. Looks up each user’s department and manager email in a Google Sheets “Departments” tab and attaches this context to the analysis.
  5. For users not rated “good,” sends the metrics to Google Gemini to generate structured root-cause and action-step recommendations.
  6. If the alert tier is not “none,” sends an info/warning or critical escalation email via Gmail (using manager_email when available).
  7. Appends the final per-user analysis (metrics, issues, recommendations, and whether an email was sent) to a Google Sheets “AnalyticsDashboard” tab.

Setup

  1. Connect Google Sheets OAuth2 credentials and set the spreadsheet and tab IDs for ReceivingLogs, Departments, and AnalyticsDashboard.
  2. Ensure ReceivingLogs includes user_id, duration, errors, and compliance columns, and ensure user_id matches the Departments sheet.
  3. Populate the Departments sheet with user_id, department, and manager_email values for routing alerts.
  4. Add Google Gemini (PaLM) API credentials for the recommendation step.
  5. Add Gmail OAuth2 credentials and confirm the recipient behavior (manager_email fallback address) and email content meet your escalation requirements.

Requirements

Customization

Additional info

Who’s It For

Add-Ons & Enhancements

Use Case Examples

  1. Monitor warehouse staff performance in real-time
  2. Detect compliance violations in procurement processes
  3. Identify employees with frequent operational errors
  4. Automate manager notifications for performance issues
  5. Build a performance analytics dashboard for leadership

There can be many more use cases depending on your business workflow and data structure.

Troubleshooting Guide

IssuePossible CauseSolution
No data fetchedIncorrect Google Sheets connectionVerify credentials and sheet ID
Incorrect calculationsData format mismatchEnsure numeric fields are properly formatted
AI not generating outputGemini API issueCheck API key and quota
Emails not sentGmail credentials missingReconnect Gmail OAuth
Missing department infouser_id mismatchEnsure consistent IDs across sheets
Workflow not triggeringSchedule misconfiguredVerify trigger interval

Need Help?

If you need assistance setting up this workflow, customizing it for your business or adding advanced features, feel free to reach out.

WeblineIndia can help you:

Get in touch to turn your business processes into efficient, automated systems.

đź”— Nodes Used

Google Sheets, Gmail, Schedule Trigger, Google Gemini

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup