Send Daily Email Digest Telegram
Fetches your unread Gmail messages from the past 24 hours, generates an AI-powered summary of each email, and delivers a concise daily digest to your Telegram chat.
Overview
This workflow automates the process of gathering your unread emails from the past 24 hours, generating a concise summary, and sending it directly to your Telegram chat each morning. It helps you stay on top of important messages without having to dig through your inbox.
What It Does
- Triggers every day at 6:00 AM UTC to kick off the digest process.
- Fetches up to 50 unread emails from the past 24 hours in your Gmail inbox.
- Marks each fetched email as read by removing the UNREAD label.
- Uses an AI model to create a structured summary including subject, sender, date/time, and a brief content summary for each email.
- Sends the formatted daily digest to a specified Telegram chat.
What You Need
- A Gmail account connected to Needle via the Pipedream Gmail connector with permissions to read and modify emails.
- A Telegram bot connected through Pipedream's Telegram Bot API connector.
- Properly set timezone in the schedule trigger if you want a time zone other than UTC.
How the Flow Works
| Node | Description |
|---|---|
| Scheduled Trigger | Runs the workflow every day at 6:00 AM UTC to start the process. |
| Gmail – Find Emails | Retrieves up to 50 unread emails received within the last 24 hours from your Gmail inbox. |
| Gmail – Remove UNREAD Label | Marks each retrieved email as read by removing the UNREAD label. |
| AI Summary | Processes the email data to generate a clear, formatted daily summary including individual email details and an overall attention summary, styled for Telegram. |
| Telegram – Send Message | Sends the AI-generated daily email summary to your specified Telegram chat using Markdown formatting. |
Output
At the end of the workflow, you'll receive a neatly formatted message in your Telegram chat containing:
- The subject, sender, and date/time of each unread email from the last 24 hours.
- A brief 1–2 sentence summary of each email's content.
- An overall summary highlighting key points that need your attention.
This digest saves you time by giving a quick overview of your recent emails without opening your inbox.
Notes
- Make sure your Gmail and Telegram connectors have the necessary permissions configured to avoid errors.
- The schedule is set to UTC by default — update it if you want the summary delivered according to your local time.
- The AI summary uses a conservative creativity setting (temperature 0.3) for clear and concise output.
- Adjust the
maxResultsvalue in the Gmail search node if you expect more than 50 unread emails daily. - This workflow marks emails as read after processing. If you want to keep emails as unread, modify or remove that step.
Want to showcase your own workflows?
Become a Needle workflow partner and turn your expertise into recurring revenue.
