Kütüphane / E-posta Otomasyonu
E-posta Otomasyonu
OpenAI GPT-4.1 mini ile yeni Gmail e-postalarını sınıflandırın ve etiketleyin
Gmail'i her dakika kontrol ederek yeni iletileri OpenAI ile kategori ve önceliğe göre sınıflandırır, eşleşen Gmail etiketini ve tek satırlık bir özeti uygular.
Ne yapar
# Classify and label new Gmail emails with OpenAI ## Who is this for Small business owners, freelancers and support teams whose Gmail inbox mixes customer requests, sales leads, invoices and newsletters. ## How it works 1. Gmail Trigger checks for new emails every minute. 2. Settings holds your business name, model and optional sorting rules. 3. OpenAI classifies each email as Urgent, Sales Lead, Support, Billing, Newsletter/Spam or Other, with a high/medium/low priority and a one-line summary (strict JSON schema). 4. The workflow looks up your Gmail labels and adds the matching one, e.g. AI/Sales Lead. Anything the AI can't classify is filed as Other. ## How to set up 1. Attach your Gmail OAuth2 credential to the Gmail nodes and your OpenAI credential to *Classify Email*. 2. In Gmail, create the labels AI/Urgent, AI/Sales Lead, AI/Support, AI/Billing, AI/Newsletter-Spam, AI/Other. 3. Open Settings: set business_name, openai_model (default gpt-4.1-mini) and optional classification_notes, e.g. "emails from @bigclient.com are urgent". 4. Send yourself a test email, click Execute workflow, check the label, then activate. ## Requirements - n8n (Cloud or self-hosted) - Gmail account - OpenAI API key (usage billed by OpenAI) ## How to customize - Change category definitions in the *Classify Email* system prompt. - Rename labels in the NAMES map in *Resolve Labels*. - Turn on add_priority_labels to also add AI/Priority-High/Medium/Low. - Swap the OpenAI node for another provider's chat model with an LLM Chain.
Adımlar
- Gmail Trigger
- Settings
- Prepare Email
- Classify Email
- Parse Classification
- Get Gmail Labels
- Resolve Labels
- Has Label?
- Apply Gmail Label
Benzer otomasyonlar
E-posta OtomasyonuGPT-4o mini ile Gmail E-postalarını Çoklu Etiketle Kategorize Et8 adımİçerik Yazımı ve ÜretimiYouTube videolarını özetle ve GPT-4o-mini ile sohbet et19 adımİçerik Yazımı ve ÜretimiYouTube Videolarını Özetleme ve GPT-4o-mini ile Sohbet46 adımGörüntü, Video ve SesGPT-4o-mini, Midjourney ve Kling ile Animasyonlu Hikayeler Oluştur45 adım