# Auto-generate Shopify blog related articles with OpenAI: n8n workflow

> Started by a clock, and works across n8n data table. 22 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/auto-generate-shopify-blog-related-articles-with-openai (Millionrounds; every figure on the page links to its filing or article)

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

# Auto-generate Shopify blog related articles with OpenAI

Started by a clock, and works across n8n data table. 22 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fauto-generate-shopify-blog-related-articles-with-openai)

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

**2** Branches: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Logic 13 Service 8

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Workflow Configuration** Set *Logic*
- 3 **Get articles from shopify** Http Request *Service*
- 4 **Clean & Prepare Text** Code *Logic*
- 5 **Loop Over Items** Split In Batches *Logic*
- 6 **Calculate similarities** Code *Logic*
- 7 **Set article fields** Set *Logic*
- 8 **Upsert article_relations** Data Table *Service*
- 9 **OpenAI Get Embeddings** Http Request *Service*
- 10 **Top 3 related articles** Code *Logic*
- 11 **Upsert articles** Data Table *Service*
- 12 **Loop for source articles** Split In Batches *Logic*
- 13 **Get previous related_articles** Data Table *Service*
- 14 **Check if article already has related** If *Logic*
- 15 **Check if related articles are the same** If *Logic*
- 16 **Upsert relations** Data Table *Service*
- 17 **No need to change the related section** No Op *Logic*
- 18 **Split Related IDs** Code *Logic*
- 19 **Get related article details** Data Table *Service*
- 20 **Prepare HTML for related articles** Code *Logic*
- 21 **Insert Related in Article** Code *Logic*
- 22 **Update article with related** Http Request *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 22, with 2 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** n8n data table
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 22 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 22 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%2Fauto-generate-shopify-blog-related-articles-with-openai)
- **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.

[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also e-commerce, with the same services where possible, closest in size first.

- [**Track competitor Shopify launches and pricing with Bright Data** 14 steps · Gmail, n8n data table](https://millionrounds.com/workflow/track-competitor-shopify-launches-and-pricing-with-bright-da)
- [**Restaurant Menu Ordering System** 13 steps · n8n data table](https://millionrounds.com/workflow/restaurant-menu-ordering-system)
- [**Email HKG–Shenzhen transfer fare references with CrossBorderHK** 11 steps · n8n data table](https://millionrounds.com/workflow/email-hkg-shenzhen-transfer-fare-references-with-crossborder)
- [**Notify new Jumia orders with Telegram and WhatsApp Cloud API** 10 steps · Telegram, WhatsApp](https://millionrounds.com/workflow/notify-new-jumia-orders-with-telegram-and-whatsapp-cloud-api)
- [**Process orders idempotently** 8 steps · n8n data table](https://millionrounds.com/workflow/process-orders-idempotently)
- [**Send Shopify AI order confirmations with Claude and Gmail** 8 steps · calls a model · Gmail, n8n data table](https://millionrounds.com/workflow/send-shopify-ai-order-confirmations-with-claude-and-gmail)
