Triage cleanroom particle excursions using Gmail, OpenAI, and Telegram
Ready for 3.0What this workflow does
This AI workflow has 22 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model and Telegram. It also calls replace-tool-interlock-controller.example.internal over HTTP.
How it runs
Trigger: On Gmail events.
- Parse Particle Count Alert Email (Code): runs custom JavaScript code
- Normalize Excursion Record (Edit Fields (Set)): sets 4 fields: zone_id, tool_id, exceedance_ratio…
- Classify Excursion Severity (Basic LLM Chain): sends a prompt to an LLM, with model: Severity Classification Model
- Route By Cleanroom Zone Criticality (Switch): routes items into 3 branches
- Tag Protocol Tier Support Area (Edit Fields (Set)): sets 1 field: protocol_tier
- Tag Protocol Tier Process Bay (Edit Fields (Set)): sets 1 field: protocol_tier
- Tag Protocol Tier Litho EUV Bay (Edit Fields (Set)): sets 1 field: protocol_tier
- Combine Zone Tagged Records (Merge): merges the data from its input branches
- Route By Excursion Severity (Switch): routes items into 2 branches
- Log Minor Excursion (Data table): uses Data table
…plus 10 more steps. See the full node list below.
Services it uses
HTTP calls to: replace-tool-interlock-controller.example.internal
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.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Watch Particle Counter Alert Inbox).
Nodes used (13)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Switch
n8n-nodes-base.switch - Merge
n8n-nodes-base.merge - Data table
n8n-nodes-base.dataTable - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow monitors a Gmail inbox for cleanroom particle-counter excursion alerts, parses the email into structured measurements, uses OpenAI to classify severity, routes by zone criticality, and either logs minor events or runs an…