Templates / Synchronize MySQL database schemas to Pinecone with OpenAI embeddings

Synchronize MySQL database schemas to Pinecone with OpenAI embeddings

Ready for 3.0

by Chandan Singh ✓ · 284 views · created 2025-12-19 · Document Extraction, AI RAG

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 17 nodes and runs manually, when you click “Execute workflow”. Along the way it connects MySQL, Embeddings OpenAI and Pinecone Vector Store.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Load Global Configuration (Edit Fields (Set)): sets or maps fields
  2. Fetch All Database Tables (MySQL): run a query
  3. Loop Over executable queries (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Set Table Schema Context (Edit Fields (Set)): sets or maps fields
  5. Fetch Table Schema Definition (MySQL): run a query
  6. Generate Schema Hash (Code): runs custom JavaScript code
  7. Check Existing Vector Metadata (Data table): get
  8. Vector Exists? (If): checks a condition and branches into true / false
  9. Insert Schema Vector to Pinecone (Pinecone Vector Store): stores documents in the Pinecone vector store, with embeddings: Generate Schema Embeddings; document loader: Prepare Schema Document
  10. Schema Changed? (If): checks a condition and branches into true / false

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

Services it uses

MySQLEmbeddings OpenAIPinecone Vector Store

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 (12)

From the author

This workflow synchronizes MySQL database table schemas with a vector database in a controlled, idempotent manner. Each database table is indexed as a single vector to preserve complete schema context for AI-based retrieval and reasoning. The workflow…

Excerpt from Chandan Singh'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.