Templates / Create AI-summarized email digests from Gmail labels with OpenAI O4-Mini

Create AI-summarized email digests from Gmail labels with OpenAI O4-Mini

Ready for 3.0

by German Velibekov · 2,923 views · created 2025-07-10 · Personal Productivity, AI Summarization

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 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).

  1. Get mails (last 24h) (Gmail): get many
  2. If: checks a condition and branches into true / false
  3. Summarization Mails (Summarization Chain): summarizes text with AI, with model: OpenAI Chat Model; document loader: Default Data Loader
  4. Edit Fields (Edit Fields (Set)): sets 3 fields: output.text, subject, headers.from
  5. Combine Subject and Body (Code): runs custom JavaScript code
  6. Send Digested mail (Gmail): uses Gmail

Services it uses

OpenAI Chat ModelGmail

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)

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…

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