Templates / Monitor attack surface changes with OpenAI, Postgres, Slack, and email

Monitor attack surface changes with OpenAI, Postgres, Slack, and email

Needs changes

by Oneclick AI Squad ✓ · 2 views · created 2026-08-17 · SecOps, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 23 nodes and runs on a schedule (every 6 hours). Along the way it connects Postgres, OpenAI Chat Model and Slack.

How it runs

Trigger: On a schedule (every 6 hours).

  1. Set Configuration Parameters (Edit Fields (Set)): sets 10 fields: rootDomains, subdomainApiUrl, exposedServicesApiUrl…
  2. Fetch Subdomain Data (HTTP Request): calls an HTTP API
  3. Fetch Exposed Services Data (HTTP Request): calls an HTTP API
  4. Fetch Cloud Asset Inventory (HTTP Request): calls an HTTP API
  5. Merge: merges the data from its input branches
  6. Normalize and Deduplicate Assets (Code): runs custom JavaScript code
  7. Get Previous Baseline (Postgres): run a query
  8. Update Baseline with Inventory (Postgres): run a query
  9. Diff Current vs Baseline Inventory (Compare Datasets): uses Compare Datasets
  10. Tag New Assets (Edit Fields (Set)): sets 1 field: changeType

…plus 10 more steps. See the full node list below.

Services it uses

PostgresOpenAI Chat ModelSlack

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 Generate Risk Triage Narrative (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.0Replace with
AI Agent v1 (old agent modes)
Generate Risk Triage Narrative (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (14)

From the author

Quick Overview This scheduled workflow inventories your external attack surface from three HTTP APIs, diffs it against a Postgres baseline, and uses OpenAI to generate concise risk notes before routing critical/high alerts to Slack and medium changes to…

Excerpt from Oneclick AI Squad'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.