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
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
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...
Instagram Full Profile Scraper with Apify and Google Sheets
📸 Instagram Full Profile Scraper with Apify and Google Sheets This n8n workflow automates the process of scraping ful...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments