Prevent phishing emails with GPT-4, VirusTotal, Slack, and Google Sheets
Needs changesWhat this workflow does
This AI workflow has 15 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model and Google Sheets. It also calls virustotal.com and hooks.slack.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Extract IOCs & Normalize (Code): runs custom JavaScript code
- VirusTotal URL Scan (HTTP Request): calls virustotal.com (POST)
- GPT-4 Phishing Analysis (AI Agent): runs an AI agent, with model: GPT-4o Model
- Parse & Score Risk (Code): runs custom JavaScript code
- Risk Level Switch (Switch): routes items into branches
- Quarantine — HIGH (HTTP Request): calls an HTTP API (POST)
- Flag — MEDIUM (HTTP Request): calls an HTTP API (POST)
- Allow — LOW (Edit Fields (Set)): sets or maps fields
- Merge: merges the data from its input branches
- Slack SOC Alert (HTTP Request): calls hooks.slack.com (POST)
…plus 3 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
HTTP calls to: virustotal.com, hooks.slack.com
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 GPT-4 Phishing Analysis (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).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) GPT-4 Phishing Analysis (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Switch
n8n-nodes-base.switch - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Send Email
n8n-nodes-base.emailSend - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
This n8n workflow automates real-time phishing detection by ingesting incoming emails, extracting indicators, analyzing content with AI (GPT-4), calculating risk scores, and taking immediate action—quarantining malicious emails, flagging suspicious ones,…