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

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

Ready for 3.0

by Jimleuk ✓ · 8,946 views · created 2024-07-10 · Engineering, AI Summarization

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 10 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Elasticsearch. It also calls api.cloudinary.com over HTTP.

How it runs

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

  1. Set Variables (Edit Fields (Set)): sets 4 fields: CLOUDFLARE_ACCOUNT_ID, model, source_image…
  2. Fetch Source Image (HTTP Request): calls an HTTP API
  3. Use Detr-Resnet-50 Object Classification (HTTP Request): calls an HTTP API (POST)
  4. Split Out: splits a list into separate items
  5. Filter: keeps only the items that match a condition
  6. Fetch Source Image Again (HTTP Request): calls an HTTP API
  7. Crop Object From Image (Edit Image): crop
  8. Upload to Cloudinary (HTTP Request): calls api.cloudinary.com (POST)
  9. Create Docs In Elasticsearch (Elasticsearch): create

Services it uses

Elasticsearch

HTTP calls to: api.cloudinary.com

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.

Rarely used nodes in this template: n8n-nodes-base.elasticsearch

Nodes used (7)

From the author

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…

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