Templates / Score QSR health inspections and send Gmail compliance digests with OpenAI

Score QSR health inspections and send Gmail compliance digests with OpenAI

Ready for 3.0

by Swapnil Mandloi ✓ · 3 views · created 2026-09-02 · 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 16 nodes and runs on a schedule (every day at 07:00). Along the way it connects Google Sheets, Gmail and OpenAI Chat Model.

How it runs

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

  1. Fetch Inspection Batch (Edit Fields (Set)): sets 1 field: records
  2. Split Out: splits a list into separate items
  3. Shape Inspection Record (Edit Fields (Set)): sets 5 fields: location_id, location_name, region…
  4. Loop Over Location Records (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Compute Regional Risk Score (Code): runs custom JavaScript code
  6. Extract Violation Severity (Information Extractor): extracts structured fields from text with AI, with model: Run Severity Extraction Model
  7. Append Summary Row (Google Sheets): append
  8. Compute Corrective Deadline (Code): runs custom JavaScript code
  9. Check Escalation Threshold (If): checks a condition and branches into true / false
  10. Append Compliance Log Row (Google Sheets): append

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

Services it uses

Google SheetsGmailOpenAI Chat Model

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

From the author

Quick overview This workflow runs daily to process multi-location QSR health inspection notes, uses OpenAI to extract violation severity and corrective actions, logs per-location and batch summaries to Google Sheets, and sends Gmail digest and conditional…

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.