{"product_id":"gmail-phishing-triage-with-gemini-ai-sheets-logging-n8n-workflow","title":"Gmail Phishing Triage with Gemini AI + Sheets Logging (n8n Workflow)","description":"\u003ch3\u003eAutomatically triage Gmail messages with Gemini AI—and log every phishing check to Google Sheets\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow monitors your Gmail inbox for new unread emails, uses a Google Gemini AI agent to categorize each message (including \u003cstrong\u003ephishing\/fraud detection\u003c\/strong\u003e), applies the correct Gmail label automatically, and appends the result to \u003cstrong\u003eGoogle Sheets\u003c\/strong\u003e with sender, subject, category, and timestamp.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eChecks Gmail every minute\u003c\/strong\u003e for new unread emails.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLoads existing Gmail labels\u003c\/strong\u003e from the connected account and matches the five category label names to their Gmail label IDs.\u003c\/li\u003e\n  \u003cli\u003eSends each email’s \u003cstrong\u003esubject, sender, and preview text\u003c\/strong\u003e to a \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e-powered AI agent.\u003c\/li\u003e\n  \u003cli\u003eThe AI chooses exactly one category: \u003cstrong\u003e⚠️ Possible Fraud\u003c\/strong\u003e, \u003cstrong\u003e🔴 Urgent\u003c\/strong\u003e, \u003cstrong\u003e📢 Ads\u003c\/strong\u003e, \u003cstrong\u003e🔎 Review\u003c\/strong\u003e, or \u003cstrong\u003e⚪ Not Important\u003c\/strong\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eApplies the selected category as a Gmail label\u003c\/strong\u003e to the original email using the matching label ID.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eLogs the outcome to Google Sheets\u003c\/strong\u003e by appending a row with the email details, the AI’s category, and a \u003cstrong\u003etimestamp\u003c\/strong\u003e (classified_at).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSaaS security triage:\u003c\/strong\u003e automatically label and route potentially fraudulent emails for faster review.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eOperations inbox management:\u003c\/strong\u003e separate urgent and non-urgent messages without manual sorting.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAutomation engineers:\u003c\/strong\u003e create an auditable Gmail classification pipeline with AI + logging for monitoring and iteration.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eTeams receiving marketing volume:\u003c\/strong\u003e label Ads vs. messages that need human attention (Review).\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003en8n nodes\/workflow components:\u003c\/strong\u003e set, code, gmail, merge, gmail tool, sticky note.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations:\u003c\/strong\u003e Gmail (watch inbox, list labels, apply labels), Google Gemini (chat model for classification), Google Sheets (append classification rows).\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eRequired Gmail labels (exact names):\u003c\/strong\u003e ⚠️ Possible Fraud, 🔴 Urgent, 📢 Ads, 🔎 Review, ⚪ Not Important.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGoogle Sheets setup:\u003c\/strong\u003e provide the spreadsheet ID and sheet\/tab name in “Set log sheet details”, and ensure columns\/headers for \u003cem\u003esubject\u003c\/em\u003e, \u003cem\u003efrom\u003c\/em\u003e, \u003cem\u003ecategory\u003c\/em\u003e, and \u003cem\u003eclassified_at\u003c\/em\u003e.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":46029437829299,"sku":"N8N-19594","price":74.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/zpKJWGoAO-yP-znmpuohf_UGnVKUGP.png?v=1789463576","url":"https:\/\/buyflowscripts.com\/products\/gmail-phishing-triage-with-gemini-ai-sheets-logging-n8n-workflow","provider":"N8N Commerce","version":"1.0","type":"link"}