Templates / Triage and reply to email threads with GPT-5.2, IMAP, Gmail, and ESP suppression

Triage and reply to email threads with GPT-5.2, IMAP, Gmail, and ESP suppression

Ready for 3.0

by Nocode Expert ✓ · 107 views · created 2026-07-03 · Ticket Management, AI Chatbot

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 AI workflow has 19 nodes and runs when a new email arrives over IMAP. Along the way it connects OpenAI and Gmail.

How it runs

Trigger: When a new email arrives over IMAP.

  1. Filter: keeps only the items that match a condition
  2. Parse Email Content (Code): runs custom JavaScript code
  3. Prepare AI Prompt (Code): runs custom JavaScript code
  4. Transfer Execution Data (Execution Data): uses Execution Data
  5. OpenAI: uses OpenAI
  6. Normalize AI Response (Code): runs custom JavaScript code
  7. Route by Email Status (Switch): routes items into 2 branches
  8. Fetch Email Thread ID (Gmail): work with thread
  9. Fetch Email Thread ID (Gmail): work with thread
  10. Reply to Email - Thread ID (Gmail): reply

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

Services it uses

OpenAIGmail

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 (9)

From the author

Quick overview Automatically read inbound email replies, use AI to detect intent and sentiment, and send natural in-thread responses. Opt-out requests are confirmed, pushed to your ESP suppression list, and logged. A hands-off reply layer that keeps your…

Excerpt from Nocode Expert'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.