Automate daily email digests using this powerful n8n workflow. Summarize labeled Gmail messages with OpenAI (GPT-4o Mini) and send a consolidated, formatted HTML report.
Download this n8n workflow template and start using it instantly.
Professionals overwhelmed by daily newsletters and industry updates.
Content curators and researchers who need efficient summarization.
Teams looking for automated daily reporting from specific email channels.
Anyone seeking pre-built n8n templates to leverage AI for email management.
Information overload is a major challenge in modern communication. This robust n8n workflow provides a solution by automating the creation of a daily, curated digest of your most important emails. By utilizing the Gmail n8n node to filter emails based on a specific label and leveraging OpenAI’s advanced models (specifically GPT-4o Mini) for summarization, this automation ensures you only review concise, key takeaways once per day.
This sophisticated n8n workflow combines AI processing with custom code to format the summaries beautifully in HTML, preserving original links and sender context. This is one of the most practical n8n templates for transforming chaotic inboxes into structured knowledge summaries, delivering significant time savings and clarity.
This automation initiates using an n8n trigger and follows a clear, multi-stage logic flow:
Get mails (last 24h) Gmail n8n node fetches all emails received within the last 24 hours that match a specified Gmail label ID (e.g., 'NEWSLETTER').No Operation node, preventing an empty digest email.Summarization Mails n8n node. This uses the OpenAI Chat Model n8n node (configured for GPT-4o Mini) along with a highly customized prompt to generate HTML-formatted, bulleted summaries that include link preservation.Edit Fields n8n node extracts the AI-generated summary, the original subject line, and the sender's details.Combine Subject and Body Code n8n node is crucial. It iterates through all summarized items, structuring them into a single, comprehensive HTML block using H3 headings for the subject and including the sender's email address.Send Digested mail Gmail n8n node uses the consolidated content as the email body, sending the complete, AI-summarized daily digest to a specified recipient with a dynamically generated subject line that includes the current date. This completes the daily n8n workflow cycle.To deploy this powerful n8n workflow, follow these setup steps:
Get mails (last 24h) n8n node, replace YOURLABELID with the actual Gmail label ID you wish to track and summarize.OpenAI Chat Model n8n node requires access to the API.Send Digested mail n8n node, update the sendTo parameter to your preferred email address.This n8n workflow utilizes a specialized set of nodes to manage scheduling, retrieval, AI processing, and final delivery:
Schedule Trigger (n8n trigger): Sets the automation to run daily at 9:00 AM.
Get mails (last 24h) (Gmail n8n node): Operation is 'getAll'. Key configuration includes filtering by labelIds (YOURLABELID) and receivedAfter (last 24 hours), ensuring only relevant and recent emails are processed by this n8n node.
If (Core Logic n8n node): Checks if the item count ($items().length) is greater than zero, determining whether to proceed with expensive AI operations.
OpenAI Chat Model (LangChain n8n node): Configured to use the o4-mini model for cost-effective, high-quality summarization. Provides the underlying AI engine for the LangChain summarization n8n node.
Summarization Mails (LangChain n8n node): Uses the 'stuff' method. The custom prompt is highly detailed, instructing the AI to create concise, HTML-formatted summaries, use bullet points, and preserve external links.
Combine Subject and Body (Code n8n node): This custom JavaScript n8n node aggregates the individually summarized emails into a single combinedContent output item, formatting each summary with an H3 header containing the subject and truncated sender address.
Learn how to build a robust n8n workflow for web scraping, AI data extraction with Claude, vector embedding generation using Ollama, and persistence in a Qdrant vector database. This n8n workflow template is perfect for RAG systems.

Use this powerful n8n workflow to automate web scraping with Bright Data, process and structure data using the Gemini AI agent, and create RAG-ready vector datasets in Pinecone.

Automate YouTube Shorts creation using this advanced n8n workflow. Leverage OpenAI for scripts and prompting, and a rendering API to generate images, audio, and assemble the final vertical video automatically.

Deploy an adaptive RAG system using this advanced n8n workflow. It classifies user queries (Factual, Analytical, Opinion) and tailors retrieval strategies with Google Gemini and Qdrant, ensuring high accuracy. This n8n template is ideal for complex knowledge bases.

Use this powerful n8n workflow to automatically generate animated podcast videos from scratch, leveraging OpenAI (GPT/DALL-E) for content, Hedra for video synthesis, and Google Drive for storage.

Generate animated illustrations by chaining Midjourney image generation with Kling video creation using this powerful, automated n8n workflow. Integrate AI APIs and manage asynchronous tasks effortlessly with key n8n node logic.

Passionate about building intelligent systems and scalable infrastructure.







































