Templates / AI-powered lead email classification & auto-reply with GPT-4o and Gmail

AI-powered lead email classification & auto-reply with GPT-4o and Gmail

Ready for 3.0

by Rodrigo ✓ · 2,034 views · created 2025-08-13 · AI Chatbot, 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-10-19.

What this workflow does

This AI workflow has 6 nodes and runs when a new email arrives over IMAP. Along the way it connects Gmail and OpenAI.

How it runs

Trigger: When a new email arrives over IMAP.

  1. Filter leads (OpenAI): uses OpenAI
  2. Filter: keeps only the items that match a condition
  3. Reply with customized message (OpenAI): uses OpenAI
  4. Get Message (Gmail): get many
  5. Reply to Message (Gmail): reply

Services it uses

GmailOpenAI

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

From the author

How it works This workflow automatically responds to incoming emails identified as potential leads using AI-generated text. It connects to your email inbox via IMAP, classifies incoming messages with an AI model, filters out non-leads, and sends a…

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