Email Automation
Triage cleanroom particle excursions using Gmail, OpenAI, and Telegram
When a new email arrives, it handles email with OpenAI / ChatGPT using Data Table, Gmail, Telegram.
What it does
## 📘 WORKFLOW DETAILS Cleanroom Contamination Excursion Orchestrator turns a raw particle-counter excursion alert into a zone-aware, severity-routed investigation - delegating the deep root-cause work to a dedicated sub-workflow. Value prop: ISO 14644-1 cleanrooms generate particle-count excursion alerts constantly; deciding which ones need a full CAPA investigation vs a simple log entry, and which need an immediate tool interlock, is a judgment call that currently falls on a shift engineer reading raw counter output. This orchestrator classifies severity, routes by cleanroom zone criticality, and hands anything non-trivial to a reusable Contamination Investigation sub-workflow (with its own error workflow configured) - keeping the parent simple and the investigation logic independently maintainable. Who it's for: Semiconductor fabs, cleanroom-dependent medical device manufacturers, and contamination-control/EHS teams running ISO 14644-1 programs. Execution walkthrough: 1. Gmail Trigger polls the facilities inbox for particle-counter excursion alert emails. 2. Code regex-parses the alert body into zone/tool/particle-count fields and an exceedance ratio. 3. Set normalises the record. 4. Basic LLM Chain (AI) classifies severity as Minor/Major/Critical with a shutdown recommendation. 5. Switch #1 (Double-Switch, part 1) routes by cleanroom zone criticality tier. 6. Each zone branch is tagged with a protocol tier and Merge reconverges them. 7. Switch #2 (Double-Switch, part 2) separates Minor (log only) from Major/Critical (needs investigation). 8. Minor excursions are logged straight to the n8n Data Table. 9. Major/Critical excursions are packaged and handed to the Execute Sub-workflow node, which calls the companion 'Contamination Investigation Sub-Workflow' (delivered as a separate JSON file). 10. Code reconciles the sub-workflow's CAPA response into a shutdown decision. 11. If routes to a tool-interlock API call + Telegram alert (shutdown) or a simple Telegram resolution notice. 12. Merge and a final Data Table write close out the audit trail. Expected input: an excursion-alert email in the watched inbox with Zone/Tool/Measured Count/ISO Class Limit/Particle Size lines. Expected output: one Data Table row per excursion (Minor: logged only; Major/Critical: logged with CAPA ID and shutdown outcome) plus Telegram/HTTP actions as needed. IMPORTANT - companion fi
The steps
- Watch Particle Counter Alert Inbox
- Parse Particle Count Alert Email
- Normalize Excursion Record
- Severity Classification Model
- Severity Schema
- Classify Excursion Severity
- Route By Cleanroom Zone Criticality
- Tag Protocol Tier Support Area
- Tag Protocol Tier Process Bay
- Tag Protocol Tier Litho EUV Bay
- Combine Zone Tagged Records
- Route By Excursion Severity
- Log Minor Excursion
- Prepare Sub-Workflow Payload
22 steps in total.
Similar automations
Email AutomationTriage Gmail with Gemini, label emails, log invoices to Sheets, and send Telegram alerts22 stepsEmail AutomationTriage blood donor deferrals and component release with Gmail, OpenAI, and Telegram20 stepsEmail AutomationRoute and triage workflow errors with Gmail, Gemini and n8n API160 stepsEmail AutomationMonitor app errors and heartbeats with OpenAI triage and Gmail alerts42 steps