Skip to main content

Build your own image search using AI object detection, CDN and ElasticSearch

Workflow preview

Workflow preview
100%
Build your own image search using AI object detection, CDN and ElasticSearch preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This n8n workflow demonstrates how to automate indexing of images to build a object based image search. By utilising a Detr Resnet 50 Object Classification model, we can identify objects within an ...

Best for

  • Engineering automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.splitout, n8n-nodes-base.filter, n8n-nodes-base.editimage, n8n-nodes-base.set, n8n-nodes-base.elasticsearch, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Jimleuk.

Original n8n.io source

1.1 Workflow description

Title
Build your own image search using AI object detection, CDN and ElasticSearch
Workflow name
Build your own image search using AI object detection, CDN and ElasticSearch

This n8n workflow demonstrates how to automate indexing of images to build a object-based image search.

By utilising a Detr-Resnet-50 Object Classification model, we can identify objects within an image and store these associations in Elasticsearch along with a reference to the image.

How it works

  • An image is imported into the workflow via HTTP request node.
  • The image is then sent to 托管平台's Worker AI API where the service runs the image through the Detr-Resnet-50 object classification model.
  • The API returns the object associations with their positions in the image, labels and confidence score of the classification.
  • Confidence scores of less the 0.9 are discarded for brevity.
  • The image's URL and its associations are then index in an ElasticSearch server ready for searching.

Requirements

  • A 托管平台 account with Workers AI enabled to access the object classification model.
  • An ElasticSearch instance to store the image url and related associations.

Extending this workflow

Further enrich your indexed data with additional attributes or metrics relevant to your users.

Use a vectorstore to provide similarity search over the images.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking "Test workflow"

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Fetch Source Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Split Out Results Only

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 4 - Filter Score >= 0.9

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2

Block 5 - Crop Object From Image

Type / Role
n8n-nodes-base.editImage - editImage
Config choices
Version 1

Block 6 - Set Variables

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.3

Block 7 - Use Detr-Resnet-50 Object Classification

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Upload to Cloudinary

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Create Docs In Elasticsearch

Type / Role
n8n-nodes-base.elasticsearch - elasticsearch
Config choices
Version 1

Block 10 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Fetch Source Image Again

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Build your own image search using AI object detection, CDN and ElasticSearch
Complexity advanced
Nodes 17
Categories Engineering, AI Summarization
Author Jimleuk
Published 10 Jul 2024

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/2331/2331.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Build your own image search using AI object detection, CDN and ElasticSearch do?

This n8n workflow demonstrates how to automate indexing of images to build a object based image search. By utilising a Detr Resnet 50 Object Classification model, we can identify objects within an ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Engineering, AI Summarization use case.