Templates / Triage inbound email with IMAP, custom AI HTTP APIs and SMTP

Triage inbound email with IMAP, custom AI HTTP APIs and SMTP

Ready for 3.0

by Ck Lu · 18 views · created 2026-09-19 · Ticket Management, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 14 nodes and runs on a schedule (every day) (plus 3 other triggers). It uses only n8n's built-in nodes.

How it runs

Trigger: On a schedule (every day) (plus 3 other triggers).

  1. Normalize Email Message (Code): runs custom JavaScript code
  2. Classify Email Content (HTTP Request): calls an HTTP API (POST)
  3. Draft AI Reply (HTTP Request): calls an HTTP API (POST)
  4. Determine Approval Requirement (Code): runs custom JavaScript code
  5. If: checks a condition and branches into true / false
  6. Send SMTP Reply (Send Email): sends an email over SMTP
  7. Queue for Human Approval (Code): runs custom JavaScript code
  8. Log Sent Email (HTTP Request): calls an HTTP API (POST)
  9. Log Awaiting Approval (HTTP Request): calls an HTTP API (POST)
  10. Notify Approver for Review (HTTP Request): calls an HTTP API (POST)

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

Quick overview This workflow triages inbound email by fetching messages via IMAP (or receiving them via webhook), sending the content to external AI HTTP endpoints to classify and draft a reply, then either routes the draft for human approval or replies via…

Excerpt from Ck Lu's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.