On-demand email newsletter summaries from Gmail to Telegram with GPT-4.1-mini
Ready for 3.0What 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).
- Get days (Code): runs custom JavaScript code
- Get many messages (Gmail): get many
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Merge (Code): runs custom JavaScript code
- Get a message (Gmail): get
- Create TG message (Code): runs custom JavaScript code
- Get message data (Code): runs custom JavaScript code
- Split (Code): runs custom JavaScript code
- Clean (Code): runs custom JavaScript code
- Sanitize (Code): runs custom JavaScript code
…plus 2 more steps. See the full node list below.
Services it uses
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)
- Gmail
n8n-nodes-base.gmail - Telegram Trigger
n8n-nodes-base.telegramTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Code
n8n-nodes-base.code - Telegram
n8n-nodes-base.telegram - OpenAI
@n8n/n8n-nodes-langchain.openAi
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…