Templates / Monitor Gmail for compliance risks with Google Gemini and Google Sheets

Monitor Gmail for compliance risks with Google Gemini and Google Sheets

Ready for 3.0

by WeblineIndia ✓ · 29 views · created 2026-05-20 · SecOps, 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 13 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Gemini Chat Model, Gmail and Google Sheets.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Catch Incoming Emails (Gmail): get many
  2. Strip Email Formatting (HTML): parses or builds HTML
  3. Analyze Compliance Risk (AI Agent): runs an AI agent, with model: Google Gemini Chat Model
  4. Clean & Parse AI Output (Code): runs custom JavaScript code
  5. Prep Variables for Routing (Edit Fields (Set)): sets 4 fields: risk_type, risk_level, confidence…
  6. Route by Risk Level (Switch): routes items into 3 branches
  7. Block Low-Confidence Alerts (Filter): keeps only the items that match a condition
  8. Generate Secure Incident ID (Crypto): hashes or encrypts values
  9. Save to Audit Log (Google Sheets): append
  10. Format AI Report (Markdown): converts between Markdown and HTML

…plus 1 more step. See the full node list below.

Services it uses

Google Gemini Chat ModelGmailGoogle Sheets

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

From the author

AI-Powered Email Monitoring & Compliance Risk Detection > Gmail + Gemini + Google Sheets --- This workflow automatically monitors incoming Gmail messages, analyzes them using Google Gemini AI for compliance risks (fraud, phishing, data leaks), filters…

Excerpt from WeblineIndia'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.