Automation library · Content

Triage cleanroom particle excursions with Gmail and OpenAI

Started by an arriving email, and works across Gmail, Telegram and n8n data table. It hands the judgement calls to OpenAI. 22 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

22 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 3Logic 13Service 5

The steps in the order they run, from what starts it.

  1. 1Watch Particle Counter Alert InboxGmail triggerStarts it
  2. 2Severity Classification ModelLm Chat Open AiModel
  3. 3Severity SchemaOutput Parser StructuredModel
  4. 4Parse Particle Count Alert EmailCodeLogic
  5. 5Classify Excursion SeverityChain LlmModel
  6. 6Normalize Excursion RecordSetLogic
  7. 7Route By Cleanroom Zone CriticalitySwitchLogic
  8. 8Tag Protocol Tier Support AreaSetLogic
  9. 9Tag Protocol Tier Process BaySetLogic
  10. 10Tag Protocol Tier Litho EUV BaySetLogic
  11. 11Combine Zone Tagged RecordsMergeLogic
  12. 12Route By Excursion SeveritySwitchLogic
  13. 13Log Minor ExcursionData TableService
  14. 14Prepare Sub-Workflow PayloadSetLogic
  15. 15Run Contamination Investigation Sub-WorkflowExecute WorkflowLogic
  16. 16Merge Investigation OutcomeCodeLogic
  17. 17Check Tool Shutdown RequiredIfLogic
  18. 18Trigger Tool Interlock APIHttp RequestService
  19. 19Notify EHS Excursion ResolvedTelegramService
  20. 20Alert Facilities Tool Shutdown RequiredTelegramService
  21. 21Combine Resolution OutcomesMergeLogic
  22. 22Log Excursion ResolutionData TableService

How it's built

Starts on
An arriving email
Steps
22, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Telegram, n8n data table
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail and Telegram accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.