自动分类收件箱,为常见问题起草回复,紧急邮件转人工。

适用场景

Small businesses and solo founders receiving 50-200 emails per day who want to prioritize and automate routine responses.

前提条件

n8n, IMAP email access, OpenAI API key, Slack webhook, Google Sheets API

工作流图

用 n8n 搭建 AI 邮件分类助手

Email Trigger Node
AI Classification Node
Routing Logic
Auto-Response Drafting
Analytics and Logging

分步指南

  1. 1

    Email Trigger Node

    Use the IMAP Email trigger node. Set polling to every 5 minutes. Configure to only process unread emails. Mark emails as read after processing to avoid duplicates.

  2. 2

    AI Classification Node

    Use an HTTP Request node to call OpenAI with a classification prompt: 'Categorize this email into: URGENT, BILLING, SUPPORT, SALES, SPAM, OTHER. Also extract: sender intent, required action, response deadline.' Return as JSON.

  3. 3

    Routing Logic

    Add a Switch node based on the AI classification. URGENT goes to Slack alert + draft response. BILLING goes to billing template auto-response. SUPPORT goes to knowledge base lookup. SPAM goes to trash. OTHER goes to inbox for manual review.

  4. 4

    Auto-Response Drafting

    For SUPPORT and BILLING categories, use AI to draft a response: 'Draft a professional email response to this inquiry. Use our standard tone. Reference relevant policy if applicable.' Save draft in your email drafts folder for human review before sending.

  5. 5

    Analytics and Logging

    Log all classifications and actions to a Google Sheet. Track: volume by category, auto-response rate, average response time, escalation rate. Generate a weekly summary report.

标签

#email#automation#triage#n8n#ai-classification