Review security architecture risks and route alerts with OpenAI GPT-4.1
Needs changesWhat this workflow does
This AI workflow has 17 nodes and runs on a schedule (cron 0 7 * * 1) (plus 1 other trigger). Along the way it connects OpenAI Chat Model.
How it runs
Trigger: On a schedule (cron 0 7 * * 1) (plus 1 other trigger).
- Set Configuration Parameters (Edit Fields (Set)): sets 5 fields: reviewFrameworks, criticalCategories, criticalRiskScoreThreshold…
- Extract & Normalize Architecture Inputs (Code): runs custom JavaScript code
- Security Architecture Review Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4.1 Review Model
- Parse AI Findings & Compute Risk Score (Code): runs custom JavaScript code
- Findings Critic & Validator Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4.1 Critic Model
- Parse Critic Output & Reconcile Findings (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Build Security Review Summary Report (Code): runs custom JavaScript code
- No Findings - Architecture Passes Review (Edit Fields (Set)): sets 1 field: note
- If: checks a condition and branches into true / false
…plus 3 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Security Architecture Review Agent (v1.6), Findings Critic & Validator Agent (v1.6): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Security Architecture Review Agent (v1.6), Findings Critic & Validator Agent (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Wait
n8n-nodes-base.wait - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - If
n8n-nodes-base.if
From the author
Quick Overview This workflow runs on a weekly schedule or manual trigger, consolidates architecture inputs into a single context, and uses OpenAI GPT-4.1 to produce a structured security architecture review with a risk score and findings, then routes the…