Templates / Auto-categorize blog posts with OpenAI GPT-4, GitHub, and Google Sheets for Astro/Next.js

Auto-categorize blog posts with OpenAI GPT-4, GitHub, and Google Sheets for Astro/Next.js

Ready for 3.0

by Piotr Sikora ✓ · 319 views · created 2025-10-21 · 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-10-19.

What this workflow does

This AI workflow has 18 nodes and runs when someone submits an n8n form (“Start process ”). Along the way it connects OpenAI Chat Model, GitHub and Google Sheets.

How it runs

Trigger: When someone submits an n8n form (“Start process ”).

  1. Get row(s) in sheet (Google Sheets): uses Google Sheets
  2. List posts/articles/pages (GitHub): list (file)
  3. List FileName only / Remove duplicates (Code): runs custom JavaScript code
  4. Get paths to files only from GitHub repository (Aggregate): combines items into one
  5. Get file paths only from GoogleSheets (Aggregate): combines items into one
  6. Merge: merges the data from its input branches
  7. Check new repo files for AI processing (Code): runs custom JavaScript code
  8. Switch: routes items into 2 branches
  9. No new posts/articles in GitHub (n8n Form): shows the next form page
  10. Get post/article file (GitHub): get (file)

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

Services it uses

OpenAI Chat ModelGitHubGoogle Sheets

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.

Nodes used (13)

From the author

Automatically Assign Categories and Tags to Blog Posts with AI This workflow streamlines your content organization process by automatically analyzing new blog posts in your GitHub repository and assigning appropriate categories and tags using OpenAI. It…

Excerpt from Piotr Sikora'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.