# Send AI-generated WordPress newsletters with OpenAI and SMTP: n8n workflow

> Started by a clock, and works across Email and RSS. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/send-ai-generated-wordpress-newsletters-with-openai-and-smtp (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Content](https://millionrounds.com/workflows?category=Content#library)

# 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.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsend-ai-generated-wordpress-newsletters-with-openai-and-smtp)

**30 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 3 Logic 16 Service 10

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

- 1 **Schedule, Hourly Trigger** Schedule trigger *Starts it*
- 2 **OpenAI, Chat Model** Lm Chat Open Ai *Model*
- 3 **Set, Site Config** Set *Logic*
- 4 **AI, Summarize Articles** Agent *Model*
- 5 **HTTP, Get Due Newsletters** Http Request *Service*
- 6 **Code, Parse AI Response** Code *Logic*
- 7 **Split, Due Newsletters** Split Out *Logic*
- 8 **Code, Build Image Prompt** Code *Logic*
- 9 **Loop, Newsletters** Split In Batches *Logic*
- 10 **OpenAI, Generate Feature Image** Open Ai *Model*
- 11 **Set, Newsletter Config** Set *Logic*
- 12 **HTTP, Upload Feature Image** Http Request *Service*
- 13 **RSS, Fetch Reddit** Rss Feed Read *Service*
- 14 **RSS, Fetch Google News** Rss Feed Read *Service*
- 15 **HTTP, Fetch Yahoo Sports** Http Request *Service*
- 16 **RSS, Fetch NCAA** Rss Feed Read *Service*
- 17 **HTTP, Fetch BBC Sport** Http Request *Service*
- 18 **Code, Attach Feature Image** Code *Logic*
- 19 **Code, Normalize Reddit** Code *Logic*
- 20 **Code, Normalize Google News** Code *Logic*
- 21 **Code, Normalize Yahoo** Code *Logic*
- 22 **Code, Normalize NCAA** Code *Logic*
- 23 **Code, Normalize BBC** Code *Logic*
- 24 **Code, Build Newsletter HTML** Code *Logic*
- 25 **Merge, Combine Sources** Merge *Logic*
- 26 **HTTP, Get Recipients** Http Request *Service*
- 27 **Code, Select Articles** Code *Logic*
- 28 **Code, Build BCC Batches** Code *Logic*
- 29 **Email, Send Newsletter** Email Send *Service*
- 30 **HTTP, Mark Sent** Http Request *Service*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fsend-ai-generated-wordpress-newsletters-with-openai-and-smtp)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Email](https://millionrounds.com/workflows?service=Email#library)[RSS](https://millionrounds.com/workflows?service=RSS#library)

## Workflows like it

Also content, with the same services where possible, closest in size first.

- [**AI-powered blog post promoter for Instagram, Facebook & X** 30 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-blog-post-promoter-for-instagram-facebook-and-x)
- [**Repurpose YouTube videos across social media with Gemini** 30 steps · calls a model · Discord, RSS](https://millionrounds.com/workflow/repurpose-youtube-videos-across-social-media-with-gemini)
- [**Clip YouTube videos into shorts with OpenShorts and Telegram** 30 steps · RSS, Telegram](https://millionrounds.com/workflow/clip-youtube-videos-into-shorts-with-openshorts-and-telegram)
- [**Multi platform content generator from YouTube with RSS** 29 steps · calls a model · Google Sheets, RSS](https://millionrounds.com/workflow/multi-platform-content-generator-from-youtube-with-rss)
- [**Generate videos for realtors from Zillow links** 29 steps · Email](https://millionrounds.com/workflow/generate-videos-for-realtors-from-zillow-links)
- [**Translate RSS news and publish** 31 steps · Discord, Gmail](https://millionrounds.com/workflow/translate-rss-news-and-publish)
