Analyze & Sort Suspicious Email Contents with ChatGPT

![hctiapi](https://uploads.n8n.io/templates/hctiapi2.png) Email Body Screenshot Creation The Screenshot HTML node sends the email's HTML body to the hcti.io API, generating a screenshot that visually represents the email's layout. The Retrieve Screenshot node then fetches this image, making it available for attachment or review in subsequent steps. This dual-format processing ensures both clarity and flexibility in email analysis workflows.

Workflow Structure (19 nodes)
100%
Gmail Trigger
Gmail Trigger
Set
Set Gmail Variables
Set
Set Email Variables
Convert To File
Convert Email Body to File
Http Request
Screenshot HTML
Http Request
Retrieve Screenshot
Langchain.open Ai
Analyze Email with ChatGPT
If
Check if Malicious
Jira
Create Potentially Malicious Ticket
Microsoft Outlook Trigger
Microsoft Outlook Trigger
Http Request
Retrieve Headers of Email
Code
Format Headers
Set
Set Outlook Variables
Jira
Create Potentially Benign Ticket
Set
Set Jira ID
Code
Rename Screenshot
Jira
Upload Screenshot of Email to Jira
Code
Rename Email Body Screenshot
Jira
Upload Email Body to Jira
Node Types:
trigger
http
transform
code
default
logic
Requires credentials

Prerequisites

Required Credentials (5)

Gmail

Used by: Gmail Trigger

Docs

HTTP Basic Auth

Used by: Screenshot HTML, Retrieve Screenshot

Docs

Jira Software Cloud

Used by: Create Potentially Malicious Ticket, Create Potentially Benign Ticket +2 more

Docs

Microsoft Outlook

Used by: Microsoft Outlook Trigger, Retrieve Headers of Email

Docs

OpenAI

Used by: Analyze Email with ChatGPT

Docs

Multiple services required

This workflow needs 5 different credentials. Make sure you have accounts for all services before importing.

Complexity

Advanced

Expert level. Custom code, complex logic, many integrations.

Setup time: ~1 hour
Score: 90/100
Custom Code
Conditional Logic
5 Integrations

When to Use This Workflow

Streamline Team Communication

Automatically route notifications and updates to the right channels and people.

Reduce information overload while keeping everyone informed.

Email Automation

Automate email responses, forwarding, or organization based on rules.

Handle routine email tasks automatically and focus on what matters.

Real-time Response

React instantly when events happen - new orders, form submissions, or API calls.

Zero delay between trigger and action for time-sensitive workflows.

workflow.json
{
  "meta": {
    "instanceId": "03e9d14e9196363fe7191ce21dc0bb17387a6e755dcc9acc4f5904752919dca8"
  },
  "nodes": [
    {
      "id": "94dd7f48-0013-4fb5-89c4-826ecd7f2d66",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        1460,
        120
      ],
      "parameters": {
        "simple": false,
        "filters": {},
        "options": {},
        "pollTimes": {
          "item": [
            {
...

Workflow Details

Nodes
25
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Analyze Suspicious Email Contents with ChatGPT Vision

![Gmail](https://uploads.n8n.io/templates/gmail.png) Gmail Integration and Data Extraction This section of the workflow...

Gmail
Outlook
Http-request
Openai
18 nodesEvent
Curated

Compose reply draft in Gmail with OpenAI Assistant

Reply draft with OpenAI Assistant This workflow automatically transfers content of incoming email messages with specific...

Http-request
Gmail
Schedule
Openai
23 nodesScheduled
Curated

Gmailtrigger Workflow

Automated workflow: Gmailtrigger Workflow. This workflow integrates 9 different services: stickyNote, httpRequest, code,...

Gmail
Outlook
Http-request
Jira
18 nodesEvent

Gmailtrigger Workflow

Automated workflow: Gmailtrigger Workflow. This workflow integrates 11 different services: convertToFile, stickyNote, ht...

Gmail
Outlook
Http-request
Jira
25 nodesEvent

Gmailtrigger Workflow

Automated workflow: Gmailtrigger Workflow. This workflow integrates 11 different services: convertToFile, stickyNote, ht...

Gmail
Outlook
Http-request
Jira
25 nodesEvent

Gmailtrigger Workflow

Automated workflow: Gmailtrigger Workflow. This workflow integrates 9 different services: stickyNote, httpRequest, code,...

Gmail
Outlook
Http-request
Jira
18 nodesEvent