Skip to main content

Prevent phishing emails with GPT-4, VirusTotal, Slack, and Google Sheets

Workflow preview

Workflow preview
100%
Prevent phishing emails with GPT-4, VirusTotal, Slack, and Google Sheets preview
Open on n8n.io

1. Workflow Overview

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...

Best for

  • SecOps automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.code, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.switch, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oneclick AI Squad.

Original n8n.io source

1.1 Workflow description

Title
Prevent phishing emails with GPT-4, VirusTotal, Slack, and Google Sheets
Workflow name
Prevent phishing emails with GPT-4, VirusTotal, Slack, and Google Sheets

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, alerting users and SOC, and logging everything for compliance and forensics. It prevents phishing attacks at the point of delivery with zero-touch automation.

How it works

  1. Webhook receives email
  2. Extract URLs, domains, keywords
  3. VirusTotal + GPT-4 analysis
  4. Risk score routing
  5. Quarantine / Flag / Allow
  6. Slack SOC alert + audit log

Risk Levels

🔴 HIGH (75–100) → Quarantine 🟡 MEDIUM (40–74) → Flag + warn 🟢 LOW (0–39) → Allow + log

Credentials

  • OpenAI API (GPT-4o)
  • VirusTotal API
  • Slack Webhook
  • Google Sheets
  • SMTP Email

Placeholders to Replace

  • YOUR_OPENAI_CREDENTIAL_ID
  • YOUR_VIRUSTOTAL_API_KEY
  • YOUR_SLACK_WEBHOOK_PATH
  • YOUR_GOOGLE_SHEET_ID
  • YOUR_EMAIL_GATEWAY_TOKEN

Explore More AI-Powered Email Security: Contact us to deploy zero-trust email gateways, automated BEC response, and insider threat detection using n8n + LLMs.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note S1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note S2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note S3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note S4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Receive Email via Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 7 - Extract IOCs & Normalize

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - VirusTotal URL Scan

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - GPT-4 Phishing Analysis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.6

Block 10 - GPT-4o Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1

Block 11 - Parse & Score Risk

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Risk Level Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3

Block 13 - Quarantine — HIGH

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Flag — MEDIUM

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Allow — LOW

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 16 - Merge All Paths

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 17 - Slack SOC Alert

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - Warn User via Email

Type / Role
n8n-nodes-base.emailSend - emailSend
Config choices
Version 2.1

Block 19 - Write Audit Log

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 20 - Return Detection Result

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1

3. Summary Table

Workflow Prevent phishing emails with GPT-4, VirusTotal, Slack, and Google Sheets
Complexity advanced
Nodes 20
Categories SecOps, AI Summarization
Author Oneclick AI Squad
Published 07 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10595/10595.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Prevent phishing emails with GPT-4, VirusTotal, Slack, and Google Sheets do?

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...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your SecOps, AI Summarization use case.