Write and send AI newsletters automatically

Posted on Oct 15, 2025 • Edited on Oct 15, 2025. Task: Posted on Oct 15, 2025 • Edited on Oct 15, 2025 Keeping up with daily AI updates can be a challenge → new models, tools, and breakthroughs appear almost every day. To simplify this process, we built an AI-powered “Newsletter Agent” using n8n, an open-source workflow automation platform. This agent automatically finds trending AI topics, writes educational newsletters using Google Gemini AI, formats the content, and sends it to subscribers → all without manual work. 🌐 The Concept The idea was to automate daily newsletter creation and delivery → so the system itself handles: ◆ Finding a trending AI topic ◆ Writing the newsletter ◆ Formatting and cleaning the text ◆ Fetching email contacts ◆ Sending the email automatically The result? A fully autonomous digital writer and publisher, powered by n8n + Gemini AI. ⚙️ Workflow Overview The entire automation was created inside n8n’s visual editor. Here’s how it works step-by-step: 1. **Schedule Trigger**** → Runs the workflow daily or weekly. **2. AI Topic Selector → Uses Gemini to find a trending AI topic from the last 24–48 hours. 3. AI Newsletter Writer → Generates a complete, structured newsletter. 4. Extract & Format Content → Cleans and converts raw AI output into HTML. 5. Google Sheets → Fetches subscriber email addresses dynamically. 6. Aggregate Node → Combines all emails into a single list. 7. Send AI Newsletter (Gmail) → Sends a well-designed HTML email automatically. 🧠 **AI Topic Selector** This step is powered by Google Gemini. It searches recent AI trends and picks one relevant topic → like “Prompt Engineering Techniques” or “AI Workflow Automation.” A short, structured prompt instructs Gemini to act as a curator, selecting only the most valuable and recent topics. This ensures every newsletter stays fresh, relevant, and industry-aligned. ✍️ **AI Newsletter Writer** Once the topic is selected, another Gemini node writes the newsletter content automatically. It includes: ● Topic introduction ● Why it matters ● Key concepts ● Real-world use cases ● Pro tips and takeaways The AI follows predefined HTML formatting for Cambria font, highlighted sections, and clean headings → ready for email delivery. 💻 **Content Formatting & Cleanup** The AI’s raw output often contains structured data or unwanted escape characters. A Code node (JavaScript) was added to: ➥ Extract clean HTML ➥ Remove metadata or formatting errors ➥ Trim unnecessary text This ensures that the final newsletter looks professional when rendered inside an email. 📋 Fetching Subscribers via Google Sheets Instead of static emails, the agent pulls recipient data directly from a connected Google Sheet. Anyone can add or update email addresses without opening n8n. This simple integration makes the workflow scalable and easy to maintain → perfect for teams or communities. 📦 Data Aggregation Before sending, the Aggregate node compiles all emails into a single clean string. This avoids duplication and ensures a smooth send process. It’s a small but essential step that keeps data management organized inside n8n. 📨 Sending the Newsletter The final email is sent automatically using Gmail integration inside n8n. The email design includes: ● Gradient header (AI Deep Dive) ● Topic badge ● White content section with readable text ● Footer with tagline It’s a simple, elegant layout optimized for readability and consistency.; tools: n8n, Gemini. Human role: 📦 Data Aggregation Before sending, the Aggregate node compiles all emails into a single clean string.; limitations: Prerequisites include access to n8n, Google Gemini API, Gmail, and Google Sheets. The source notes common mistakes like unstructured prompts causing messy output and ignoring HTML cleanup leading to broken layouts. It advises reviewing initial outputs manually before full automation, implying a need for human oversight despite the 'autonomous' claim..

Tools

n8n, Gemini

Published on Agent Work Atlas:

Overview

Posted on Oct 15, 2025 • Edited on Oct 15, 2025

Workflow

Posted on Oct 15, 2025 • Edited on Oct 15, 2025 Keeping up with daily AI updates can be a challenge → new models, tools, and breakthroughs appear almost every day. To simplify this process, we built an AI-powered “Newsletter Agent” using n8n, an open-source workflow automation platform. This agent automatically finds trending AI topics, writes educational newsletters using Google Gemini AI, formats the content, and sends it to subscribers → all without manual work. 🌐 The Concept The idea was to automate daily newsletter creation and delivery → so the system itself handles: ◆ Finding a trending AI topic ◆ Writing the newsletter ◆ Formatting and cleaning the text ◆ Fetching email contacts ◆ Sending the email automatically The result? A fully autonomous digital writer and publisher, powered by n8n + Gemini AI. ⚙️ Workflow Overview The entire automation was created inside n8n’s visual editor. Here’s how it works step-by-step: 1. **Schedule Trigger**** → Runs the workflow daily or weekly. **2. AI Topic Selector → Uses Gemini to find a trending AI topic from the last 24–48 hours. 3. AI Newsletter Writer → Generates a complete, structured newsletter. 4. Extract & Format Content → Cleans and converts raw AI output into HTML. 5. Google Sheets → Fetches subscriber email addresses dynamically. 6. Aggregate Node → Combines all emails into a single list. 7. Send AI Newsletter (Gmail) → Sends a well-designed HTML email automatically. 🧠 **AI Topic Selector** This step is powered by Google Gemini. It searches recent AI trends and picks one relevant topic → like “Prompt Engineering Techniques” or “AI Workflow Automation.” A short, structured prompt instructs Gemini to act as a curator, selecting only the most valuable and recent topics. This ensures every newsletter stays fresh, relevant, and industry-aligned. ✍️ **AI Newsletter Writer** Once the topic is selected, another Gemini node writes the newsletter content automatically. It includes: ● Topic introduction ● Why it matters ● Key concepts ● Real-world use cases ● Pro tips and takeaways The AI follows predefined HTML formatting for Cambria font, highlighted sections, and clean headings → ready for email delivery. 💻 **Content Formatting & Cleanup** The AI’s raw output often contains structured data or unwanted escape characters. A Code node (JavaScript) was added to: ➥ Extract clean HTML ➥ Remove metadata or formatting errors ➥ Trim unnecessary text This ensures that the final newsletter looks professional when rendered inside an email. 📋 Fetching Subscribers via Google Sheets Instead of static emails, the agent pulls recipient data directly from a connected Google Sheet. Anyone can add or update email addresses without opening n8n. This simple integration makes the workflow scalable and easy to maintain → perfect for teams or communities. 📦 Data Aggregation Before sending, the Aggregate node compiles all emails into a single clean string. This avoids duplication and ensures a smooth send process. It’s a small but essential step that keeps data management organized inside n8n. 📨 Sending the Newsletter The final email is sent automatically using Gmail integration inside n8n. The email design includes: ● Gradient header (AI Deep Dive) ● Topic badge ● White content section with readable text ● Footer with tagline It’s a simple, elegant layout optimized for readability and consistency.

Reported result

The source does not provide measured outcomes, such as open rates, subscriber growth, or error rates. It claims the workflow results in a 'fully autonomous digital writer and publisher' but offers no data to verify reliability or business impact. Success metrics are unknown.

Human role

📦 Data Aggregation Before sending, the Aggregate node compiles all emails into a single clean string.

Limitations

Prerequisites include access to n8n, Google Gemini API, Gmail, and Google Sheets. The source notes common mistakes like unstructured prompts causing messy output and ignoring HTML cleanup leading to broken layouts. It advises reviewing initial outputs manually before full automation, implying a need for human oversight despite the 'autonomous' claim.

Try it

Act as an automation engineer. I need to set up an AI newsletter workflow in n8n. Inputs: - n8n instance URL and credentials - Google Gemini API key - Gmail account for sending - Google Sheet URL with subscriber emails - Target audience: [replaceable: e.g., AI developers] - Output location: [replaceable: e.g., Drafts folder for review] Steps: 1. Create a Schedule Trigger node (daily). 2. Add a Gemini node to select a trending AI topic from the last 48 hours. 3. Add a second Gemini node to write a structured newsletter (intro, key concepts, use cases) in HTML. 4. Add a Code node (JavaScript) to clean HTML and remove escape characters. 5. Add a Google Sheets node to fetch subscriber emails. 6. Add an Aggregate node to compile emails. 7. Add a Gmail node to send the email. Safeguards: - Do NOT activate the workflow for live sending yet. - Run a dry test with a single dummy email address. - Output the generated HTML and selected topic for my review. - Ask me for confirmation before connecting the Gmail node to a real sending account. Deliverables: - A JSON export of the n8n workflow. - A sample HTML output from the dry run. - A checklist of required API permissions.

Original source

Source reports are not independently verified. Publication date is the catalog publication date, not the original article date.

More cases · Content & creative