AutomationFlowsAI & RAG › Email Summarizer

Email Summarizer

Email Summarizer. Uses gmail, googleGemini, telegram. Event-driven trigger; 6 nodes.

Event trigger★★☆☆☆ complexityAI-powered6 nodesGmailGoogle GeminiTelegram
AI & RAG Trigger: Event Nodes: 6 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Gmail → Googlegemini 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
{
  "name": "Email Summarizer",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "b0f570f5-f5a8-40c4-b87d-30eba8bece0e",
      "name": "When clicking \u2018Execute workflow\u2019"
    },
    {
      "parameters": {
        "operation": "getAll",
        "limit": 10,
        "simple": false,
        "filters": {
          "sender": "Kaggle"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.2,
      "position": [
        208,
        0
      ],
      "id": "bb1850a5-de73-44c6-a5e6-bfe5c848fe31",
      "name": "Get many messages",
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "models/gemini-3-flash-preview"
        },
        "messages": {
          "values": [
            {
              "content": "=You are an expert email summarizer. Help summarize the user-input email. \n\nSender email: {{ $json.headers.from }}\nTo: {{ $json.headers.to }}\nSubject: {{ $json.headers.subject }}\nInput email text: {{ $json.text }}\n\nGive me a text summary of that email that includes all important information, the sender's name, the objective, contact info, etc. \nInclude:\n- Main purpose\n- Any action items\n- Deadlines if mentioned, etc. \n\nOutput in the form of text only. Summary limitation is one short paragraph of a maximum of 7 lines and a minimum of 3 lines. If possible, include emojies in the output text to make it engaging, and nice to read. Format long paragraph into bullet points if possible. Also, give top heading to this summary."
            }
          ]
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1.2,
      "position": [
        416,
        0
      ],
      "id": "8e23ab5a-c8dc-4370-9117-379591475c41",
      "name": "Message a model",
      "credentials": {
        "googlePalmApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "YOUR_TELEGRAM_CHAT_ID",
        "text": "=Your email summary: \n\n{{ $json.content.parts[0].text }}",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        768,
        0
      ],
      "id": "3d9c1f61-499b-417d-a578-398423db0536",
      "name": "Send a text message",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "content": "code for email summarizer tg bot: \nYOUR_TELEGRAM_BOT_TOKEN\n\nchatid: YOUR_TELEGRAM_CHAT_ID",
        "height": 144,
        "width": 304
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        208
      ],
      "typeVersion": 1,
      "id": "2400747d-81d4-4c87-90e3-5e586250c6c5",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "New learning: \n\nTurn off \"Simplify\" option in Gmail node to get ultimate email response including full body text, etc. ",
        "height": 192,
        "width": 272
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        208
      ],
      "typeVersion": 1,
      "id": "f84f9dcc-95b1-42dd-90bf-411a3ff82d0e",
      "name": "Sticky Note1"
    }
  ],
  "connections": {
    "When clicking \u2018Execute workflow\u2019": {
      "main": [
        [
          {
            "node": "Get many messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many messages": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "staticData": null,
  "triggerCount": 0,
  "meta": {
    "templateCredsSetupCompleted": true
  }
}

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

Email Summarizer. Uses gmail, googleGemini, telegram. Event-driven trigger; 6 nodes.

Source: https://github.com/DuttPanchal04/n8n-ai-automation-portfolio/blob/main/email-summarizer/email-summarizer-workflow.json — 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

Content Teams, Researchers, and Administrators who need to automatically process voice memos, meeting recordings, or interview audio into structured, searchable documents.

Gmail, OpenAI, Google Drive +2
AI & RAG

This workflow automatically fetches news articles from NewsAPI, processes them using an AI model to generate summaries and key regulatory changes and stores both raw and processed data into Google She

HTTP Request, Google Gemini, Google Sheets +1
AI & RAG

Arvifund - Supabase (Fixed v6). Uses httpRequest, telegram, supabase, telegramTrigger. Event-driven trigger; 92 nodes.

HTTP Request, Telegram, Supabase +8
AI & RAG

Arvifund - Supabase (Fixed v5). Uses httpRequest, telegram, googleSheets, telegramTrigger. Event-driven trigger; 91 nodes.

HTTP Request, Telegram, Google Sheets +9
AI & RAG

Arvifund - Supabase. Uses httpRequest, telegram, googleSheets, telegramTrigger. Event-driven trigger; 90 nodes.

HTTP Request, Telegram, Google Sheets +8