Audit workflow compliance risk with GPT-4o, Gmail and Google Sheets
Ready for 3.0What 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.
- Normalize Audit Payload (Edit Fields (Set)): sets 13 fields: workflow_name, workflow_id, execution_id…
- Validate Required Audit Fields (If): checks a condition and branches into true / false
- Build Audit Context (Edit Fields (Set)): sets 14 fields: audit_id, timestamp, workflow_name…
- Prepare Invalid Audit Log (Edit Fields (Set)): sets 7 fields: audit_status, received_at, workflow_name…
- Generate AI Compliance Prompt (Edit Fields (Set)): sets 1 field: ai_prompt
- Store Invalid Audit Event (Google Sheets): append
- Analyze Audit Risk with AI (OpenAI): uses OpenAI
- Extract AI Risk Assessment (Edit Fields (Set)): sets 2 fields: ai_response, risk_level
- Check for High Risk Event (If): checks a condition and branches into true / false
- Send High Risk Email Alert (Gmail): uses Gmail
…plus 1 more step. See the full node list below.
Services it uses
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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - OpenAI
@n8n/n8n-nodes-langchain.openAi
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.…