Track production OEE and corrective actions with Sheets, Gmail, Telegram, and GPT-4o
Ready for 3.0What this workflow does
This AI workflow has 44 nodes and runs when an HTTP POST request hits its webhook URL (plus 4 other triggers). Along the way it connects Gmail, OpenAI Chat Model, Google Sheets and Telegram.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 4 other triggers).
- Normalize Shift Entry (Edit Fields (Set)): sets 12 fields: report_date, line_name, shift_label…
- Read Yesterday Shifts (Google Sheets): read
- Read Week Shifts (Google Sheets): read
- Read Open Actions (Google Sheets): read
- Action Id Present? (If): checks a condition and branches into true / false
- Validate Entry (If): checks a condition and branches into true / false
- Summarize Yesterday (Code): runs custom JavaScript code
- Summarize Week (Code): runs custom JavaScript code
- Find Overdue Actions (Code): runs custom JavaScript code
- Close Corrective Action (Google Sheets): update
…plus 26 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (11)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Telegram
n8n-nodes-base.telegram - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
OEE numbers are only useful if someone acts on them. This workflow takes each shift's production numbers from a webhook, calculates availability, performance, quality and OEE, has GPT-6.1-sol explain what dragged it down, and turns bad shifts into tracked…