Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Email Automation

Email Automation

Daily Morning Email Summary with OpenRouter and Gmail

Every morning at 8 AM, this fetches the past 24 hours of Gmail messages, has an OpenRouter model summarize them and emails the digest.

What it does

# 📧 Email Auto-Summary Flow (n8n) Purpose: Daily digest of isb.quantana@quantana.in emails Runs: 8AM IST (7AM UTC) weekdays ## 🔄 Workflow 1. ⏰ Trigger: Scheduled daily run 2. 📥 Input: Fetch last 24h emails via Gmail API 3. 🤖 Process: - Filter non-essential emails - Extract key metadata (sender, subject, body) 4. ✍️ AI Summary: - Langchain analyzes content - Identifies: Updates/Issues/Actions 5. 📤 Output: Formatted email to team via Gmail API ## 🔑 APIs Needed: - Gmail API (OAuth2) - OpenRouter API (LLM access) - (Optional) Slack API for alerts ## ⚙️ Config: - OPENROUTER_KEY for AI - GMAIL_CREDS for email access - Recipient list in flow vars 💡 Processes ~50 emails/day | Error alerts via email

The steps

  1. Fetch Emails - Past 24 Hours
  2. Organize Email Data - Morning
  3. Send Summary - Morning
  4. Daily 8AM Trigger
  5. OpenRouter Chat Model
  6. Simple Memory
  7. Email Summarizer

Similar automations