GmailTrigger Automate

GmailTrigger Automate streamlines email monitoring and analysis by integrating Gmail and Microsoft Outlook, leveraging AI for phishing detection. It captures incoming emails every minute, extracts key details, and evaluates potential threats using ChatGPT. The workflow automatically generates Jira tickets for reported emails, categorizing them as potentially malicious or benign, and attaches relevant screenshots and email content for thorough documentation. This enhances email security and response efficiency.

7/8/2025
25 nodes
Complex
manualcomplexgmailtriggermicrosoftoutlooktriggerlangchainjiraconverttofilesticky noteadvancedapiintegrationfilesstoragelogicconditional
Categories:
Communication & MessagingComplex WorkflowManual Triggered
Integrations:
GmailTriggerMicrosoftOutlookTriggerLangChainJiraConvertToFileSticky Note

Target Audience

This workflow is designed for:
- IT Security Teams: Professionals responsible for monitoring and responding to phishing threats and email security.
- Helpdesk Support Staff: Individuals who handle reports of suspicious emails and need to log incidents in systems like Jira.
- Email Administrators: Those managing Gmail and Microsoft Outlook accounts who seek automated solutions for email analysis.
- Developers and Automation Enthusiasts: Users interested in creating custom workflows for email processing and threat detection.

Problem Solved

This workflow addresses the challenge of efficiently identifying and managing potential phishing emails. It automates the process of analyzing incoming emails from both Gmail and Microsoft Outlook, determining their legitimacy, and generating corresponding tickets in Jira. By leveraging AI for analysis, it reduces the manual effort needed to assess email threats, ensuring a faster and more accurate response to security incidents.

Workflow Steps

  • Trigger: The workflow is manually initiated, allowing users to start the email analysis at their convenience.
    2. Email Retrieval: It captures incoming emails from Gmail and Microsoft Outlook using their respective triggers.
    3. Variable Assignment: Key details such as subject, recipient, htmlBody, and headers are extracted and assigned for further processing.
    4. Header Retrieval: For Outlook emails, detailed headers and body content are fetched using the Microsoft Graph API.
    5. Email Analysis: The HTML body and headers are sent to the ChatGPT model for analysis, determining if the email is malicious or benign.
    6. Decision Making: Based on the AI output, the workflow checks if the email is flagged as malicious.
    7. Ticket Creation: Depending on the classification, it creates a Jira ticket either for potentially malicious or benign emails, including detailed descriptions and the AI analysis.
    8. Attachment Handling: Screenshots of the email and the email body are converted to files and uploaded as attachments to the Jira ticket for documentation and review.
  • Customization Guide

  • Adjust Email Triggers: Users can modify the Gmail Trigger and Microsoft Outlook Trigger settings to change the frequency of email checks or to filter specific types of emails.
    2. Customize Analysis Prompts: The messages sent to ChatGPT can be tailored to adjust the analysis criteria or to include additional context for better results.
    3. Jira Integration: Users can update the project ID and issue type in the Create Potentially Malicious Ticket and Create Potentially Benign Ticket nodes to match their organization's setup.
    4. Modify Attachments: The file names and formats for screenshots and email bodies can be changed in the respective nodes to meet specific naming conventions or documentation standards.
    5. Add New Nodes: Additional processing steps can be integrated into the workflow, such as logging to other systems or sending notifications via Slack or email.