Outlook and Gmail suspicious message capture and Jira documentation workflow
This n8n workflow captures flagged messages from Microsoft Outlook and Gmail, extracts internet headers through Microsoft Graph and converts HTML bodies into screenshots. ChatGPT analyses the image and header lines into Jira wiki format. Every ticket is created and enriched with the screenshot attachment on your server.
- Catalogue ID
- #1308
- Functional nodes
- 13
- Connections
- 12
- Trigger
- gmailTrigger, microsoftOutlookTrigger
- AI layer
- AI-assisted
Business problem solved
IT helpdesks supporting Microsoft Outlook and Gmail struggle to collect uniform evidence when staff report suspicious messages. Copying header blocks and uploading manual screenshots to Jira adds friction to every security ticket.
Trigger
Microsoft Outlook and Gmail triggers run in parallel to capture incoming reports from either mail system.
Connected systems
- Microsoft Outlook
- Gmail
- Microsoft Graph API
- HTML screenshot HTTP API
- OpenAI image analysis
- Jira
- Self-hosted n8n
Every workflow is deployed on your own server with documentation, a run log and an error queue.
Workflow architecture
- 1. Gmail Trigger (Trigger) (connects to Set Gmail Variables)
- 2. Microsoft Outlook Trigger (Trigger) (connects to Retrieve Headers of Email)
- 3. Screenshot HTML (Service and data) (connects to Retrieve Screenshot)
- 4. Retrieve Screenshot (Service and data) (connects to ChatGPT Analysis)
- 5. Set Outlook Variables (Service and data) (connects to Set Email Variables)
- 6. Set Gmail Variables (Service and data) (connects to Set Email Variables)
- 7. Retrieve Headers of Email (Service and data) (connects to Format Headers)
- 8. Format Headers (Logic and routing) (connects to Set Outlook Variables)
- 9. Set Email Variables (Service and data) (connects to Screenshot HTML)
- 10. ChatGPT Analysis (AI layer) (connects to Create Jira Ticket)
- 11. Create Jira Ticket (Service and data) (connects to Rename Screenshot)
- 12. Rename Screenshot (Logic and routing) (connects to Upload Screenshot of Email…)
- 13. Upload Screenshot of Email… (Service and data)
- Trigger
- AI layer
- Logic and routing
- Service and data
Node positions and directed links are generated from the verified catalogue record.
Workflow steps
- 01
Mailbox variable normalisation
Variables from Outlook and Gmail align into shared fields while Graph API retrieves Outlook message headers.
- 02
HTML rendering and image fetch
The HTML body posts to the screenshot API and the rendered visual file is retrieved for analysis and archiving.
- 03
ChatGPT header and visual review
OpenAI inspects visual clues and formatted header tables to generate a Jira-ready risk summary.
- 04
Jira task and file attachment
A support task opens in Jira and receives the renamed screenshot binary as a permanent ticket attachment.
Error queue and human approval
Built-in state in the catalogue workflow
The verified catalogue workflow contains zero node-level error flags across its 13 functional nodes and 12 connections.
Production layer added by ALTAI
During live deployment, ALTAI adds HTML tracker stripping before rendering, screenshot API retry queues and message-ID deduplication.
Outlook and Gmail visual Jira ticket flow Frequently asked questions
Yes. The analysis prompt outputs Jira wiki syntax directly without markdown code fences so ticket descriptions stay readable.
Gmail variables map header fields directly, while Outlook messages run an extra Microsoft Graph query to retrieve internetMessageHeaders.
Production deployments sanitise remote image calls inside the HTML payload before sending content to the rendering API.
Related n8n workflows
Gmail and Outlook phishing analysis to Jira
Captures Gmail and Outlook emails, fetches headers, renders HTML screenshots, runs ChatGPT phishing checks and attaches visual evidence to Jira tickets.
Sublime Security email rule analysis workflow
Checks IMAP emails for attachments, submits binary files to Sublime Security for deterministic rule inspection and sends structured alerts to Slack.
Typeform issue report to Sheets and Slack
Filters Typeform issue submissions through a conditional branch, logs rows to Google Sheets and alerts support teams via email and Slack.

We write the proposal after we have found the problem together
In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.
30 minutes · no preparation needed
The call and the week of discovery are both free.Read the terms