Route fire sprinkler deficiencies with Gmail, OpenAI, Telegram and Sheets
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs on Gmail events. Along the way it connects Gmail, OpenAI Chat Model, Telegram and Google Sheets.
How it runs
Trigger: On Gmail events.
- Normalize Deficiency Email (Edit Fields (Set)): sets or maps fields
- Compute AHJ Deadline Candidates (Code): runs custom JavaScript code
- Classify Deficiency Severity (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
- Shape Critical Notice Record (Edit Fields (Set)): sets or maps fields
- Shape Standard Order Record (Edit Fields (Set)): sets or maps fields
- Shape Informational Record (Edit Fields (Set)): sets or maps fields
- Send Emergency Corrective Notice (Gmail): uses Gmail
- Repeat Violation (3rd+ in 12mo)? (If): checks a condition and branches into true / false
- Combine Branch Outcomes for Audit Log (Merge): merges the data from its input branches
- Escalate to Fire Marshal - Repeat Violation (Gmail): uses Gmail
…plus 2 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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.
Nodes used (10)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Merge
n8n-nodes-base.merge - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow monitors a Gmail inbox for fire sprinkler inspection deficiency emails, uses OpenAI to classify severity, routes critical items to urgent email notice and standard items to Telegram (with optional fire marshal escalation), and…