Skip to main content

Daily Email Digest with AI Summarization using Gmail, OpenRouter and LangChain

Workflow preview

Workflow preview
100%
Daily Email Digest with AI Summarization using Gmail, OpenRouter and LangChain preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Morning Mail Summary Ai Agent Simplify your mornings with this automated email summary workflow in n8n, designed for teams and individuals who want a quick, actionable snapshot of their inbox—ev...

Best for

  • Ticket Management automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.gmail, n8n-nodes-base.aggregate, n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.lmchatopenrouter, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Roshan Ramani.

Original n8n.io source

1.1 Workflow description

Title
Daily Email Digest with AI Summarization using Gmail, OpenRouter and LangChain
Workflow name
Daily Email Digest with AI Summarization using Gmail, OpenRouter and LangChain

📧 Morning Mail Summary Ai Agent

Simplify your mornings with this automated email summary workflow in n8n, designed for teams and individuals who want a quick, actionable snapshot of their inbox—every day, at a glance.

📌 Features

  • Fully Automated: Triggers daily at 8 AM IST
  • Targeted Extraction: Fetches messages from specific senders with dynamic date filtering
  • Structured Data Aggregation: Pulls key fields (sender, recipients, snippet)
  • AI-Powered Summarization: Uses LangChain + OpenRouter to generate:
    • Insightful summaries
    • Highlighted issues
    • Assigned action items
  • Memory-Enhanced Context: Maintains continuity across days
  • Stylish HTML Email Output: Responsive design with:
    • Summary section
    • Action items
    • Branded footer
  • Team-Ready Sharing: Auto-distributes to team with CC support

🛠️ How It Works

  1. Trigger: Daily schedule in n8n
  2. Fetch: Retrieves last 24h emails from target sender
  3. Organize: Aggregates email metadata
  4. Summarize: AI agent produces structured report:
    • Key updates
    • Critical issues
    • Actionable tasks
  5. Send: Emails digest to team

🎯 Ideal For

  • Project managers needing stakeholder briefings
  • Customer success teams tracking communications
  • Leadership staying informed efficiently
  • Anyone streamlining email review

📦 Included Resources

  • Complete n8n workflow JSON (6 nodes)
  • Prompt template for structured summarization (Summary, Issues, Actions, Follow‑Ups). -Styled HTML email template, with responsive design and branding sections.

🆓 Get Started

  1. Import JSON into n8n
  2. Configure:
    • Gmail / OpenRouter credentials
    • Recipient lists
    • Custom prompts
  3. Modify freely for your use case

⭐ Benefits

  • Time saved: Skip inbox digging
  • 🔍 Focus: See only what matters
  • Clarity: Structured tasks & deadlines
  • 🔄 Consistency: Daily alignment for teams

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Fetch Emails - Past 24 Hours

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 2 - Organize Email Data - Morning

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 3 - Send Summary - Morning

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 4 - Daily 8AM Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 5 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 6 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 7 - Email Summarizer

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Daily Email Digest with AI Summarization using Gmail, OpenRouter and LangChain
Complexity intermediate
Nodes 8
Categories Ticket Management, AI Summarization
Author Roshan Ramani
Published 17 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5003/5003.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Daily Email Digest with AI Summarization using Gmail, OpenRouter and LangChain do?

Morning Mail Summary Ai Agent Simplify your mornings with this automated email summary workflow in n8n, designed for teams and individuals who want a quick, actionable snapshot of their inbox—ev...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Ticket Management, AI Summarization use case.