Analyze & sort suspicious email contents with ChatGPT
Ready for 3.0What 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).
- Set Gmail Variables (Edit Fields (Set)): sets 5 fields: htmlBody, headers, subject…
- Retrieve Headers of Email (HTTP Request): calls an HTTP API
- Set Email Variables (Edit Fields (Set)): sets or maps fields
- Format Headers (Code): runs custom JavaScript code
- Convert Email Body to File (Convert to File): converts data to a file (to text)
- Set Outlook Variables (Edit Fields (Set)): sets 5 fields: htmlBody, headers, subject…
- Screenshot HTML (HTTP Request): calls hcti.io (POST)
- Retrieve Screenshot (HTTP Request): calls an HTTP API
- Analyze Email with ChatGPT (OpenAI): uses OpenAI
- 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
Other OpenAI + Gmail templates (1,623) · Other Microsoft Outlook + OpenAI templates (52) · Other Jira + Gmail templates (47)
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).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Microsoft Outlook Trigger
n8n-nodes-base.microsoftOutlookTrigger - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Jira Software
n8n-nodes-base.jira - Convert to File
n8n-nodes-base.convertToFile - If
n8n-nodes-base.if
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…