Summarize Gmail emails with Gemini and send an HTML action digest
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 summarizes each email and extracts the next action plus a priority level (high/normal/low). It generates a direct Gmail “Open message” link for each item (using rfc822msgid) and sends one clean HTML digest email. If there are no new emails, it sends a short “No new emails” message instead.
How to set up
- Connect your Gmail OAuth2 credentials in these nodes: Fetch Emails, Send Summary, No Emails.
- Connect your Gemini credentials in Google Gemini Chat Model.
- Update the recipient email in Send Summary and No Emails (sendTo), or replace it with a single variable in a Config/Set node.
- Click Test workflow once, then activate the workflow.
Requirements
Gmail account + Gmail OAuth2 credentials in n8n.
Google Gemini API access.
Recommended model Use Gemini 2.5 Flash for fast, reliable structured output. If the model is not available in your region/account, select the closest available Gemini model.
How to customize the workflow
Change the lookback window (12 hours → 24 hours, etc.) by editing the Date/Time calculation.
Adjust the AI prompt rules (priority criteria, action wording, output fields).
Modify the HTML digest design to match your branding.
Remove or change the Inbox-only filter if you want to include other labels (Sent/Other).
Related Templates
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
📰 AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Auto-classify Gmail emails with AI and apply labels for inbox organization
Who is this for? Professionals and individuals who receive high volumes of emails, those who want to automatically organ...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments