Templates / Triage backflow compliance notices with Google Sheets, Gmail, Slack, OpenAI, and a state API

Triage backflow compliance notices with Google Sheets, Gmail, Slack, OpenAI, and a state API

Ready for 3.0

by Swapnil Mandloi ✓ · 1 views · created 2026-09-20 · 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 17 nodes and runs on a schedule (cron 0 6 * * *). Along the way it connects Google Sheets, Slack, OpenAI Chat Model and Gmail. It also calls replace-state-ereporting-portal.example.gov over HTTP.

How it runs

Trigger: On a schedule (cron 0 6 * * *).

  1. Fetch Backflow Device Registry (Google Sheets): uses Google Sheets
  2. Split Out: splits a list into separate items
  3. Compute Days Since Last Test (Code): runs custom JavaScript code
  4. Normalize Device Record (Edit Fields (Set)): sets 6 fields: device_id, address, hazard_level…
  5. Check Device Data Completeness (If): checks a condition and branches into true / false
  6. Classify Compliance Status (Text Classifier): classifies text into categories with AI, with model: Compliance Classifier Model
  7. Flag Data Quality Issue (Slack): uses Slack
  8. Route By Compliance Status (Switch): routes items into 3 branches
  9. File State Non-Compliance Report (HTTP Request): calls replace-state-ereporting-portal.example.gov (POST)
  10. Send Test Reminder Notice (Gmail): uses Gmail

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

Services it uses

Google SheetsSlackOpenAI Chat ModelGmail

HTTP calls to: replace-state-ereporting-portal.example.gov

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 (13)

From the author

Quick overview This workflow runs daily, reads a Google Sheets backflow device registry, calculates overdue risk, and uses OpenAI to classify each device as Critical Overdue, Due Soon, or Compliant, then routes actions through a state reporting API, Gmail…

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.