Communication

Analyze and categorize suspicious emails using ChatGPT

25 nodes 321 123 Automatic trigger
Download

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. 1.Automatically capture new emails from Gmail and Outlook accounts
  2. 2.Send email content to ChatGPT for threat indicator analysis
  3. 3.Classify emails by severity level and attack type
  4. 4.Generate documentation file with analysis findings
  5. 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

Gmail Outlook OpenAI Jira

Details

Trigger Automatic trigger
Nodes 25
Apps 4
Views 321
Downloads 123

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (25)

/

Gmail Trigger

Gmail

#1

Microsoft Outlook Trigger

Microsoft Outlook Trigger

#2

Screenshot HTML

HTTP Request

#3

Retrieve Screenshot

HTTP Request

#4

Set Outlook Variables

Set

#5

Set Gmail Variables

Set

#6

Retrieve Headers of Email

HTTP Request

#7

Format Headers

Code

#8

Analyze Email with ChatGPT

OpenAI

#9

Create Potentially Malicious Ticket

Jira

#10

Create Potentially Benign Ticket

Jira

#11

Rename Screenshot

Code

#12

Set Jira ID

Set

#13

Upload Screenshot of Email to Jira

Jira

#14

Upload Email Body to Jira

Jira

#15

Convert Email Body to File

Convert To File

#16

Set Email Variables

Set

#17

Rename Email Body Screenshot

Code

#18

Sticky Note2

Sticky Note

#19

Sticky Note

Sticky Note

#20

Sticky Note1

Sticky Note

#21

Sticky Note3

Sticky Note

#22

Sticky Note4

Sticky Note

#23

Check if Malicious

If

#24

Sticky Note5

Sticky Note

#25