Automate Daily Email Summaries Using n8n and OpenAI

Save hours each day by automating the process of fetching, summarizing, and emailing daily email reports with n8n and OpenAI. This workflow fetches your last 24-hour emails, extracts key points, and sends a neat summary to your team.
scheduleTrigger
gmail
openAi
+2
Workflow Identifier: 1095
NODES in Use: Schedule Trigger, Gmail, Aggregate, OpenAI, Sticky Note

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow runs every day at 7 AM.
It gets all emails from the past 24 hours in a Gmail account.
It picks out who sent the email, who got it, and a short preview.
It uses OpenAI’s GPT-4o-mini to make a short summary of emails.
Then it finds any tasks or actions that need doing.
Finally, it sends a nice email with these summaries and actions to the team.
This saves hours of reading time and helps keep everyone on track.


Who Should Use This Workflow

This workflow is for people or teams who get many emails every day.
It helps catch important points fast without reading every mail.


Tools and Services Used

  • n8n platform: To create and run the workflow.
  • Gmail API with OAuth2: To read and send emails securely.
  • OpenAI GPT-4o-mini: To summarize email text and find action items.

How the Workflow Works (Input > Process > Output)

Inputs

  • Gmail account with new emails from last 24 hours.
  • OAuth2 access for Gmail to read/send emails.
  • OpenAI API Key to call GPT-4o-mini for text summarizing.

Processing Steps

  1. Trigger runs every day at 7 AM.
  2. Fetch all emails received in the past 24 hours from Gmail.
  3. Extract key details: sender, recipients, CC, snippet.
  4. Feed email data to OpenAI GPT-4o-mini with a special prompt.
  5. OpenAI returns a JSON with summary points and action items.
  6. Format this into an HTML email.
  7. Send the summary email to the team.

Output

  • Daily email showing key points from all recent emails.
  • List of action items and responsible people clearly shown.
  • Time saved reading emails and fewer missed tasks.

Beginner Step-by-step: How to Use This Workflow in Production

Step 1: Download and Import

  1. Click the Download button on this page to save the workflow JSON file.
  2. Go to the n8n editor.
  3. Choose “Import from File” and upload the downloaded file.

Step 2: Configure Credentials

  1. Add your Gmail OAuth2 credentials in n8n.
  2. Add your OpenAI API Key in the credentials node.

Step 3: Update Workflow Settings

  1. Check the email IDs in the Gmail nodes and change them if needed.
  2. Check and update Send To and CC email addresses in the send email node.
  3. Review the OpenAI prompt and copy/paste the prompt code if necessary.

Step 4: Test the Workflow

  1. Run the workflow manually to make sure it fetches emails and sends summaries.

Step 5: Activate for Daily Use

  1. Turn the workflow Active by switching the toggle in n8n.
  2. The workflow will now run automatically every day.

Customizations and Tips

  • Change the trigger time in the Schedule Trigger node for a different daily run.
  • Add more email fields in the Aggregate node, like subject or date.
  • Adjust the OpenAI prompt to focus on certain projects or urgent topics.
  • Change recipients in the final Gmail node for different teams.
  • Try other OpenAI models if desired.

Troubleshooting

Problem: No emails from Gmail node

Check that Gmail OAuth2 credentials allow reading emails.
Try simpler search like “newer_than:1d” in the query.

Problem: OpenAI API errors or rate limits

Verify API key is correct.
Reduce workflow frequency or upgrade API plan.


Pre-Production Checklist

  • Test Gmail OAuth2 credentials work.
  • Check email query returns expected messages.
  • Test OpenAI API calls with a sample prompt.
  • Run whole workflow manually once to verify.
  • Confirm all email addresses in send node are correct.

Deployment Guide

Switch the workflow to active in n8n.
Workflow runs automatically daily.
Use n8n’s execution logs to see if errors occur.
Monitor output email for success.
You can refine or expand workflow anytime.
For running n8n on own server, see self-host n8n to maintain full control.


Summary

✓ Runs daily at 7 AM to gather last 24 hours of emails.
✓ Summarizes emails with GPT-4o-mini for easy reading.
✓ Shows clear action items with responsible names.
✓ Sends a tidy email to keep the team informed.
✓ Saves hours otherwise spent reading every email.
✓ Reduces missed tasks and communication gaps.


Frequently Asked Questions

Download the workflow file from the page. In n8n editor, use Import from File to upload it. Add Gmail OAuth2 credentials and OpenAI API Key in n8n. Update email addresses if needed. Run the workflow once manually to test. Then activate it for daily automatic runs.
The Gmail node uses a search query to fetch all emails received in the last 24 hours from the specified Gmail account using OAuth2 authentication.
It takes extracted email details and uses a prompt to create a JSON with key summary points and action items from the emails.
Check if Gmail OAuth2 credentials have correct permissions. Test with a simpler search query like “newer_than:1d” to confirm emails exist. Adjust the query if needed.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free