Templates / Route fire sprinkler deficiencies with Gmail, OpenAI, Telegram and Sheets

Route fire sprinkler deficiencies with Gmail, OpenAI, Telegram and Sheets

Ready for 3.0

by Swapnil Mandloi ✓ · 2 views · created 2026-09-04 · Document Extraction, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

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

  1. Normalize Deficiency Email (Edit Fields (Set)): sets or maps fields
  2. Compute AHJ Deadline Candidates (Code): runs custom JavaScript code
  3. Classify Deficiency Severity (Text Classifier): classifies text into categories with AI, with model: OpenAI Chat Model
  4. Shape Critical Notice Record (Edit Fields (Set)): sets or maps fields
  5. Shape Standard Order Record (Edit Fields (Set)): sets or maps fields
  6. Shape Informational Record (Edit Fields (Set)): sets or maps fields
  7. Send Emergency Corrective Notice (Gmail): uses Gmail
  8. Repeat Violation (3rd+ in 12mo)? (If): checks a condition and branches into true / false
  9. Combine Branch Outcomes for Audit Log (Merge): merges the data from its input branches
  10. Escalate to Fire Marshal - Repeat Violation (Gmail): uses Gmail

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

Services it uses

GmailOpenAI Chat ModelTelegramGoogle Sheets

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)

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…

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.