Automation library · E-commerce

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

22 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
2Loops or waits
1Service it connects to

The flow

Starts it 1Logic 13Service 8

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2Workflow ConfigurationSetLogic
  3. 3Get articles from shopifyHttp RequestService
  4. 4Clean & Prepare TextCodeLogic
  5. 5Loop Over ItemsSplit In BatchesLogic
  6. 6Calculate similaritiesCodeLogic
  7. 7Set article fieldsSetLogic
  8. 8Upsert article_relationsData TableService
  9. 9OpenAI Get EmbeddingsHttp RequestService
  10. 10Top 3 related articlesCodeLogic
  11. 11Upsert articlesData TableService
  12. 12Loop for source articlesSplit In BatchesLogic
  13. 13Get previous related_articlesData TableService
  14. 14Check if article already has relatedIfLogic
  15. 15Check if related articles are the sameIfLogic
  16. 16Upsert relationsData TableService
  17. 17No need to change the related sectionNo OpLogic
  18. 18Split Related IDsCodeLogic
  19. 19Get related article detailsData TableService
  20. 20Prepare HTML for related articlesCodeLogic
  21. 21Insert Related in ArticleCodeLogic
  22. 22Update article with relatedHttp RequestService

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.