Templates / Audit workflow compliance risk with GPT-4o, Gmail and Google Sheets

Audit workflow compliance risk with GPT-4o, Gmail and Google Sheets

Ready for 3.0

by WeblineIndia ✓ · 31 views · created 2026-08-04 · 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-10-19.

What this workflow does

This AI workflow has 12 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gmail, Google Sheets and OpenAI.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Normalize Audit Payload (Edit Fields (Set)): sets 13 fields: workflow_name, workflow_id, execution_id…
  2. Validate Required Audit Fields (If): checks a condition and branches into true / false
  3. Build Audit Context (Edit Fields (Set)): sets 14 fields: audit_id, timestamp, workflow_name…
  4. Prepare Invalid Audit Log (Edit Fields (Set)): sets 7 fields: audit_status, received_at, workflow_name…
  5. Generate AI Compliance Prompt (Edit Fields (Set)): sets 1 field: ai_prompt
  6. Store Invalid Audit Event (Google Sheets): append
  7. Analyze Audit Risk with AI (OpenAI): uses OpenAI
  8. Extract AI Risk Assessment (Edit Fields (Set)): sets 2 fields: ai_response, risk_level
  9. Check for High Risk Event (If): checks a condition and branches into true / false
  10. Send High Risk Email Alert (Gmail): uses Gmail

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

Services it uses

GmailGoogle SheetsOpenAI

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

From the author

Quick overview This workflow receives workflow audit events via a webhook, validates and normalizes the payload, uses OpenAI (GPT-4o) to assess compliance risk, logs results to Google Sheets, and sends Gmail alerts when an event is classified as HIGH risk.…

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.