Templates / Auto-generate Shopify blog related articles with OpenAI text-embedding-3-small

Auto-generate Shopify blog related articles with OpenAI text-embedding-3-small

Ready for 3.0

by Geoffroy ✓ · 198 views · created 2025-11-05 · Content Creation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 22 nodes and runs on a schedule (every week at 20:00). It uses only n8n's built-in nodes. It also calls api.openai.com over HTTP.

How it runs

Trigger: On a schedule (every week at 20:00).

  1. Workflow Configuration (Edit Fields (Set)): sets 5 fields: shopifyBlogId, shopifyBlogDomain, shopifyStoreName…
  2. Get articles from shopify (HTTP Request): calls an HTTP API
  3. Clean & Prepare Text (Code): runs custom JavaScript code
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. Calculate similarities (Code): runs custom JavaScript code
  6. Set article fields (Edit Fields (Set)): sets 11 fields: shopify_id, blog_id, shopify_handle…
  7. Upsert article_relations (Data table): create or update
  8. OpenAI Get Embeddings (HTTP Request): calls api.openai.com (POST)
  9. Top 3 related articles (Code): runs custom JavaScript code
  10. Upsert articles (Data table): create or update

…plus 10 more steps. See the full node list below.

HTTP calls to: api.openai.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (8)

From the author

🪐 Use case Automatically surface and insert the three most relevant “Related articles” at the end of every Shopify blog post to boost session depth, SEO, and reader engagement. --- ⚙️ What this workflow does Pulls all published articles from a selected…

Excerpt from Geoffroy's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.