📬 What this workflow does
Every morning → fetch 3 French economy RSS feeds → keep fresh items → AI rewrites into short summaries → send a nice HTML email newsletter.
🔄 Flow (high level)
- ⏰ Trigger at 07:00
- 📰 Fetch RSS (Le Monde, Usine Nouvelle, Le Figaro)
- ⛔ Filter → keep only recent items
- 🔢 Sort newest first
- ✂️ Limit 2 per source
- ➕ Merge
- 🤖 AI summary (title + paragraph)
- 🏷 Normalize fields (title, source, link…)
- 📦 Aggregate arrays
- 📧 Send via Outlook (HTML template)
🧩 Node notes
- Trigger → 07:00 daily (check timezone).
- RSS Read → feeds OK, but UsineNouvelle is
http (redirects fine).
- If nodes → ❗ currently
after $today → keeps only future dates.
- Fix:
- For today only:
after $today.startOf('day')
- For last 24h:
after $now.minus({ hours: 24 })
- Sort + Limit → newest 2 per feed.
- Merge → combine up to 6 items.
- AI agent → prompt uses
<article> … needs closing </article> ✅
- Edit Fields → maps source domains → nice labels (“Le Monde” etc).
- Aggregate → arrays for email template.
- Outlook email → HTML newsletter (mobile-friendly).
⚡ Quick wins
- 🕒 Fix the date filter logic (today/24h).
- 📝 Fix closing tag in AI prompt (
</article>).
- 🌍 Add User-Agent header in RSS nodes (avoid 403).
- 🔁 Remove duplicates on
link.
- ⏳ Mind the server timezone vs your audience.
