GenAiHub

Last checked 8 October 2026 — responded normally.

Sync WordPress and WooCommerce content with Pinecone using OpenAI embeddings

Quick overview

Live
Open / InstallLast updated October 8, 2026

Description

Quick overview This workflow syncs WordPress/WooCommerce pages and blog posts into a Pinecone vector index by fetching content in small batches, generating OpenAI embeddings, and tracking indexed items in an n8n Data Table to handle updates and deletions. How it works Runs on a manual trigger or on a daily cron schedule. Fetches up to 100 published WordPress pages and up to 100 published posts (IDs and modified timestamps) via the WooCommerce/WordPress REST API. Compares the live IDs/modified dates with the indexed_wc_blog_v1 n8n Data Table and selects up to staticBatchSize pages/posts that are new or changed. Fetches the full content for the selected batch from the WordPress pages and posts endpoints and combines the results. For each page/post, strips HTML, prepares metadata, deletes any existing Pinecone vectors for the same fileId, then splits text, generates OpenAI embeddings, and inserts the chunks into Pinecone. Upserts the page/post’s fileId and dateModified into the indexed_wc_blog_v1 Data Table to record what was indexed. Identifies entries that exist in indexed_wc_blog_v1 but no longer exist in WordPress and deletes their vectors from Pinecone and their rows from the Data Table. Setup Add WooCommerce API credentials with access to the WordPress REST API endpoints for pages and posts. Add an OpenAI API credential for creating embeddings. Add a Pinecone API credential, create or select a Pinecone index, and set the index host and namespace values. Create an n8n Data Table named indexed_wc_blog_v1 with text columns productId, indexedAt, and dateModified. Update wooBaseUrl, pineconeIndexName, pineconeIndexHost, pineconeNamespace, and staticBatchSize in the “WC: Settings (static content)” node before enabling the schedule. An n8n automation workflow template by Stanislaw Chalupczak.

Community Metrics

Views
0
Avg Rating
N/A
Ratings
0
Likes
0
Comments
—

Author

Stanislaw Chalupczak

Platform

web

Pricing model

free

Categories

  • Automation
  • AI

Tags

  • n8n
  • workflow
  • http-request
  • code
  • embeddings-openai
  • recursive-character-text-splitter
  • pinecone-vector-store
  • default-data-loader

Capabilities

  • 6 nodes

Information

TypeWorkflow
Sourcen8n
AddedSeptember 29, 2026

Comments

?

Others in the same category, ranked by how often they are opened.