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
Automate daily email summaries with n8n and OpenAI

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

Learn how to Build this Workflow with AI:

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.


Automate daily email summaries with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.