Skip to main content

Generate SEO/AEO-optimized Shopify blog articles with GPT-4 and Google Sheets

Workflow preview

Workflow preview
100%
Generate SEO/AEO-optimized Shopify blog articles with GPT-4 and Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n template demonstrates how to automatically generate and publish SEO/AEO optimized Shopify blog articles from a list of keywords using AI for content creation, image generation, and metadat...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.merge, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Geoffroy.

Original n8n.io source

1.1 Workflow description

Title
Generate SEO/AEO-optimized Shopify blog articles with GPT-4 and Google Sheets
Workflow name
Generate SEO/AEO-optimized Shopify blog articles with GPT-4 and Google Sheets

This n8n template demonstrates how to automatically generate and publish SEO/AEO-optimized Shopify blog articles from a list of keywords using AI for content creation, image generation, and metadata optimization.

Who’s it for

Shopify marketers, content teams, and solo founders who want consistent, hands-off blog production with built-in SEO/AEO hygiene and internal linking.

What it does

The workflow picks a keyword from your Google Sheet based on priority, search volume, and difficulty. It then checks your Shopify blog for existing slugs to avoid duplicate, drafts a 900+ word article optimized for SEO/AEO, generates a hero image, creates the article in Shopify, sets SEO metafields (title/description), and logs the result to your Sheets for tracking and future internal links.

How it works

  • Google Sheets → Candidate selection: Reads Keywords, Links, and Published tabs: ranks by priority → volume → difficulty. (In the workflow it is explained how to exactly set up the Google Sheets)
  • De-dupe slugs: Paginates your blog via Shopify GraphQL to collect existing handles and make sure to use a different one.
  • OpenAI content + image: Builds a structured prompt (SEO/AEO and internal linking), calls Chat Completions and Image Generation for a hero image.
  • Shopify publish: Creates the article via REST and updates title_tag / description_tag metafields via GraphQL.
  • Log + link graph: Appends to Published tab to keep track of articles posted and Links tab for ongoing internal-link suggestions.

How to set up

  1. Open Set – Config and fill: shopDomain, siteBaseUrl, blogId, blogHandle, sheetId, author. Optional: autoPublish, maxPerRun, tz.
  2. Create the Google Sheet with Keywords, Links, Published tabs using the provided column structure. I have personally used Semrush to generate that list of keywords.
  3. Add credentials: Shopify Admin token (Header/Bearer), OpenAI API key, and Google Service Account.

Requirements

  • Shopify store with Blog API access
  • OpenAI API key
  • Google Service Account with access to Google Sheets API (can be activated here here)

How to customize

  • Change the cron in Schedule Trigger for different days/times.
  • Adjust maxPerRun, autoPublish, language or any other variables in the "Set - Config" node.
  • Adjust the prompt from the "Code - Build Prompt" node.
  • Extend the Sheets schema with extra scoring signals if needed.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Manual Trigger

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 3 - Shopify: Create Article (REST)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Build Article GID

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Shopify: metafieldsSet (GraphQL)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sheets - Read Keywords

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 9 - Sheets - Read Links

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 10 - Sheets - Read Published

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 11 - Code - Normalize Inputs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 13 - Code - Pick Candidate

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Shopify - List Article Slugs

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Set - Config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 2

Block 16 - If - More pages?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Code - Init Slug Parser

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Code - Accumulate Slugs + Cursor

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Code - Build Prompt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 22 - OpenAI - Chat Completions

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 23 - Code - Sanitize + pick non-conflicting slug

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 24 - HTTP Request - OpenAI Images (Hero)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate SEO/AEO-optimized Shopify blog articles with GPT-4 and Google Sheets
Complexity advanced
Nodes 32
Categories Content Creation, Multimodal AI
Author Geoffroy
Published 30 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9115/9115.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate SEO/AEO-optimized Shopify blog articles with GPT-4 and Google Sheets do?

This n8n template demonstrates how to automatically generate and publish SEO/AEO optimized Shopify blog articles from a list of keywords using AI for content creation, image generation, and metadat...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.