Templates / Triage cleanroom particle excursions using Gmail, OpenAI, and Telegram

Triage cleanroom particle excursions using Gmail, OpenAI, and Telegram

Ready for 3.0

by Swapnil Mandloi ✓ · 1 views · created 2026-09-20 · Engineering, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Parse Particle Count Alert Email (Code): runs custom JavaScript code
  2. Normalize Excursion Record (Edit Fields (Set)): sets 4 fields: zone_id, tool_id, exceedance_ratio…
  3. Classify Excursion Severity (Basic LLM Chain): sends a prompt to an LLM, with model: Severity Classification Model
  4. Route By Cleanroom Zone Criticality (Switch): routes items into 3 branches
  5. Tag Protocol Tier Support Area (Edit Fields (Set)): sets 1 field: protocol_tier
  6. Tag Protocol Tier Process Bay (Edit Fields (Set)): sets 1 field: protocol_tier
  7. Tag Protocol Tier Litho EUV Bay (Edit Fields (Set)): sets 1 field: protocol_tier
  8. Combine Zone Tagged Records (Merge): merges the data from its input branches
  9. Route By Excursion Severity (Switch): routes items into 2 branches
  10. Log Minor Excursion (Data table): uses Data table

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

Services it uses

GmailOpenAI Chat ModelTelegram

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)

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…

Excerpt from Swapnil Mandloi'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.