Templates / Sync and audit template vectors with Ollama embeddings and Qdrant

Sync and audit template vectors with Ollama embeddings and Qdrant

Needs changes

by John Moorhead · 3 views · created 2026-07-29 · Document Extraction, AI RAG

Needs 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.0Replace with
Item Lists (legacy)
Split Templates
Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used)

Nodes used (7)

Qdrant Vector StoreEmbeddings OllamaDefault Data Loader

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.

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.