Summarize Gmail emails with Gemini and send an HTML action digest
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs on a schedule (every 12 hours) (plus 1 other trigger). Along the way it connects Google Gemini Chat Model and Gmail.
How it runs
Trigger: On a schedule (every 12 hours) (plus 1 other trigger).
- Config (edit me) (Edit Fields (Set)): sets 1 field: recipientEmail
- Compute receivedAfter (now - 12h) (Date & Time): formats or calculates dates
- Fetch Gmail emails (receivedAfter) (Gmail): get many
- Normalize email fields (From/To/snippet/messageId) (Edit Fields (Set)): sets 8 fields: id, Body, From…
- Filter: Inbox only (If): checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Build Gmail “Open message” link (Edit Fields (Set)): sets 1 field: link
- AI: extract summary, action, priority (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; output parser: Structured Output Parser
- Send “no new emails” email (Gmail): uses Gmail
- Merge: merges the data from its input branches
…plus 2 more steps. See the full node list below.
Services it uses
Other Google Gemini + Gmail templates (518)
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 (12)
- Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - No Operation, do nothing
n8n-nodes-base.noOp - Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Date & Time
n8n-nodes-base.dateTime - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - AI Agent
@n8n/n8n-nodes-langchain.agent - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate
From the author
Who’s it for This template is for anyone who wants a quick, structured inbox review (founders, freelancers, support, operations) without reading every email. What it does Every 12 hours, the workflow checks Gmail for emails received in the last 12 hours, then…