Sync and audit template vectors with Ollama embeddings and Qdrant
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: Item Lists (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| Item Lists (legacy) Split Templates | Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used) |
Nodes used (7)
- HTTP Request
n8n-nodes-base.httpRequest - Item Lists
n8n-nodes-base.itemLists - Code
n8n-nodes-base.code - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Embeddings Ollama
@n8n/n8n-nodes-langchain.embeddingsOllama - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Schedule Trigger
n8n-nodes-base.scheduleTrigger
What it does
Quick overview This workflow runs daily to pull recent community workflow templates from the n8n public catalog API, extract full workflow JSON, sanitize and scan it for potential exposed secrets, generate embeddings with Ollama, and upsert the resulting documents into a Qdrant vector collection for local retrieval. How it works 1. Runs on a Schedule Trigger every day at 2:00 AM. 2. Fetches the first two pages of templates from the n8n public template catalog search API and splits the returned workflows list into individual items. 3. Retrieves the full template payload for each item from the n8n workflow template API. 4. Builds a text document from the workflow metadata, sticky note content, system messages, and node configuration, sanitizes non-printable characters, and flags templates that match common API key/secret patterns. 5. Deletes any existing Qdrant points whose metadata.templateid matches the templates being processed to prevent duplicate vectors. 6. Generates embeddings with Ollama (nomic-embed-text:latest) and inserts the documents and metadata into the Qdrant n8ntemplates collection. Setup 1. Create a Qdrant collection named n8ntemplates and add Qdrant credentials in n8n, ensuring the workflow can reach your Qdrant instance (the purge step calls http://qdrant:6333). 2. Set up an Ollama instance with the nomic-embed-text:latest model available and add Ollama credentials in n8n. 3. If your Qdrant host/port or collection name differs, update the purge request URL/body and the Qdrant Vector Store collection selection accordingly.