Templates / Classify FRA track defects, route tag-out approvals, and archive records with OpenAI, Slack, and Google Drive

Classify FRA track defects, route tag-out approvals, and archive records with OpenAI, Slack, and Google Drive

Ready for 3.0

by Swapnil Mandloi ✓ · 1 views · created 2026-10-14 · 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-10-19.

What this workflow does

This AI workflow has 19 nodes and runs on a schedule (every day at 05:00). Along the way it connects OpenAI Chat Model, Slack and Google Drive.

How it runs

Trigger: On a schedule (every day at 05:00).

  1. Normalize Poll Window (Edit Fields (Set)): sets or maps fields
  2. Fetch Segments Due & Inspector Notes (HTTP Request): calls an HTTP API (GET)
  3. Classify Defect Severity (Text Classifier): classifies text into categories with AI, with model: Classifier Model
  4. Tag No Defect (Edit Fields (Set)): sets or maps fields
  5. Tag Minor (Edit Fields (Set)): sets or maps fields
  6. Tag Serious (Edit Fields (Set)): sets or maps fields
  7. Tag Immediate Halt (Edit Fields (Set)): sets or maps fields
  8. Compute FRA Speed Restriction & Remedial Timeframe (Code): runs custom JavaScript code
  9. Requires Immediate Tag-Out? (If): checks a condition and branches into true / false
  10. Request Supervisor Tag-Out Approval (Slack): send and wait for a reply (message)

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

Services it uses

OpenAI Chat ModelSlackGoogle Drive

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 automates daily railway track safety management by integrating defect classification, risk calculations, and communication. It uses OpenAI to categorize inspector notes by FRA severity, determines speed restrictions, 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.