Get Started
Screenshot of n8n workflow
PRO TEMPLATE
Automate Gmail Outlook Phishing Ticketing
10
Views
0
Downloads
18
Nodes
Download Template
Pro required
Preview Template
Utility Rating
8 / 10
Business Function
IT
Automation Orchestrator
n8n
Integrations
OpenAI
Microsoft Outlook
Jira Software Cloud
HTML/CSS to Image
Gmail
Trigger Type
On app event
Approx setup time ≈ 65 min
Need help setting up this template?
Ask in our Futurise Pro community
About
Community
Courses
Events
Members
Templates

How to Automate Gmail Outlook Phishing Ticketing?

Leon Petrou
PRO TEMPLATE
Automate Gmail Outlook Phishing Ticketing
10
Views
0
Downloads
18
Nodes
Download Template
Pro required
Preview Template
Utility Rating
8 / 10
Business Function
IT
Automation Orchestrator
n8n
Integrations
OpenAI
Microsoft Outlook
Jira Software Cloud
HTML/CSS to Image
Gmail
Trigger Type
On app event
Approximate setup time ≈ 65 minutes
Need help setting up this template?
Ask in our Futurise Pro community

Description

Stop wasting time sorting suspicious emails by hand. This setup captures emails from Gmail and Outlook, checks them for phishing signs with AI, and opens a detailed ticket in Jira for your security team. It is designed for IT and security teams that need fast, clear reports with all evidence in one place.

Incoming emails are picked up every minute from both inboxes. The flow saves key fields, pulls full headers from Microsoft Graph, and formats them for review. The HTML body is turned into a clean screenshot using an image service, then that image and the headers go to an AI model for analysis. The result, along with the subject, recipients, and body preview, is sent to Jira as a new issue, and the screenshot is attached automatically. You get a consistent record for each report, ready for triage.

You will need accounts and credentials for Gmail, Microsoft Outlook, Jira Software Cloud, OpenAI, and the HTML CSS to Image service. Expect faster triage and fewer mistakes, often cutting review time from 15 minutes to about 2 minutes per email. Great for security teams, IT help desks, and managed service providers that handle many phishing reports across different mail systems.

Copy link

Tools Required

OpenAI
Sign up
Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens
n8n
Sign up
$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.
Microsoft Outlook
Sign up
Exchange Online (Plan 1): $4.00 user / mo (annual billing)
Jira Software Cloud
Sign up
Free plan: $0 / mo (up to 10 users); REST API access via API token available on Free and paid plans
HTML/CSS to Image
Sign up
Free plan: $0 / mo, 50 images / mo
Gmail
Sign up
No cost: Personal Gmail (Gmail API has no usage-based pricing; quotas apply)

What this workflow does?

  • Dual inbox monitoring with Gmail Trigger and Microsoft Outlook Trigger checks every minute
  • Header retrieval from Microsoft Graph for full internet message headers and text body
  • Header formatting using a code step to group repeated values for clear reading
  • Variable mapping for subject, recipients, HTML body, and previews to keep data organized
  • HTML to image conversion via HTML CSS to Image to preserve the email look
  • Screenshot fetch step to download the image URL for use later in the flow
  • AI review with ChatGPT 4o to flag phishing signals using both the image and headers
  • Automatic Jira issue creation with a structured summary and AI analysis in wiki format
  • Attachment handling that renames and uploads the screenshot to the Jira ticket

What are the benefits?

  • Reduce manual review time from 15 minutes to about 2 minutes per email
  • Streamline phishing intake by up to 80 percent with one standard flow
  • Improve evidence quality by capturing headers and a clean email screenshot
  • Handle up to 5 times more reports with the same team size
  • Connect Gmail, Microsoft Outlook, OpenAI, and Jira in one place

How to set this up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Gmail, Microsoft Outlook, Jira Software Cloud, OpenAI and HTML/CSS to Image. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create Gmail OAuth2 credentials. Double click the Gmail Trigger node, choose Create new credential, and follow the on screen steps to connect your Google account.
  4. In the n8n credentials manager, create Microsoft Outlook OAuth2 credentials. Double click the Microsoft Outlook Trigger and the Retrieve Headers of Email nodes, choose Create new credential, and complete the sign in with the correct permissions.
  5. Create HTML CSS to Image Basic Auth credentials. Double click the Screenshot HTML and Retrieve Screenshot nodes, select Create new credential, and enter your hcti username and API key from your account dashboard.
  6. Create an OpenAI API Key credential. Double click the ChatGPT Analysis node, select Create new credential, and paste your API key from the OpenAI account API keys page.
  7. Create Jira Software Cloud credentials. Double click the Create Jira Ticket and Upload Screenshot of Email to Jira nodes, select Create new credential, and connect using your site URL and API token or OAuth as guided.
  8. Configure node fields: ensure both triggers are set to check every minute. In Retrieve Headers of Email, keep Accept and Prefer headers as provided. In Set nodes, confirm htmlBody, subject, toRecipients, headers, and previews are mapped.
  9. Open the ChatGPT Analysis node and confirm the model is ChatGPT 4o and input type is image base64. Keep max tokens at 1500 or adjust for your needs.
  10. Open the Create Jira Ticket node and set the project key, issue type, and summary format. Make sure the description includes the AI output and header details.
  11. Enable the workflow and send a test email to your Gmail inbox with clear HTML content. Check that a screenshot is generated and an issue appears in Jira with the attachment.
  12. Send a test email to your Outlook inbox. Confirm headers are retrieved, formatted, and included in the Jira ticket, and that the AI summary is present.
  13. If the screenshot is missing, verify your HTML CSS to Image credentials and that the html body variable is not empty. If headers are missing, recheck Outlook permissions and the Prefer header value.

Need help or want to customize this?

Similar Templates

n8n
IT
Automate Slack and Gmail Threat Reports
Collect risky links and IPs from a simple form or a webhook, scan them with trusted security sources, and send clear results to your team in Slack and email. It fits security and IT teams that need quick answers without giving everyone access to full threat tools. The flow starts with two intake options: a form trigger for easy internal use and a webhook for API submissions. An item list splits batches, then a check decides if each entry is an IP or a domain. Domains are resolved to IPs using Google Public DNS so every record has a clean IP. The system submits URLs to VirusTotal, waits, and polls until results are ready. It also checks each IP with GreyNoise and RIOT. Results are merged by IP, summarized, and pushed to Gmail and Slack so the team can act fast. Plan for a VirusTotal API key and a GreyNoise enterprise API key, plus Slack and Gmail access. Expect faster triage, fewer copy paste steps, and a repeatable intake path that anyone in your company can use. Common uses include help desk tickets with suspicious links, vendor scans during onboarding, and quick checks before allowing new domains through a firewall.
11 views
view
n8n
IT
Automate Telegram and Gmail Proxmox Management
Turn chat, email, and web requests into safe Proxmox actions. Teams can ask in plain language to start or stop VMs, check cluster status, or change settings. Great for IT teams that want faster operations and less time in the UI. Messages from Telegram, Gmail, a chat interface, or a webhook feed into an AI agent. The model reads your request along with Proxmox API docs and wiki to plan the right call. A structured parser forces a clean JSON output with method, URL, and body fields. Switch and If nodes route that request to the correct Proxmox HTTP endpoint with a secure header token. Results are merged, cleaned, and explained in simple words so anyone can understand the outcome. Setup needs a Proxmox API token with proper rights and a Google Gemini API key. Update the base API URL to your host and pick your model. Expect faster ticket handling, fewer console logins, and clear audit trails. Ideal for chat based help desk, weekend duty handoffs, or safe self service for trusted users.
2 views
view
n8n
IT
Automate Multi-Channel SSL Certificate Alerts with Sheets, Gmail, and Telegram
Keep an eye on SSL certificate expiry across all your sites without manual checks. The workflow reads a list of domains, checks their SSL status, and alerts your team well before anything expires. It suits IT admins, web teams, and agencies that manage many websites. A weekly schedule runs at the time you set and loads URLs from a Google Sheet. Each domain is sent to an SSL check API to pull the host, expiry date, and days left. Results are written back to the sheet so you have a simple view of current status. A switch groups each site into invalid, warning under 30 days, notice under 60 days, or info for healthy. Alerts go out by Gmail with clear subject lines, plus optional Telegram and Ntfy messages for fast response. This makes follow up easy and keeps everyone on the same page. Create the sheet with a URL column, connect Google Sheets and Gmail in n8n Cloud, and add your Telegram bot and chat if you want chat alerts. Expect fewer outages and less panic work because the team sees risks weeks in advance. Good for company sites, client portfolios, and any service that cannot afford expired certificates.
10 views
view
See More Templates

These templates were sourced from publicly available materials across the web, including n8n’s official website, YouTube and public GitHub repositories. We have consolidated and categorized them for easy search and filtering, and supplemented them with links to integrations, step-by-step setup instructions, and personalized support in the Futurise community. Content in this library is provided for education, evaluation and internal use. Users are responsible for checking and complying with the license terms with the author of the templates before commercial use or redistribution.Where an original author was identified, attribution has been provided. Some templates did not include author information. If you know who created this template, please let us know so we can add the appropriate credit and reference link. If you are the author and would like this template removed from the library, email us at info@futurise.com and we will remove it promptly.