(5/5)

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 connects to a Gmail account using the Gmail Trigger node, capturing incoming emails in real-time, with checks performed every minute. Once an email is detected, its key components—such as the subject, recipient, body, and headers—are extracted and assigned to variables using the Set Gmail Variables node. These variables are structured for subsequent analysis and processing in

Workflow Structure (13 nodes)
100%
Gmail Trigger
Gmail Trigger
Set
Set Gmail Variables
Microsoft Outlook Trigger
Microsoft Outlook Trigger
Http Request
Retrieve Headers of Email
Code
Format Headers
Set
Set Outlook Variables
Set
Set Email Variables
Http Request
Screenshot HTML
Http Request
Retrieve Screenshot
Langchain.open Ai
ChatGPT Analysis
Jira
Create Jira Ticket
Code
Rename Screenshot
Jira
Upload Screenshot of Email to Jira
Node Types:
trigger
http
transform
code
default
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 Jira Ticket, Upload Screenshot of Email to Jira

Docs

Microsoft Outlook

Used by: Microsoft Outlook Trigger, Retrieve Headers of Email

Docs

OpenAI

Used by: ChatGPT Analysis

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: 70/100
Custom Code
4 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": "1bad6bfc-9ec9-48a5-b8f7-73c4de3d08cf",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        1480,
        160
      ],
      "parameters": {
        "simple": false,
        "filters": {},
        "options": {},
        "pollTimes": {
          "item": [
            {
...

Workflow Details

Nodes
18
Trigger
Event
Source
awesome
Added
Dec 4, 2025

Need Help?

Check out the official n8n documentation for detailed guides.

Related Workflows

Analyze & Sort Suspicious Email Contents with ChatGPT

![hctiapi](https://uploads.n8n.io/templates/hctiapi2.png) Email Body Screenshot Creation The Screenshot HTML node sends...

Gmail
Outlook
Http-request
Openai
25 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