Workflow Templates

Email Filtering + AI Summary Log (n8n + Groq)

A Gmail trigger polls for new mail, filters it by sender rules, has a Groq-hosted model write a short summary, and appends sender, date, subject, and summary as a row in Google Sheets.

Visit site
Difficulty
Beginner
Pricing
Free
Platform
n8n
Tools involved
n8n GmailGroqGoogle Sheets

A four-node email pipeline. A Gmail trigger polls the inbox on a schedule, a Code node extracts sender, date, subject, and body and applies a conditional filter, a Groq-hosted model writes a short summary, and the whole row lands in Google Sheets. The problem it solves is not “which email matters most” — it is “there are too many emails to read.” Every message gets compressed to a sentence and stored in a searchable, sortable table.

Template page stats: author arre, published 2025-07-04, roughly 1,823 views (collected 2026-07-27).

How it differs from the Gmail AI Email Manager

We already list Gmail AI Email Manager (n8n + Claude). The audiences overlap, but the two solve different problems:

This template (summary log)Gmail AI Email Manager
GoalCompress mail into summaries, stored as a tableLabel mail so priority is obvious
Where output landsOne row per email in Google SheetsSix label categories inside Gmail
ModelOpen models on Groq (free tier available)Anthropic Claude (usage-based)
Signal usedThe body of a single emailHeaders plus prior history with that sender
Better forTeams that need to search, aggregate, or hand off laterIndividuals deciding what to read right now

In short: use the Email Manager to make the inbox feel clean now; use this template to keep a queryable record of what was communicated. They do not conflict — running both is reasonable, one for live triage and one for archiving.

What it does

  • Polls the Gmail inbox for new messages on a configurable interval
  • Filters with a conditional node (sender validation by default) so only relevant mail is processed
  • Extracts sender, date, subject, and body
  • Generates a concise summary with a model hosted on Groq
  • Appends those fields plus the AI summary as a row in Google Sheets

Prerequisites

  • n8n, cloud or self-hosted
  • Gmail OAuth2 credentials
  • Google Sheets OAuth2 credentials
  • A Groq API key, or another model node in its place
  • A Google Sheets document with headers already set up

How to use

  1. Import the template and configure the Gmail, Google Sheets, and Groq credentials.
  2. Create the Sheets document and paste its document ID into the Sheets node.
  3. Rewrite the sender-validation logic in the conditional node — this is the one part you must customize.
  4. Adjust the Gmail trigger’s polling frequency and label filters.
  5. Edit the AI prompt to set summary style (one-line gist, action-item extraction, sentiment call).
  6. Activate the workflow, then review the first few dozen rows before locking the rules in.

Use cases

  • High-volume business inboxes that need fast gist extraction
  • Support teams keeping and analyzing a communication record
  • Project managers tracking multi-party email threads
  • Any team that wants email turned into a searchable archive

Notes

  • The default filter is sender validation. Shipping it unchanged will either drop mail you want or capture mail you don’t.
  • The Groq node can be swapped for any other model node without touching the rest of the structure.
  • Gmail, Google Sheets, and Groq are overseas services; mainland China access typically requires an international network.
  • Rows are appended continuously and are not easily undone — point it at a test sheet first.
  • Groq offers a free tier; check its official pricing page for current limits and rates.

Last updated: July 27, 2026

Related solutions