Block 1 - Get many messages
- Type / Role
- n8n-nodes-base.gmail - gmail
- Config choices
- Version 2.1
This workflow is provided as-is. Please review and test before using in production.
Summary Every day at a set time, this workflow fetches yesterday’s newsletters from Gmail, summarizes each email into concise topics with an LLM, merges all topics, renders a clean HTML digest, and...
n8n-nodes-base.gmail, n8n-nodes-base.splitinbatches, n8n-nodes-base.code, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.openai
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Vlad Arbatov.
Original n8n.io sourceEvery day at a set time, this workflow fetches yesterday’s newsletters from Gmail, summarizes each email into concise topics with an LLM, merges all topics, renders a clean HTML digest, and emails it to your inbox.
Node map
| Node | Type | Purpose |
|---|---|---|
| Schedule Trigger | Trigger | Run at a specific time each day |
| Get many messages | Gmail (getAll) | Search emails since yesterday with filters |
| Loop Over Items | Split in Batches | Iterate messages one-by-one |
| Get a message | Gmail (get) | Fetch full message payload |
| Get message data | Code | Extract HTML/subject/from/date; normalize sender and date |
| Clean | Code | Reformat date and forward fields to LLM |
| Message a model | OpenAI | Summarize email into JSON topics |
| Merge | Code | Merge topics from all emails |
| Create template | Code | Render a styled HTML email digest |
| Send a message | Gmail (send) | Deliver the digest email |
Before you start
Setup instructions
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Create daily newsletter digests from Gmail using GPT-4.1-mini |
|---|---|
| Complexity | intermediate |
| Nodes | 13 |
| Categories | Personal Productivity, Multimodal AI |
| Author | Vlad Arbatov |
| Published | 11 Aug 2025 |
Use the JSON export at /data/workflows/7255/7255.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Summary Every day at a set time, this workflow fetches yesterday’s newsletters from Gmail, summarizes each email into concise topics with an LLM, merges all topics, renders a clean HTML digest, and...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Personal Productivity, Multimodal AI use case.