Automated Gmail Newsletter Summarizer for Telegram

somdn_product_page

This n8n workflow automates the process of retrieving, analyzing, and summarizing recent Gmail newsletters for a Telegram community. It is designed to provide quick, digestible insights from email newsletters by leveraging AI-powered natural language processing, and then sending them directly to a Telegram chat in a clean, formatted message.

The workflow begins with a Gmail trigger that filters and fetches all newsletters received since a user-defined number of days ago. It intelligently extracts email content, including HTML and plain text, and normalizes the data—such as cleaning formatting issues and converting dates. Next, it invokes a language model via OpenAI’s API, which analyzes the email content to identify key topics and generates a concise summary in JSON format.

The newsletter summaries are then transformed into an organized list with details like titles, descriptions, sender info, and dates. This list is formatted into a readable message, with adjustments for Markdown and HTML to ensure proper display in Telegram. The message is split into manageable chunks to adhere to Telegram’s size limits, then safely sanitized with HTML encoding to prevent formatting issues.

Finally, the workflow sends the prepared summary message to a designated Telegram chat, making it ideal for users who want a quick overview of their newsletters without opening each email. This automation is perfect for busy professionals, content curators, or anyone who needs efficient digest summaries of their email newsletters.

Use cases include daily news summaries, industry updates, or aggregating content for team sharing or personal review, all streamlined into a single, automated process.

Node Count

11 – 20 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.openAi, code, gmail, splitInBatches, stickyNote, telegram, telegramTrigger

Reviews

There are no reviews yet.

Be the first to review “Automated Gmail Newsletter Summarizer for Telegram”

Your email address will not be published. Required fields are marked *