Templates / Analyze machine downtime and OEE with Google Sheets, OpenAI and WhatsApp

Analyze machine downtime and OEE with Google Sheets, OpenAI and WhatsApp

Needs changes

by Rahul Joshi ✓ · 48 views · created 2026-10-07 · Engineering, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 30 nodes and runs when someone submits an n8n form (“Shift Production & Downtime Log”) (plus 2 other triggers). Along the way it connects Google Sheets, WhatsApp Business Cloud and OpenAI Chat Model.

How it runs

Trigger: When someone submits an n8n form (“Shift Production & Downtime Log”) (plus 2 other triggers).

  1. Normalize & Validate Entries (Code): runs custom JavaScript code
  2. Identify Completed Shift (Code): runs custom JavaScript code
  3. Upsert Shift Log Sheet (Google Sheets): append or update
  4. Read Machine Master (Google Sheets): uses Google Sheets
  5. Read Shift Log (Google Sheets): uses Google Sheets
  6. Calculate OEE & Six Big Losses (Code): runs custom JavaScript code
  7. Shift Data Found? (If): checks a condition and branches into true / false
  8. AI Root-Cause Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 2 tools (OEE History, Maintenance Tickets); output parser: Parse Structured RCA
  9. Alert Plant Head: Missing Shift Log (WhatsApp Business Cloud): send
  10. Compose Report & Pareto Chart (Code): runs custom JavaScript code

…plus 13 more steps. See the full node list below.

Services it uses

Google SheetsWhatsApp Business CloudOpenAI Chat Model

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Root-Cause Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Root-Cause Agent (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (12)

From the author

Quick overview This workflow captures per-shift machine production and downtime data via an n8n Form or an authenticated webhook, calculates OEE and TPM Six Big Losses from Google Sheets data, uses OpenAI for structured root-cause analysis, then sends a…

Excerpt from Rahul Joshi's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.