Templates / Analyze & sort suspicious email contents with ChatGPT

Analyze & sort suspicious email contents with ChatGPT

Ready for 3.0

by Angel Menendez ✓ · 9,295 views · created 2024-12-21 · SecOps, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 19 nodes and runs on Gmail events (plus 1 other trigger). Along the way it connects Gmail, Microsoft Outlook, OpenAI and Jira Software. It also calls hcti.io over HTTP.

How it runs

Trigger: On Gmail events (plus 1 other trigger).

  1. Set Gmail Variables (Edit Fields (Set)): sets 5 fields: htmlBody, headers, subject…
  2. Retrieve Headers of Email (HTTP Request): calls an HTTP API
  3. Set Email Variables (Edit Fields (Set)): sets or maps fields
  4. Format Headers (Code): runs custom JavaScript code
  5. Convert Email Body to File (Convert to File): converts data to a file (to text)
  6. Set Outlook Variables (Edit Fields (Set)): sets 5 fields: htmlBody, headers, subject…
  7. Screenshot HTML (HTTP Request): calls hcti.io (POST)
  8. Retrieve Screenshot (HTTP Request): calls an HTTP API
  9. Analyze Email with ChatGPT (OpenAI): uses OpenAI
  10. Check if Malicious (If): checks a condition and branches into true / false

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

Services it uses

GmailMicrosoft OutlookOpenAIJira Software

HTTP calls to: hcti.io

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

From the author

Analyze & Sort Suspicious Email Contents with ChatGPT and Jira Who is this for? This workflow is tailored for IT security teams, managed service providers (MSPs), and organizations aiming to streamline the detection and reporting of phishing emails. It's…

Excerpt from Angel Menendez'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.