PromptForge
Prompt library

AI Email Triage & Auto-Responder

Claude (inside n8n)Automation From a course

Trigger: new email in inbox -> AI node classifies intent (support, sales, spam, urgent) -> conditional branches route to auto-reply, Slack alert, or human queue..

The prompt

Classify this email into exactly one category: "support", "sales_lead", "spam", "urgent_escalation". Then draft a 2-sentence acknowledgment reply matching that category's tone. Return JSON: {"category": string, "draft_reply": string}.

Email: {{$json.email_body}}

What to replace

Swap these placeholders for your own details before running the prompt:

  • {{$json.email_body}}your own value

Pro tip: Route "urgent_escalation" and low-confidence classifications to a human — never let a fully automated flow send the final word on anything high-stakes.

How to use this prompt

  1. Copy the prompt using the button above.
  2. Replace {{$json.email_body}} with your own details — the more specific you are, the better the output.
  3. Paste it into Claude (inside n8n) and run it.
  4. If the answer feels generic, add constraints: audience, length, tone, and what to avoid. That single change fixes most weak output.

Learn the technique

AI Email Triage & Auto-Responder

Module 2 — Real Workflow Templates · AI Automation with n8n

Related prompts