Prompt-based object detection with Gemini 2.0
Ready for 3.0What 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”.
- Get Test Image (HTTP Request): calls stonhambarns.co.uk
- Get Image Info (Edit Image): information
- Gemini 2.0 Object Detection (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Get Variables (Edit Fields (Set)): sets 3 fields: coords, width, height
- Scale Normalised Coords (Code): runs custom JavaScript code
- 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)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Edit Image
n8n-nodes-base.editImage
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…