Analyze and categorize suspicious emails using ChatGPT
Workflow Description
Automation that monitors incoming emails from Gmail and Outlook, leverages ChatGPT to analyze content for security threats, categorizes messages by risk level, generates documentation files, and creates Jira tickets for confirmed suspicious emails.
How it works
- 1.Automatically capture new emails from Gmail and Outlook accounts
- 2.Send email content to ChatGPT for threat indicator analysis
- 3.Classify emails by severity level and attack type
- 4.Generate documentation file with analysis findings
- 5.Create Jira ticket for emails flagged as genuine threats
Use cases
- Detect and prevent phishing attempts and malware distribution
- Maintain audit trail of fraudulent email incidents
- Alert security team in real time when threats are identified
Requirements
- Connected Gmail and Outlook accounts in n8n
- Valid OpenAI API key for ChatGPT access
- Jira project configured to receive security tickets
- Email read and tag permissions enabled
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (25)
Gmail Trigger
Gmail
Microsoft Outlook Trigger
Microsoft Outlook Trigger
Screenshot HTML
HTTP Request
Retrieve Screenshot
HTTP Request
Set Outlook Variables
Set
Set Gmail Variables
Set
Retrieve Headers of Email
HTTP Request
Format Headers
Code
Analyze Email with ChatGPT
OpenAI
Create Potentially Malicious Ticket
Jira
Create Potentially Benign Ticket
Jira
Rename Screenshot
Code
Set Jira ID
Set
Upload Screenshot of Email to Jira
Jira
Upload Email Body to Jira
Jira
Convert Email Body to File
Convert To File
Set Email Variables
Set
Rename Email Body Screenshot
Code
Sticky Note2
Sticky Note
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Check if Malicious
If
Sticky Note5
Sticky Note