Send UK food hygiene rating change alerts from FSA to Gmail, Slack or SMTP
Ready for 3.0What this workflow does
This AI workflow has 28 nodes and runs on a schedule (every day at 07:00) (plus 2 other triggers). Along the way it connects Gmail, Slack, Google Sheets and Google Gemini Chat Model. It also calls api.ratings.food.gov.uk over HTTP.
How it runs
Trigger: On a schedule (every day at 07:00) (plus 2 other triggers).
- Settings (Edit Fields (Set)): sets 14 fields: watchlist, maxAreas, pageSize…
- Format error alert (Code): runs custom JavaScript code
- Get FSA local authorities (HTTP Request): calls api.ratings.food.gov.uk
- Error alert by Gmail (add your credentials) (Gmail): uses Gmail
- Error alert by Slack (add your credentials) (Slack): uses Slack
- Build watchlist (Code): runs custom JavaScript code
- Loop over areas (Loop Over Items (Split in Batches)): loops over the items in batches
- Diff, classify and summarise (Code): runs custom JavaScript code
- Get FSA ratings for area (HTTP Request): calls api.ratings.food.gov.uk
- Enrich: council contacts, trend and risk score (Code): runs custom JavaScript code
…plus 12 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Sheets + Slack templates (1,314) · Other Gmail + Slack templates (957)
HTTP calls to: api.ratings.food.gov.uk
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (18)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Split Out
n8n-nodes-base.splitOut - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp - Error Trigger
n8n-nodes-base.errorTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Switch
n8n-nodes-base.switch
From the author
Quick overview Watches UK food hygiene and FSA ratings for postcode areas or whole councils and sends a ranked digest of changes to Gmail, Slack, SMTP or Google Sheets. Covers rating drops, new poorly rated businesses and optional openings, each with trend,…