# Generate SEO-optimized WordPress blogs with Gemini and Tavily: n8n workflow

> Started by a clock, and works across Google Sheets, Telegram and WordPress. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/generate-seo-optimized-wordpress-blogs-with-gemini-and-tavil (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)

# Generate SEO-optimized WordPress blogs with Gemini and Tavily

Started by a clock, and works across Google Sheets, Telegram and WordPress. It hands the judgement calls to Gemini and OpenAI. 30 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-seo-optimized-wordpress-blogs-with-gemini-and-tavil)

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

**2** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 8 Logic 9 Service 12

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Structured Output Parser** Output Parser Structured *Model*
- 4 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 5 **Structured Output Parser1** Output Parser Structured *Model*
- 6 **Generate an Image OpenAI** Open Ai *Model*
- 7 **Get All the Users** Http Request *Service*
- 8 **Generate the Topic using LLM** Chain Llm *Model*
- 9 **Write Content for the Post** Chain Llm *Model*
- 10 **Get Articles on Topics** Http Request *Service*
- 11 **Structure Post Content** Set *Logic*
- 12 **Structure Tavily Results** Set *Logic*
- 13 **If1** If *Logic*
- 14 **URLs Extractor** Code *Logic*
- 15 **Generate an Image Gemini** Google Gemini *Model*
- 16 **Create Category in Wordpress** Http Request *Service*
- 17 **Confirm Article to Confirm** Telegram *Service*
- 18 **Upload Media to Wordpress** Http Request *Service*
- 19 **If Article Not None** If *Logic*
- 20 **Create a post** Wordpress *Service*
- 21 **Get Existing Categories** Http Request *Service*
- 22 **Add Excerpt on the Post** Http Request *Service*
- 23 **Aggregate Categories** Aggregate *Logic*
- 24 **Add the Featured Media on Post** Http Request *Service*
- 25 **Structure Selected Post** Set *Logic*
- 26 **Change the Author** Http Request *Service*
- 27 **Get Formatted Date & Time** Code *Logic*
- 28 **Structure for the Post Content** Set *Logic*
- 29 **Append Post Data in the Sheet** Google Sheets *Service*
- 30 **Final Telegram Message** Telegram *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 30, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets, Telegram, WordPress
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets, Telegram and WordPress accounts, and a key for Gemini and 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 Gemini and 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%2Fgenerate-seo-optimized-wordpress-blogs-with-gemini-and-tavil)
- **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.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Telegram](https://millionrounds.com/workflows?service=Telegram#library)[WordPress](https://millionrounds.com/workflows?service=WordPress#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)
- [**AI-powered blog: auto WordPress publish with Pexels** 30 steps · calls a model · Google Sheets, WordPress](https://millionrounds.com/workflow/ai-powered-blog-auto-wordpress-publish-with-pexels)
- [**Auto create video Sora with Gemini and OpenAI** 30 steps · calls a model · Google Drive, Telegram](https://millionrounds.com/workflow/auto-create-video-sora-with-gemini-and-openai)
- [**Create AI image and video posts from Telegram with OpenAI** 30 steps · calls a model · Telegram](https://millionrounds.com/workflow/create-ai-image-and-video-posts-from-telegram-with-openai)
- [**Draft and track incident postmortems with OpenAI** 30 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/draft-and-track-incident-postmortems-with-openai-2)
- [**Generate Sora v2 ASMR clips with OpenAI and Cloudinary** 30 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/generate-sora-v2-asmr-clips-with-openai-and-cloudinary)
