Templates / Triage shared inbox emails with OpenAI and human-in-the-loop approval

Triage shared inbox emails with OpenAI and human-in-the-loop approval

Ready for 3.0

by Anthony Höhener · 1 views · created 2026-10-22 · Ticket Management, AI RAG

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This AI workflow has 47 nodes and runs manually, when you click “Execute workflow” (plus 4 other triggers). Along the way it connects Gmail, Microsoft Outlook and OpenAI Chat Model.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 4 other triggers).

  1. Create table inbox_log (Data table): create (table)
  2. Configuration (Edit Fields (Set)): sets 15 fields: provider, company_name, sender_email…
  3. Already processed? (Data table): row not exists
  4. Create table inbox_knowledge (Data table): create (table)
  5. Normalize email (Code): runs custom JavaScript code
  6. Log: received (Data table): insert (row)
  7. Example knowledge entries (Code): runs custom JavaScript code
  8. Process each email separately (Execute Sub-workflow): calls another n8n workflow
  9. Automated or newsletter? (If): checks a condition and branches into true / false
  10. Insert knowledge entries (Data table): insert (row)

…plus 29 more steps. See the full node list below.

Services it uses

GmailMicrosoft OutlookOpenAI Chat Model

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (New email (Gmail)).
Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (19)

From the author

Quick overview This workflow monitors a shared IMAP inbox, uses OpenAI to classify each incoming email and draft a short reply, then emails the draft to an approver for one-click approval before sending the response back to the original sender. How it works…

Excerpt from Anthony Höhener'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.