Importable n8n workflows for everyday automation, with the description and a screenshot of each one.
| Workflow | File | What it does |
|---|---|---|
| Daily Email Summary | Daily Email Summary.json |
Every morning, reads the last 24 hours of unread Gmail, has an AI rank each email by priority and sends a short Bengali summary to Telegram |
What it does. At 10:00 (in the timezone set on your n8n instance) it fetches up to 20 Gmail messages matching is:unread newer_than:1d, formats sender, subject and a 200-character preview of each into a numbered list, and asks an LLM to:
- give each email a priority (urgent, important or normal),
- summarise only the urgent and important ones, in Bengali,
- say which emails need a reply today,
- open with a three-line overview.
The result is sent to a Telegram chat with the total email count.
Flow. Schedule Trigger -> Get many messages (Gmail) -> Code (builds the email list and count) -> AI Agent (Groq Chat Model, llama-3.3-70b-versatile) -> Send a text message (Telegram).
Nodes used. Schedule Trigger, Gmail, Code, AI Agent, Groq Chat Model, Telegram.
Credentials needed (create them in n8n, then select them on each node after import):
| Credential type | Used by | Notes |
|---|---|---|
| Gmail OAuth2 | Get many messages | Read access to the mailbox |
| Groq API | Groq Chat Model | API key from the Groq console |
| Telegram API | Send a text message | Bot token from @BotFather |
Placeholders to replace.
YOUR_TELEGRAM_CHAT_IDin the Telegram node: the chat that should receive the summary.- Optionally the schedule hour, the Gmail filter (
filters.q) and thelimitin the Gmail node.
Setup.
- In n8n choose Workflows -> Import from file and select
Daily Email Summary.json. - Attach your Gmail, Groq and Telegram credentials.
- Set
YOUR_TELEGRAM_CHAT_IDin the Telegram node. - Run the workflow once manually to check the output, then activate it.
Notes: the Telegram node sends with parse_mode HTML, so unusual characters in the AI output can occasionally be rejected by Telegram. The Code node has a branch for an empty list, but n8n normally stops a run when the Gmail node returns no items.
See also daily email summary descriptions for the original write-up and ideas for future improvements.
scripts/validate-workflows.js checks every workflow JSON in this repo (valid JSON, well-formed nodes, connections to existing nodes, no orphaned nodes, no embedded secrets). It runs in GitHub Actions on every push and pull request and locally with:
node scripts/validate-workflows.jsSaizul Amin: web developer, SEO and automation specialist.
