Automate an AI newsletter from topic pick to inbox

An n8n schedule launches Gemini-written AI newsletters, cleans the markup, and emails the final version to subscribers.

Done with n8nGemini· Intermediate

What they did
A scheduled trigger kicks off the automation on a daily or weekly cadence. The first Gemini step looks across the latest 24–48 hours to choose an AI topic, and the second Gemini step turns that into newsletter content formatted for email. A JavaScript Code node then strips out escape characters and extra metadata, after which the workflow pulls subscriber addresses from a Google Sheet and delivers the message with Gmail.
How it went
The system can run without manual involvement and outputs a polished email that includes a gradient header and topic badge. No numbers or other performance results were given. The only drawback mentioned was that Gemini’s raw text could break the email design, so cleanup was required.
Tips
Manually inspect the first few newsletters before letting the workflow operate fully on its own. Keep an approval checkpoint before sending so you can review the draft and audience list.

Try it yourself with n8n

Set up an n8n automation that starts on a [daily/weekly] schedule, searches for a recent [topic/niche] from the last [24/48] hours using [sources], and asks Gemini to draft a newsletter in [voice/tone]. Convert the result into email-safe HTML, remove any stray formatting or metadata, load recipients from [Google Sheet/CRM], and stop before sending so I can review the draft and recipient count and approve the send.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Read the original on dev.to ↗

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.