{"product_id":"fra-track-defect-classification-slack-tag-out-approvals","title":"FRA Track Defect Classification \u0026 Slack Tag-Out Approvals","description":"\u003ch3\u003eAutomate FRA track defect classification and trigger Slack tag-out approvals—daily\u003c\/h3\u003e\n\u003cp\u003eFRA Track Defect Classification \u0026amp; Slack Tag-Out Approvals is an n8n workflow that runs every morning to classify railway track inspection notes using OpenAI, calculate risk-based speed restrictions, and request supervisor approval in \u003cstrong\u003eSlack\u003c\/strong\u003e for \u003cstrong\u003eClass 5 Immediate Halt\u003c\/strong\u003e tag-outs—then archive results to \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSchedules daily at 05:00\u003c\/strong\u003e and processes inspections for the current date.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eFetches inspection segments\u003c\/strong\u003e due for review from the track-inspection system API and handles \u003cem\u003eeach segment as a separate item\u003c\/em\u003e.\u003c\/li\u003e\n  \u003cli\u003eUses \u003cstrong\u003eOpenAI\u003c\/strong\u003e to categorize each segment’s inspector defect notes into one of four FRA severity categories:\n    \u003cul\u003e\n      \u003cli\u003eNo Defect\u003c\/li\u003e\n      \u003cli\u003eClass 1–2 Minor\u003c\/li\u003e\n      \u003cli\u003eClass 3–4 Serious\u003c\/li\u003e\n      \u003cli\u003eClass 5 Immediate Halt\u003c\/li\u003e\n    \u003c\/ul\u003e\n  \u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eComputes outcomes\u003c\/strong\u003e for each segment, including normal maximum speed, any required speed restriction, a remedial timeframe, and a recommended action based on track class and defect category.\u003c\/li\u003e\n  \u003cli\u003eIf a segment is \u003cstrong\u003eClass 5 Immediate Halt\u003c\/strong\u003e, it sends a \u003cstrong\u003eSlack approval request\u003c\/strong\u003e allowing a supervisor to approve, approve with edits, or reject the tag-out. For all other categories, the record is marked as \u003cstrong\u003enot requiring approval\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eArchives and communicates results\u003c\/strong\u003e: uploads a JSON record per segment to \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e and posts the final category, action, and speed restriction to a Slack channel.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eRail operators who need consistent daily \u003cstrong\u003eFRA severity\u003c\/strong\u003e categorization from inspector notes.\u003c\/li\u003e\n  \u003cli\u003eTeams that require rapid \u003cstrong\u003eSlack-based tag-out approvals\u003c\/strong\u003e specifically for \u003cstrong\u003eImmediate Halt\u003c\/strong\u003e defects.\u003c\/li\u003e\n  \u003cli\u003eAutomation engineers deploying an end-to-end workflow: classification → risk outputs → approval routing → archival reporting.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eUses n8n nodes including \u003cstrong\u003eif\u003c\/strong\u003e, \u003cstrong\u003eset\u003c\/strong\u003e, \u003cstrong\u003ecode\u003c\/strong\u003e, \u003cstrong\u003eslack\u003c\/strong\u003e, \u003cstrong\u003eswitch\u003c\/strong\u003e, and \u003cstrong\u003esticky note\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eIntegrations\/credentials required: track-inspection system API (HTTP Header Auth), \u003cstrong\u003eOpenAI\u003c\/strong\u003e, \u003cstrong\u003eSlack\u003c\/strong\u003e, and \u003cstrong\u003eGoogle Drive\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003eReplace the track-inspection API URL in the HTTP request node and configure credentials for all connected services.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46223934062771,"sku":"N8N-20921","price":7.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/zF8pmK5H3KkRKkQ-lDafP_JL6sOnEX.png?v=1791969028","url":"https:\/\/buyflowscripts.com\/products\/fra-track-defect-classification-slack-tag-out-approvals","provider":"N8N Commerce","version":"1.0","type":"link"}