Templates / On-demand email newsletter summaries from Gmail to Telegram with GPT-4.1-mini

On-demand email newsletter summaries from Gmail to Telegram with GPT-4.1-mini

Ready for 3.0

by Vlad Arbatov ✓ · 814 views · created 2025-08-11 · Personal Productivity, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 13 nodes and runs on Telegram events (message). Along the way it connects Gmail, Telegram and OpenAI.

How it runs

Trigger: On Telegram events (message).

  1. Get days (Code): runs custom JavaScript code
  2. Get many messages (Gmail): get many
  3. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Merge (Code): runs custom JavaScript code
  5. Get a message (Gmail): get
  6. Create TG message (Code): runs custom JavaScript code
  7. Get message data (Code): runs custom JavaScript code
  8. Split (Code): runs custom JavaScript code
  9. Clean (Code): runs custom JavaScript code
  10. Sanitize (Code): runs custom JavaScript code

…plus 2 more steps. See the full node list below.

Services it uses

GmailTelegramOpenAI

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Summary Send a number to your Telegram bot (e.g., 2) and get a neatly formatted digest of all Gmail newsletters received since that date. Each email is summarized by an LLM into concise topics, merged into a single Telegram message, automatically split into…

Excerpt from Vlad Arbatov's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.