Templates / Auto-detect actionable emails with OpenAI & get alert message on Teams via flow

Auto-detect actionable emails with OpenAI & get alert message on Teams via flow

Ready for 3.0

by Eumentis · 624 views · created 2025-08-08 · Personal Productivity, Multimodal AI

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

How it runs

Trigger: When a new email arrives over IMAP.

  1. OpenAI: uses OpenAI
  2. Extract mail details (Edit Fields (Set)): sets or maps fields
  3. Is mail actionable (If): checks a condition and branches into true / false
  4. Build gmail search URL (Code): runs custom JavaScript code
  5. Send alert to MS team (HTTP Request): calls an HTTP API (POST)

Services it uses

OpenAI

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

From the author

What It Does This workflow automatically runs when a new email is received in the user's Gmail account. It sends the email content to OpenAI (GPT-4.1-mini), which intelligently determines whether the message requires action. If the email is identified as…

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