# Triage cleanroom particle excursions with Gmail and OpenAI: n8n workflow

> Started by an arriving email, and works across Gmail, Telegram and n8n data table. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/triage-cleanroom-particle-excursions-with-gmail-and-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

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

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftriage-cleanroom-particle-excursions-with-gmail-and-openai)

**22 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 3 Logic 13 Service 5

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

- 1 **Watch Particle Counter Alert Inbox** Gmail trigger *Starts it*
- 2 **Severity Classification Model** Lm Chat Open Ai *Model*
- 3 **Severity Schema** Output Parser Structured *Model*
- 4 **Parse Particle Count Alert Email** Code *Logic*
- 5 **Classify Excursion Severity** Chain Llm *Model*
- 6 **Normalize Excursion Record** Set *Logic*
- 7 **Route By Cleanroom Zone Criticality** Switch *Logic*
- 8 **Tag Protocol Tier Support Area** Set *Logic*
- 9 **Tag Protocol Tier Process Bay** Set *Logic*
- 10 **Tag Protocol Tier Litho EUV Bay** Set *Logic*
- 11 **Combine Zone Tagged Records** Merge *Logic*
- 12 **Route By Excursion Severity** Switch *Logic*
- 13 **Log Minor Excursion** Data Table *Service*
- 14 **Prepare Sub-Workflow Payload** Set *Logic*
- 15 **Run Contamination Investigation Sub-Workflow** Execute Workflow *Logic*
- 16 **Merge Investigation Outcome** Code *Logic*
- 17 **Check Tool Shutdown Required** If *Logic*
- 18 **Trigger Tool Interlock API** Http Request *Service*
- 19 **Notify EHS Excursion Resolved** Telegram *Service*
- 20 **Alert Facilities Tool Shutdown Required** Telegram *Service*
- 21 **Combine Resolution Outcomes** Merge *Logic*
- 22 **Log Excursion Resolution** Data Table *Service*

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

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Ftriage-cleanroom-particle-excursions-with-gmail-and-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**Analyze YouTube comments and generate video ideas with Gemini** 22 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/analyze-youtube-comments-and-generate-video-ideas-with-gemin)
- [**Auto-Generate & Approve Social Media Posts from RSS Feeds** 22 steps · calls a model · LinkedIn, NocoDB](https://millionrounds.com/workflow/auto-generate-and-approve-social-media-posts-from-rss-feeds)
- [**Automated AI product photography** 22 steps · calls a model · Telegram](https://millionrounds.com/workflow/automated-ai-product-photography)
- [**Chat with OpenAI and Telegram** 22 steps · calls a model · Telegram, in-memory vectors](https://millionrounds.com/workflow/chat-with-openai-and-telegram-2)
- [**Detect viral YouTube videos with OpenAI and Gmail** 22 steps · calls a model · Gmail](https://millionrounds.com/workflow/detect-viral-youtube-videos-with-openai-and-gmail)
- [**English lesson generator from podcasts with RSS and OpenAI** 22 steps · calls a model · Gmail, RSS](https://millionrounds.com/workflow/english-lesson-generator-from-podcasts-with-rss-and-openai)
