Sync WordPress and WooCommerce content with Pinecone using OpenAI embeddings
Ready for 3.0What this workflow does
This AI workflow has 26 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Embeddings OpenAI and Pinecone Vector Store.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Set Static Content Settings (Edit Fields (Set)): sets 6 fields: wooBaseUrl, wooCurrency, pineconeIndexName…
- Fetch Static Pages (HTTP Request): calls an HTTP API
- Fetch Blog Posts (HTTP Request): calls an HTTP API
- Combine Pages and Posts (Code): runs custom JavaScript code
- Get Deduped Content Entries (Data table): get
- Filter Content for Processing (Code): runs custom JavaScript code
- Identify Deleted Entries (Code): runs custom JavaScript code
- Separate Content IDs by Type (Code): runs custom JavaScript code
- Loop Over Deleted Entries (Loop Over Items (Split in Batches)): loops over the items in batches
- Fetch Full Batch Pages (HTTP Request): calls an HTTP API
…plus 9 more steps. See the full node list below.
Services it uses
Other OpenAI + Pinecone templates (128)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - No Operation, do nothing
n8n-nodes-base.noOp - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
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…