See llms.txt for all machine-readable content.

Back to Templates

Monitor vendor policy changes with OpenAI, Google Sheets, Slack and Gmail

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

  1. Runs every day at 8:00 AM.
  2. Reads the vendor policy URLs from a Google Sheets “Vendors” tab and keeps only active rows with a valid http(s) URL.
  3. Fetches each page over HTTP, extracts readable body text, and skips pages that are empty or likely blocked.
  4. 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).
  5. Upserts the latest snapshot to the n8n Data Table and routes first-time checks versus wording changes.
  6. 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.
  7. 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

  1. 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.
  2. Add Google Sheets credentials and set the correct spreadsheet (document) in both the vendor read and change log steps.
  3. Create an n8n Data Table named policy_snapshots (url, hash, text, checkedAt) and select it in the snapshot lookup and upsert steps.
  4. Add an OpenAI credential (Chat model) for the AI agent.
  5. Add Slack credentials and set the target channel (for example #vendor-watch) for change posts and failure alerts.
  6. Add Gmail credentials and ensure the “owner” values in the Vendors sheet are valid recipient email addresses for high-severity notifications.