AI-powered lead email classification & auto-reply with GPT-4o and Gmail
Ready for 3.0Ready 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.
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.
- Filter leads (OpenAI): uses OpenAI
- Filter: keeps only the items that match a condition
- Reply with customized message (OpenAI): uses OpenAI
- Get Message (Gmail): get many
- Reply to Message (Gmail): reply
Services it uses
Other OpenAI + Gmail templates (1,623)
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)
- Email Trigger (IMAP)
n8n-nodes-base.emailReadImap - Filter
n8n-nodes-base.filter - Gmail
n8n-nodes-base.gmail - OpenAI
@n8n/n8n-nodes-langchain.openAi
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…