Quick overview
Quick overview This workflow monitors a Gmail inbox for unread messages, uses Anthropic Claude to classify and summarize each email, auto-drafts an HTML reply in the same thread, logs the triage result to an n8n Data Table, and sends an urgent alert email for high-priority items. How it works Triggers every minute when a new unread email arrives in Gmail. Extracts the sender, sender email address, subject, body text, thread ID, and message ID from the email. Sends the email content to Anthropic Claude (Sonnet 4.6) to classify category, urgency, and sentiment, generate a one-line summary, and produce a draft subject and HTML reply. Normalizes the AI output into a single triage record and timestamps it for logging. Logs the triage details (category, urgency, sentiment, summary, and whether it needs a human) to the n8n Data Table email_triage_log. Creates a Gmail draft reply addressed to the sender and attached to the original thread. Sends an urgent alert email to your chosen address when the email is marked High urgency, otherwise it only drafts and logs. Setup Connect Gmail OAuth2 credentials for the Gmail trigger, draft creation, and urgent alert steps. Add Anthropic credentials and ensure the workflow uses the Claude Sonnet 4.6 model. Replace the placeholder recipient in the urgent alert email with your real alert inbox address (for example, you@company.com). Confirm the n8n Data Table email_triage_log exists (or select/create it) so triage records can be written. An n8n automation workflow template by Swapnil Mandloi.
Swapnil Mandloi
web
free
No benchmark results have been added yet.