Skip to main content

Generate automated daily email digests with Gmail and GPT-3.5 via OpenRouter

Workflow preview

Workflow preview
100%
Generate automated daily email digests with Gmail and GPT-3.5 via OpenRouter preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI Powered Daily Gmail Digest Summary using LangChain & OpenRouter This n8n template helps you automatically summarize your daily Gmail messages using OpenRouter's GPT model via LangChain. It gener...

Best for

  • Personal Productivity automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

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

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate automated daily email digests with Gmail and GPT-3.5 via OpenRouter
Workflow name
Generate automated daily email digests with Gmail and GPT-3.5 via OpenRouter

AI-Powered Daily Gmail Digest Summary using LangChain & OpenRouter

This n8n template helps you automatically summarize your daily Gmail messages using OpenRouter's GPT model via LangChain. It generates a structured email digest highlighting key information, tasks, issues, and action items — all delivered to your inbox every morning.

Who’s it for

  • Busy professionals who want a quick overview of their daily emails
  • Founders or managers needing to track team or client communication
  • Anyone looking to automate inbox triage and reduce time spent on emails

How it works / What it does

  • This n8n workflow runs every morning at 7 AM, automatically:
  1. Fetches emails from the last 24 hours
  2. Collects important fields: sender, subject, and snippets
  3. Feeds them into an AI-powered agent (OpenRouter + LangChain)
  4. The AI:
    • Extracts key topics, tasks, deadlines, and issues
    • Formats the info clearly with a bullet-point summary
  5. Sends the final summarized report to your inbox

How to set up

  1. Clone or import the workflow into your n8n instance
  2. Replace <Your Email ID> in the Code node with your actual Gmail address (or remove if not needed)
  3. Ensure your Gmail and OpenRouter credentials are set up in n8n
  4. Update the recipient email in the Send Summary node if you want it sent to a fixed address
  5. Activate the workflow once tested

How to customize the workflow

  • Change Summary Style: Edit the system message in the LangChain Agent to match your tone (e.g. casual, business, detailed)
  • Adjust Digest Time: Change the Schedule Trigger to any preferred hour
  • Customize Recipients: Change or add recipients dynamically or statically in the Gmail send node
  • Filter Email Type: Modify the Gmail query in the Code node to include filters like from:, is:unread, subject:project

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 - Schedule Trigger

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

Block 2 - Aggregate

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

Block 3 - OpenRouter Chat Model

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

Block 4 - Sticky Note

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

Block 5 - Fetch Email Which is Unread

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

Block 6 - Summary

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

Block 7 - Send A email of Summary

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

Block 8 - Fetch Yeasterday's Date

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

3. Summary Table

Workflow Generate automated daily email digests with Gmail and GPT-3.5 via OpenRouter
Complexity intermediate
Nodes 8
Categories Personal Productivity, AI Summarization
Author Parth Pansuriya
Published 25 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6421/6421.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 Generate automated daily email digests with Gmail and GPT-3.5 via OpenRouter do?

AI Powered Daily Gmail Digest Summary using LangChain & OpenRouter This n8n template helps you automatically summarize your daily Gmail messages using OpenRouter's GPT model via LangChain. It gener...

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 Personal Productivity, AI Summarization use case.