🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Gmail + OpenRouter: daily inbox digest on autopilot

Lisa Granqvist Partner Workflow Automation Expert

Your inbox can look “fine” and still quietly wreck your morning. You scan, you flag, you swear you’ll reply later, and somehow the important threads get buried under newsletters, CC storms, and half-finished conversations.

This is exactly where Gmail digest automation pays off. A project manager trying to brief leadership feels it first, but a customer success lead and a small agency owner get hit too. Same chaos, different consequences.

This workflow turns the last 24 hours of targeted Gmail messages into one clean, shareable morning brief using OpenRouter. You’ll see what it does, the outcomes you can expect, and what you need to run it.

How This Automation Works

The full n8n workflow, from trigger to final output:

n8n Workflow Template: Gmail + OpenRouter: daily inbox digest on autopilot

The Problem: Daily inbox review turns into unpaid project work

The worst part about “checking email” is that it’s not one task. It’s twenty micro-decisions: what matters, what can wait, who owns the follow-up, and which thread hides the real risk. If you’re scanning multiple stakeholders (or specific senders like clients, vendors, leadership), you can lose about an hour a day just reconstructing context. And because it’s manual, it’s inconsistent. One day you capture action items. The next day you miss the one sentence that changes the plan.

It adds up fast. Here’s where it breaks down.

  • You reread the same long threads because yesterday’s context isn’t stored anywhere useful.
  • Important issues get trapped in “FYI” emails, so they surface late, usually in a meeting.
  • Action items live in someone’s head, which means handoffs are shaky and follow-through is hit-or-miss.
  • Sharing a daily status means copying snippets into Slack or docs, and small errors creep in.

The Solution: A scheduled AI digest that summarizes, flags issues, and assigns next steps

This n8n workflow creates a morning mail summary automatically, every day, so you start with clarity instead of cleanup. At 8 AM (configured in the schedule trigger), it pulls the last 24 hours of Gmail messages from the senders you care about, using dynamic date filtering so you’re not stuck adjusting queries. It then aggregates key fields like sender, recipients, and snippet into one structured bundle. That bundle goes into an AI Agent powered by OpenRouter (via LangChain in n8n), which generates a consistent report: a plain-language summary, highlighted issues, and specific action items. Finally, the workflow sends a styled HTML email digest to you or your team, with CC support so everyone sees the same “source of truth.”

The workflow starts on a daily schedule, then retrieves emails for the last day from targeted senders. After it aggregates the details, the AI agent produces a structured brief using memory to keep continuity across days. The final output is a clean HTML email you can forward, archive, or use as your daily standup prep.

What You Get: Automation vs. Results

Example: What This Looks Like

Say you track 3 key senders (a client, a vendor, and internal leadership) and you usually spend about 15 minutes per sender to piece together updates. That’s roughly 45 minutes every weekday, plus the time to write a clean recap. With this workflow, the “work” is basically zero: the schedule fires at 8 AM, the AI generates the brief in a couple minutes, and the email lands in your inbox ready to forward. Over a week, that’s about 4 hours back for higher-value work.

What You’ll Need

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Gmail for reading emails and sending the digest.
  • OpenRouter to run the AI summarization model.
  • OpenRouter API key (get it from your OpenRouter dashboard).

Skill level: Beginner. You’ll connect Gmail, paste an API key, and edit a few text fields (senders, recipients, and the prompt).

Don’t want to set this up yourself? Talk to an automation expert (free 15-minute consultation).

How It Works

A scheduled trigger starts the day. The workflow runs automatically at your chosen time (8 AM IST by default), so the digest is waiting when you sit down.

Gmail messages are pulled with a “last 24 hours” filter. Instead of scanning your whole inbox, it retrieves emails from the senders you define and collects the useful bits like who sent it, who was included, and a snippet.

An AI agent turns raw threads into a structured brief. OpenRouter generates a consistent output (summary, issues, actions, follow-ups). A memory buffer keeps continuity so yesterday’s open loops can carry into today’s digest, which is honestly where these systems go from “nice” to “dependable.”

The digest is delivered as a styled HTML email. It sends to your recipient list with optional CC, which makes it easy to share with a team without reformatting anything.

You can easily modify the sender filter to include more stakeholders based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Schedule Trigger

Set the daily morning schedule that initiates the email digest workflow.

  1. Add and open Scheduled Morning Trigger.
  2. Set the schedule rule to trigger at hour 7 (as configured in ruleintervaltriggerAtHour).
  3. Verify the connection flow from Scheduled Morning Trigger to Retrieve Emails - Last Day.

Step 2: Connect Gmail and Retrieve Recent Emails

Pull the previous day’s emails from Gmail using a date-based search query.

  1. Open Retrieve Emails - Last Day and set Operation to getAll.
  2. Enable Return All by setting it to true.
  3. Set Filters → q to {{ (() => { const yesterday = new Date(); yesterday.setDate(yesterday.getDate() - 1); return `[YOUR_EMAIL] after:${yesterday.getFullYear()}/${(yesterday.getMonth() + 1).toString().padStart(2, '0')}/${yesterday.getDate().toString().padStart(2, '0')}`; })() }} so the search is time-bounded.
  4. Credential Required: Connect your Gmail credentials (no credentials are pre-configured for Retrieve Emails - Last Day).

⚠️ Common Pitfall: Replace [YOUR_EMAIL] in the search query with your real email address; otherwise, the search will return empty results.

Step 3: Aggregate Email Data and Configure the AI Agent

Aggregate key email fields, then pass them to the AI agent with memory and language model connections.

  1. Open Aggregate Email Details AM and set Include to specifiedFields.
  2. Set Aggregate to aggregateAllItemData.
  3. Set Fields To Include to id, From, To, CC, snippet.
  4. Open Email Digest Agent and confirm Prompt Type is set to define and the System Message contains the provided email summarization instructions.
  5. Ensure OpenRouter Chat Engine is connected as the language model for Email Digest Agent. Credential Required: Connect your openRouterApi credentials in OpenRouter Chat Engine.
  6. Ensure Basic Memory Buffer is connected as memory for Email Digest Agent. Add any required credentials to the parent node (Email Digest Agent), not the memory sub-node.

Keep the aggregation fields minimal and relevant (as configured) to improve AI summarization quality and reduce token usage.

Step 4: Configure the Email Summary Output

Send the AI-generated digest as a formatted HTML email.

  1. Open Dispatch Morning Summary and set Send To to [YOUR_EMAIL].
  2. Set Message to the provided HTML template, including the dynamic sections: {{ $json.message.content.summary_of_emails.map(email => `<li>${email}</li>`).join('') }} and {{ $json.message.content.actions.map(action => ` <li> <span class="action-item">${action.name}:</span> <span class="action-detail">${action.action}</span> </li> `).join('') }}.
  3. Set Subject to Email Digest - {{ new Date(new Date().setDate(new Date().getDate() - 1)).toLocaleDateString('en-GB', { day: '2-digit', month: 'short', year: 'numeric' }) }}-00:00 to {{ new Date(new Date().setDate(new Date().getDate())).toLocaleDateString('en-GB', { day: '2-digit', month: 'short', year: 'numeric' }) }}-07:00AM.
  4. Under Options, set CC List to [YOUR_EMAIL] and Append Attribution to false.
  5. Credential Required: Connect your Gmail credentials (no credentials are pre-configured for Dispatch Morning Summary).

⚠️ Common Pitfall: If the AI output structure doesn’t include summary_of_emails or actions, the HTML will render blank sections. Verify the agent output schema before production.

Step 5: Test and Activate Your Workflow

Run a manual test to confirm email retrieval, AI summarization, and delivery.

  1. Click Execute Workflow to run the workflow manually from Scheduled Morning Trigger.
  2. Confirm Retrieve Emails - Last Day returns items and Aggregate Email Details AM aggregates the fields correctly.
  3. Verify Email Digest Agent produces a structured output with summaries and actions.
  4. Check your inbox for the formatted digest sent by Dispatch Morning Summary.
  5. When satisfied, toggle the workflow to Active so it runs at 7:00 AM automatically.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Common Gotchas

  • Gmail credentials can expire or need specific permissions. If things break, check the n8n Credentials screen and confirm the Gmail scope/connection first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice early or you’ll be editing outputs forever.

Frequently Asked Questions

How long does it take to set up this Gmail digest automation automation?

About 20–40 minutes if your Gmail and OpenRouter accounts are ready.

Do I need coding skills to automate Gmail digest automation?

No. You’ll mostly connect accounts and edit a few fields like sender filters, recipients, and the summarization prompt.

Is n8n free to use for this Gmail digest automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenRouter model costs (usually pennies per digest, depending on length and model).

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I customize this Gmail digest automation workflow for different senders and multiple teams?

Yes, and it’s a common tweak. Change the Gmail retrieval step (“Retrieve Emails – Last Day”) to add or remove senders, labels, or search queries, then adjust the “Dispatch Morning Summary” email to send different digests to different groups. You can also tailor the “Email Digest Agent” prompt so one team gets action items while another gets risks and deadlines. If you want continuity, keep the memory buffer; if you want a “clean slate” digest every day, reduce or remove the memory window.

Why is my Gmail connection failing in this workflow?

Usually it’s expired OAuth access or the wrong Gmail account connected. Reconnect Gmail in n8n Credentials, then confirm the workflow is allowed to read messages and send email. Also check that your Gmail search query still matches real mail (filters that are too strict can look like a “failure” because zero emails are returned). If you’re running this in a company Google Workspace, admin restrictions can block access until the app is approved.

How many emails can this Gmail digest automation automation handle?

A few hundred emails per day is realistic for most setups.

Is this Gmail digest automation automation better than using Zapier or Make?

It depends on how “smart” you need the digest to be. Zapier and Make can absolutely send scheduled emails, but once you want structured summarization, memory across days, and more complex branching without paying per step, n8n is often the better fit. The OpenRouter/LangChain agent setup is also easier to control in n8n because you can tune prompts, inputs, and formatting in one place. If you only want a simple “top 5 emails” list, Zapier may feel faster to set up. If you’re unsure, Talk to an automation expert and we’ll point you to the simplest option.

Once this is running, your inbox stops being the place you “figure things out.” It becomes an input, and your daily brief becomes the decision point.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal