Templates / Prompt-based object detection with Gemini 2.0

Prompt-based object detection with Gemini 2.0

Ready for 3.0

by Jimleuk ✓ · 3,336 views · created 2024-12-17 · Engineering, Multimodal AI

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 7 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls stonhambarns.co.uk and generativelanguage.googleapis.com over HTTP.

How it runs

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

  1. Get Test Image (HTTP Request): calls stonhambarns.co.uk
  2. Get Image Info (Edit Image): information
  3. Gemini 2.0 Object Detection (HTTP Request): calls generativelanguage.googleapis.com (POST)
  4. Get Variables (Edit Fields (Set)): sets 3 fields: coords, width, height
  5. Scale Normalised Coords (Code): runs custom JavaScript code
  6. Draw Bounding Boxes (Edit Image): multi step

HTTP calls to: stonhambarns.co.uk, generativelanguage.googleapis.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.

Nodes used (5)

From the author

This n8n template demonstrates how to get started with Gemini 2.0's new Bounding Box detection capabilities in your workflows. The key difference being this enables prompt-based object detection for images which is pretty powerful for things like contextual…

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.