Skip to main content

Daily Gmail inbox digest to Discord with GPT-4.1-mini and PDF conversion

Workflow preview

Workflow preview
100%
Daily Gmail inbox digest to Discord with GPT-4.1-mini and PDF conversion preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Overview Automate your email management with this n8n workflow that fetches, summarizes, and sha...

Best for

  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.discord, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.chainsummarization, n8n-nodes-pdfco.pdfco api, n8n-nodes-base.markdown, n8n-nodes-base.aggregate

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Daily Gmail inbox digest to Discord with GPT-4.1-mini and PDF conversion
Workflow name
Daily Gmail inbox digest to Discord with GPT-4.1-mini and PDF conversion

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

Overview

Automate your email management with this n8n workflow that fetches, summarizes, and shares critical emails from your Gmail inbox. Designed for busy professionals, this workflow runs daily to extract important emails from the past 24 hours, summarizes key details (like credentials, OTPs, deadlines, and action items), converts the summary into a PDF, and sends it to your Discord channel for quick access.

Key Features

  • Scheduled Automation: Triggers daily at 8 PM to process emails from the last 24 hours.
  • Gmail Integration: Retrieves emails labeled "INBOX" and "IMPORTANT" using secure OAuth2 authentication (no hardcoded API keys).
  • Smart Email Parsing: Extracts essential fields (subject, sender, and plain text) while cleaning up URLs, extra lines, and formatting for clarity.
  • AI-Powered Summarization: Uses OpenAI's GPT-4.1-mini to create concise plain text and markdown summaries, highlighting urgent actions with "[Action Required]".
  • PDF Conversion: Converts the markdown summary into a professional PDF using PDF.co API.
  • Discord Notifications: Shares the PDF via a Discord webhook for seamless team communication.

Why Use This Workflow?

  • Save time by automating email triage and focusing on what matters.
  • Stay organized with clear, actionable summaries delivered to Discord.
  • Securely handle sensitive data with proper credential management.
  • Perfect for teams, freelancers, or anyone managing high email volumes.

Setup Instructions

  1. Configure Gmail OAuth2 credentials for secure access.
  2. Set up PDF.co API and Discord webhook credentials.
  3. Customize the schedule or filters as needed.
  4. Activate and let the workflow handle your daily email summaries!

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 - Discord

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

Block 3 - OpenAI Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - HTTP Request

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Summarization Chain

Type / Role
@n8n/n8n-nodes-langchain.chainSummarization - chainSummarization
Config choices
Version 2.1

Block 6 - PDFco Api

Type / Role
n8n-nodes-pdfco.PDFco Api - PDFco Api
Config choices
Version 1

Block 7 - Markdown

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

Block 8 - Aggregate

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

Block 9 - extract required sections from mails

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

Block 10 - get mails from past 24 h

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note1

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

Block 13 - Sticky Note

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

Block 14 - separate text and markdown

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

Block 15 - Sticky Note3

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

Block 16 - Sticky Note4

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

Block 17 - Sticky Note5

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

Block 18 - Sticky Note6

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

3. Summary Table

Workflow Daily Gmail inbox digest to Discord with GPT-4.1-mini and PDF conversion
Complexity advanced
Nodes 18
Categories AI Summarization
Author moosa
Published 07 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8358/8358.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 Gmail inbox digest to Discord with GPT-4.1-mini and PDF conversion do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. Overview Automate your email management with this n8n workflow that fetches, summarizes, and sha...

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