Create AI-summarized email digests from Gmail labels with OpenAI O4-Mini
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-10-19.
What this workflow does
This AI workflow has 11 nodes and runs on a schedule (every day at 09:00). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: On a schedule (every day at 09:00).
- Get mails (last 24h) (Gmail): get many
- If: checks a condition and branches into true / false
- Summarization Mails (Summarization Chain): summarizes text with AI, with model: OpenAI Chat Model; document loader: Default Data Loader
- Edit Fields (Edit Fields (Set)): sets 3 fields: output.text, subject, headers.from
- Combine Subject and Body (Code): runs custom JavaScript code
- Send Digested mail (Gmail): uses Gmail
Services it uses
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 (10)
- If
n8n-nodes-base.if - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - No Operation, do nothing
n8n-nodes-base.noOp - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Summarization Chain
@n8n/n8n-nodes-langchain.chainSummarization - Gmail
n8n-nodes-base.gmail - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Transform email overload into actionable insights with this automated daily digest workflow that intelligently summarizes categorized emails using AI. Who's…