Перейти к содержанию
НОВОЕПознакомьтесь с Alaaddin — вашим ИИ-джинном с голосом. trig8n запускается 1 января 2027. Что нового

Библиотека / Автоматизация эл. почты

Автоматизация эл. почты

Detect phishing and triage Gmail with Google Gemini and Google Sheets

When a new email arrives, it handles email with Google Gemini using Gmail, Google Sheets.

Что делает

## Email Security Triage Agent Watches your inbox and sorts every new email into one of five categories — Possible Fraud, Urgent, Ads, Review, or Not Important — then applies the matching Gmail label automatically. ### How it works Every minute it checks for new unread mail. For each email, an AI agent reads the subject, sender, and preview text and decides which category fits, leaning toward "Review" rather than guessing when something looks fraud-like. It applies the matching label straight in Gmail — nothing is moved, archived, or deleted, so your inbox looks the same, just labeled. Every decision is also logged to a Google Sheet (subject, sender, category, time) so you have a running record of what came in and how it was sorted. ### Setup 1. In Gmail, create 5 labels with these exact names: ⚠️ Possible Fraud, 🔴 Urgent, 📢 Ads, 🔎 Review, ⚪ Not Important. 2. Open "Set log sheet details" and enter your Google Sheet ID and tab name (header row: subject, from, category, classified_at). 3. Connect your Gmail, Google Sheets, and Google Gemini credentials. 4. Turn the workflow on. ### Customization tips Tighten or loosen the fraud wording in the AI agent's system prompt, or swap the Google Sheet log for n8n's Data Table.

Шаги

  1. Watch inbox for new email
  2. Set log sheet details
  3. Get all Gmail labels
  4. Match categories to label IDs
  5. Classify email with AI agent
  6. Google Gemini Chat Model
  7. Add 'Possible Fraud' label
  8. Add 'Urgent' label
  9. Add 'Ads' label
  10. Add 'Review' label
  11. Add 'Not Important' label
  12. Combine email with AI result
  13. Log result to Google Sheet

Похожие автоматизации