Automation library · Content

Send AI-generated WordPress newsletters with OpenAI and SMTP

Started by a clock, and works across Email and RSS. It hands the judgement calls to OpenAI. 30 steps, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

30 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 1Model 3Logic 16Service 10

The steps in the order they run, from what starts it.

  1. 1Schedule, Hourly TriggerSchedule triggerStarts it
  2. 2OpenAI, Chat ModelLm Chat Open AiModel
  3. 3Set, Site ConfigSetLogic
  4. 4AI, Summarize ArticlesAgentModel
  5. 5HTTP, Get Due NewslettersHttp RequestService
  6. 6Code, Parse AI ResponseCodeLogic
  7. 7Split, Due NewslettersSplit OutLogic
  8. 8Code, Build Image PromptCodeLogic
  9. 9Loop, NewslettersSplit In BatchesLogic
  10. 10OpenAI, Generate Feature ImageOpen AiModel
  11. 11Set, Newsletter ConfigSetLogic
  12. 12HTTP, Upload Feature ImageHttp RequestService
  13. 13RSS, Fetch RedditRss Feed ReadService
  14. 14RSS, Fetch Google NewsRss Feed ReadService
  15. 15HTTP, Fetch Yahoo SportsHttp RequestService
  16. 16RSS, Fetch NCAARss Feed ReadService
  17. 17HTTP, Fetch BBC SportHttp RequestService
  18. 18Code, Attach Feature ImageCodeLogic
  19. 19Code, Normalize RedditCodeLogic
  20. 20Code, Normalize Google NewsCodeLogic
  21. 21Code, Normalize YahooCodeLogic
  22. 22Code, Normalize NCAACodeLogic
  23. 23Code, Normalize BBCCodeLogic
  24. 24Code, Build Newsletter HTMLCodeLogic
  25. 25Merge, Combine SourcesMergeLogic
  26. 26HTTP, Get RecipientsHttp RequestService
  27. 27Code, Select ArticlesCodeLogic
  28. 28Code, Build BCC BatchesCodeLogic
  29. 29Email, Send NewsletterEmail SendService
  30. 30HTTP, Mark SentHttp RequestService

How it's built

Starts on
A clock
Steps
30, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Email, RSS
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Email and RSS accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 30 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 30 steps before you point it at anything that matters.