Workflow AutomationChatLLM DeepAgent / n8n

Email Triage and Auto-Response System

Build an n8n workflow that automatically reads, categorizes, and drafts responses to incoming emails based on your rules.

The Prompt

Build an automated email triage and response drafting system.

Email provider: [Gmail / Outlook]
Categories to sort: [e.g., Support requests, Sales inquiries, Partnerships, Spam, Personal]
Auto-respond to: [which categories get automatic draft responses]
Escalation rule: [which types must go to human review immediately]

Build the complete n8n workflow:

Node 1: Gmail Trigger — fires on new email (every 5 minutes)
Node 2: Extract email data — sender, subject, body, attachments present
Node 3: OpenAI GPT-4 — classify email into one of your categories with confidence score
Node 4: Switch node — routes based on category:
  → Support: Extract issue, search FAQ knowledge base, draft resolution
  → Sales: Extract company/name, score lead (1–10), draft personalized reply
  → Partnership: Flag as high priority, summarize, create task in Notion/Asana
  → Spam: Auto-archive
  → Other: Draft courteous holding reply

Node 5 (for Support/Sales): GPT-4 — generate contextual reply draft using your brand voice
Node 6: Save draft to Gmail (NOT send — human reviews before sending)
Node 7: Slack notification — summary of emails processed + any high priority flags

Provide complete JSON workflow export and setup instructions.

Tips for Best Results

  • Never set auto-send — always review AI-drafted replies before they go out
  • Feed GPT your top 10 best email responses as examples for better draft quality

Tags

email automationn8nGmailGPT-4workflow

Related Prompts