AutomationFlowsAI & RAG › Create Daily Gmail Summaries with Google Gemini AI

Create Daily Gmail Summaries with Google Gemini AI

ByTamer @tamerelzein on n8n.io

Never miss important emails again! This intelligent automation runs every morning at 8 AM to analyze your Gmail inbox from the past 24 hours and delivers a comprehensive summary powered by Google Gemini AI.

Cron / scheduled trigger★★★★☆ complexityAI-powered8 nodesGmailAgentGoogle Gemini ChatOutput Parser AutofixingOutput Parser Structured
AI & RAG Trigger: Cron / scheduled Nodes: 8 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #4915 — we link there as the canonical source.

This workflow follows the Agent → Gmail recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "GTBliDoeUtJf5Oz9",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "Gmail Daily Summary Scheduler",
  "tags": [],
  "nodes": [
    {
      "id": "2e62eab7-43b3-4dc1-8e1c-44e048a5b8e7",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        660,
        0
      ],
      "parameters": {
        "filters": {
          "readStatus": "both",
          "receivedAfter": "={{ $json.newDate }}"
        },
        "operation": "getAll"
      },
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "c03cf35a-989e-454a-b521-c719b6efe3be",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 8
            }
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "8201b82e-5492-4cc0-b350-aa72d36bcb36",
      "name": "Date & Time",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        220,
        0
      ],
      "parameters": {
        "options": {},
        "includeTime": false
      },
      "typeVersion": 2
    },
    {
      "id": "2c48a23a-ca12-49db-9512-7646f9400371",
      "name": "Date & Time1",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        440,
        0
      ],
      "parameters": {
        "options": {},
        "duration": 1,
        "magnitude": "={{ $json.currentDate }}",
        "operation": "subtractFromDate"
      },
      "typeVersion": 2
    },
    {
      "id": "999494f7-2d0f-49ff-99dd-1a1d8dc1cd2b",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        880,
        0
      ],
      "parameters": {
        "text": "={{ $('Gmail').all().toJsonString() }}",
        "options": {
          "systemMessage": "You are an intelligent email assistant. Your task is to analyze a list of email messages received in the last 24 hours. Each email includes a subject, sender, timestamp, and body.\n\nYour goals are:\n\t1.\tSummary: Provide a concise summary of the overall themes or key updates across all emails.\n\t2.\tImportant Emails: Identify and list the most important or time-sensitive emails. For each, include:\n\t\u2022\tSubject\n\t\u2022\tSender\n\t\u2022\tReason why it\u2019s important (e.g., deadline, meeting, urgent request, opportunity)"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "executeOnce": true,
      "typeVersion": 2
    },
    {
      "id": "b3e1e8c7-cb1e-4081-bbea-c67ef7183637",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        860,
        440
      ],
      "parameters": {
        "options": {
          "temperature": 0.2
        },
        "modelName": "models/gemini-2.0-flash"
      },
      "credentials": {
        "googlePalmApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c812c98d-9d3c-4778-93fa-603b762a69a4",
      "name": "Auto-fixing Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserAutofixing",
      "position": [
        1060,
        220
      ],
      "parameters": {
        "options": {
          "prompt": "Instructions:\n--------------\n{instructions}\n--------------\nCompletion:\n--------------\n{completion}\n--------------\n\nAbove, the Completion did not satisfy the constraints given in the Instructions.\nError:\n--------------\n{error}\n--------------\n\nPlease try again. Please only respond with an answer that satisfies the constraints laid out in the Instructions:"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "331d1d36-b6cc-4298-befc-14bf2e952306",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1160,
        440
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"summary\": \"Today\u2019s emails covered project updates, meeting schedules, and one urgent request.\\n Important Emails: \\n 1. subject :Client Meeting Rescheduled , sender : user@example.com , reason : The meeting has been moved to tomorrow morning, requiring immediate schedule adjustment.\\n 2. subject :Client Meeting Rescheduled , sender : user@example.com , reason : The meeting has been moved to tomorrow morning, requiring immediate schedule adjustment.\"\n}"
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "4d5fe298-0421-4b23-af92-9221219fdc53",
  "connections": {
    "Gmail": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Date & Time": {
      "main": [
        [
          {
            "node": "Date & Time1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Date & Time1": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Date & Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Auto-fixing Output Parser",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Auto-fixing Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Never miss important emails again! This intelligent automation runs every morning at 8 AM to analyze your Gmail inbox from the past 24 hours and delivers a comprehensive summary powered by Google Gemini AI.

Source: https://n8n.io/workflows/4915/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

LinkedIn_Job_Hunt_and_Cover_Letter. Uses outputParserStructured, outputParserAutofixing, googleDrive, agent. Scheduled trigger; 85 nodes.

Output Parser Structured, Output Parser Autofixing, Google Drive +6
AI & RAG

This n8n template automates the tedious process of searching for jobs on LinkedIn. By integrating with tools for web scraping and leveraging AI (Google Gemini) for intelligent matching, this workflow

Output Parser Structured, Output Parser Autofixing, Google Drive +4
AI & RAG

V2 (2026) available! An intelligent, fully automated news aggregation system that collects articles from multiple sources (RSS feeds + Google Search), uses AI to classify and summarize the most import

N8N Nodes Serpapi, Text Classifier, Output Parser Structured +6
AI & RAG

kisisel asistan. Uses toolWorkflow, toolHttpRequest, toolCalculator, toolThink. Scheduled trigger; 43 nodes.

Tool Workflow, Tool Http Request, Tool Calculator +15
AI & RAG

🎓 Undergraduate and graduate students or researchers in soft-science fields (psychology, sociology, economics, business) ⏱️ People who don’t have time to read full papers and need quick overviews 📊 An

Agent, Google Sheets, Output Parser Structured +5