Quick overview
This workflow checks vendor terms and privacy policy pages daily from Google Sheets, snapshots and compares the page text in an n8n Data Table, and uses an OpenAI-powered agent to summarize meaningful changes before logging them to Google Sheets, posting to Slack, and emailing owners via Gmail.
How it works
- Runs every day at 8:00 AM.
- Reads the vendor policy URLs from a Google Sheets “Vendors” tab and keeps only active rows with a valid http(s) URL.
- Fetches each page over HTTP, extracts readable body text, and skips pages that are empty or likely blocked.
- Normalizes and SHA-256 fingerprints the extracted text, loads the last snapshot from an n8n Data Table, and identifies whether the page is new, unchanged, or changed (including added/removed sentences).
- Upserts the latest snapshot to the n8n Data Table and routes first-time checks versus wording changes.
- For wording changes, an OpenAI agent produces a structured change report (optionally using Google Sheets history and an Internet Archive Wayback lookup) and ignores cosmetic-only edits.
- Logs non-cosmetic changes to the Google Sheets “Changes” tab, posts the report to a Slack channel, and emails the vendor owner via Gmail when severity is high.
Setup
- Create or select a Google Sheets file with a “Vendors” sheet (vendor, pageType, url, owner, dataWeShare, plan, active) and a “Changes” sheet with the columns the workflow appends.
- Add Google Sheets credentials and set the correct spreadsheet (document) in both the vendor read and change log steps.
- Create an n8n Data Table named policy_snapshots (url, hash, text, checkedAt) and select it in the snapshot lookup and upsert steps.
- Add an OpenAI credential (Chat model) for the AI agent.
- Add Slack credentials and set the target channel (for example #vendor-watch) for change posts and failure alerts.
- Add Gmail credentials and ensure the “owner” values in the Vendors sheet are valid recipient email addresses for high-severity notifications.