Deploy this advanced n8n workflow for image anomaly detection using Voyage AI multimodal embeddings and Qdrant vector database. Quickly identify unknown crops or image defects using robust vector similarity thresholds.
Download this n8n workflow template and start using it instantly.
Detecting anomalies in visual data is crucial for maintaining data quality and alerting systems to unexpected inputs. This specific n8n workflow is designed to function as the final stage in a three-part image classification pipeline, focusing on real-time inference for crop anomaly detection.
By leveraging the power of multimodal embeddings from Voyage AI and the high-speed querying capabilities of the Qdrant vector database, this n8n automation takes an image URL as input. It generates a vector representation and then uses a highly optimized vector search to compare it against predefined 'medoid' cluster centers and their associated similarity thresholds.
This robust n8n node structure ensures that if the input image's similarity score is below the threshold for all known crop classes, the n8n workflow immediately flags it as a potential anomaly, preventing unidentified data from corrupting downstream systems. This is a powerful, ready-to-use n8n template for AI inference.
The n8n workflow begins with the Execute Workflow Trigger n8n trigger, which receives an image URL, typically passed via a query parameter.
Set n8n node (Variables for medoids) defines the connection details and critical keys for the Qdrant collection, including the cluster center type (is_medoid) and threshold key.HTTP Request n8n nodes query Qdrant to dynamically determine the total count of unique crop classes (cropsNumber). This is crucial as this number is used to limit the subsequent similarity search.Embed image n8n node, which uses an HTTP Request to send the image URL to the Voyage AI multimodal embeddings API. This returns a high-dimensional vector representing the image.HTTP Request n8n node, Get similarity of medoids, uses the newly generated vector to query Qdrant. It filters the search to only compare the input vector against the stored 'medoid' points (the centers of the existing crop clusters). The result includes the similarity score and the predefined threshold for each class.Code n8n node (Compare scores) processes the results. It iterates through the comparison scores and checks if the similarity score exceeds the stored threshold for any crop. If the image successfully passes a threshold, it is identified as a known crop. If it fails all stored thresholds, the n8n node returns an alert message: "ALERT, we might have a new undefined crop!", effectively identifying the image as an anomaly. This entire n8n workflow provides quick, automated intelligence.To utilize this sophisticated n8n workflow, follow these steps:
Embed image n8n node. You will need your API key.HTTP Request n8n nodes, requiring your Qdrant API key and URL.Variables for medoids n8n node to ensure the qdrantCloudURL and collectionName match your deployment.Execute Workflow Trigger test data to verify that the vector search and scoring logic function correctly. Execute Workflow Trigger: The starting n8n trigger for the automation. It receives the imageURL parameter dynamically, allowing this n8n workflow to be called as a tool.
Image URL hardcode / Variables for medoids (Set n8n node): These Set n8n nodes manage critical input variables, extracting the image URL and hardcoding Qdrant connection specifics, ensuring modularity within the n8n template.
Total Points in Collection / Each Crop Counts / Info About Crop Labeled Clusters (HTTP Request & Set n8n nodes): These n8n nodes calculate the count of unique crop classes in the Qdrant database, a necessary variable (cropsNumber) for limiting the vector search query.
Embed image (HTTP Request n8n node): Calls the Voyage AI Multimodal API using the input URL to generate a single image embedding vector, crucial for the subsequent vector similarity operations within the n8n workflow.
Get similarity of medoids (HTTP Request n8n node): This is the core vector search n8n node. It queries the Qdrant collection using the generated embedding, filtering specifically for cluster centers (is_medoid) and limiting results to the total number of classes.
Compare scores (Python Code n8n node): Executes the crucial decision logic. This n8n node determines if the input image's similarity score is greater than the cluster threshold for any class. If it fails all thresholds, it classifies the image as an anomaly, concluding the n8n workflow logic.
This advanced n8n workflow automatically captures shared links from Android via a Webhook trigger, uses AI tagging (OpenRouter, SerpAPI) to generate SEO metadata, and saves the content as a categorized bookmark via an n8n node.

Automate comprehensive data analysis, interpretation, and visualization using AI services within this powerful n8n workflow. Connect data sources like Google Sheets or MySQL and deliver reports directly via Gmail.

Analyze financial charts instantly using this powerful n8n workflow. Integrate external applications via an n8n trigger webhook to send chart images for OpenAI analysis.

Automate recruitment processing with this powerful n8n workflow. Extract, anonymize, and log CV data using the Google Gemini AI n8n node and robust Google Sheets integration.

Use this efficient n8n workflow to automatically anonymize faces and license plates in uploaded media. This n8n template utilizes the BlurIt API for high-volume privacy compliance.








































