Create daily newsletter digests from Gmail using GPT-4.1-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-12-01.
What this workflow does
This AI workflow has 10 nodes and runs on a schedule (every day at 16:00). Along the way it connects Gmail and OpenAI.
How it runs
Trigger: On a schedule (every day at 16:00).
- Get many messages (Gmail): get many
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Merge (Code): runs custom JavaScript code
- Get a message (Gmail): get
- Create template (Code): runs custom JavaScript code
- Get message data (Code): runs custom JavaScript code
- Send a message (Gmail): uses Gmail
- Clean (Code): runs custom JavaScript code
- Message a model (OpenAI): uses OpenAI
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.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (5)
- Gmail
n8n-nodes-base.gmail - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Code
n8n-nodes-base.code - Schedule Trigger
n8n-nodes-base.scheduleTrigger - OpenAI
@n8n/n8n-nodes-langchain.openAi
From the author
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 emails it to your inbox. What this workflow does - Triggers…