workflows.fit
Back to n8n workflows
n8n templateFreeBy Luis Acosta

Create curated newsletters from Reddit discussions with GPT-4o Mini and Gmail

๐Ÿ“ฐ Reddit to Newsletter (Automated Curation with Open AI 4o Mini ) Turn the best posts from a subreddit into a ready-to-send HTML newsletter โ€” no copy-pasting, no wasted time. This workflow fetches new posts, filters ...

CommunicationHITLDevelopmentCore NodesAILangchainManual TriggerReddit
Loading interactive preview...

Template notes

๐Ÿ“ฐ Reddit to Newsletter (Automated Curation with Open AI 4o Mini )

Turn the best posts from a subreddit into a ready-to-send HTML newsletter โ€” no copy-pasting, no wasted time. This workflow fetches new posts, filters by topic of interest, analyzes comments, summarizes insights, and composes a clean HTML email delivered straight to your inbox with Gmail.

---

๐Ÿ’ก What this workflow does - โœ… Fetches posts from your chosen subreddit (default: r/microsaas, sorted by โ€œnewโ€) - ๐Ÿ† Selects the Top 10 by upvotes, comments, and recency - ๐Ÿงญ Defines a topic of interest and runs a lightweight AI filter (true/false) without altering the original JSON - ๐Ÿ’ฌ Pulls and flattens comments into a clean, structured list - ๐Ÿง  Summarizes each post + comments into mainpostsummary, commentinsights, and keylearnings - โœ๏ธ Generates a newsletter in HTML (not Markdown) with headline, outline, sections per post, quotes, and โ€œby the numbersโ€ - ๐Ÿ“ค Sends the HTML email via Gmail with subject โ€œReddit Digestโ€ (editable)

---

๐Ÿ›  What youโ€™ll need - ๐Ÿ”‘ Reddit OAuth2 connected in n8n - ๐Ÿ”‘ OpenAI API key (e.g., gpt-4o-mini) for filtering and summarization - ๐Ÿ”‘ Gmail OAuth2 to deliver the newsletter - ๐Ÿงต A target subreddit and a clearly defined topic of interest

---

๐Ÿงฉ How it works (high-level) 1. Manual Trigger โ†’ Get many posts (from subreddit) 2. Select Top 10 (Code node, ranking by ups + comments + date) 3. Set topic of interest โ†’ AI filter โ†’ String to JSON โ†’ If topic of interest 4. Loop Over Items for each valid post 5. Fetch post comments โ†’ Clean comments (Code) โ†’ Merge comments โ†’ Merge with post 6. Summarize post + comments (AI) โ†’ Merge summaries โ†’ Create newsletter HTML 7. Send Gmail message with the generated HTML