Analyze Images with AI Vision
You're the control room operator at Isla Dino. You've connected to the park's surveillance feed and can now receive map images showing the current state of all 7 enclosures.
But staring at maps all day is exhausting. What if AI could analyze the images for you and flag any danger zones?
What you'll practice:
- Using OpenAI's vision capabilities to analyze images
- Passing image URLs to AI models
- Writing effective prompts for image analysis
- Using expressions to reference data from previous nodes
Your Task
- 1Copy the exercise below
- 2Paste into your n8n editor (Ctrl+V)
- 3Solve it — use hints if you get stuck
- 4Check the solution when done
Add an AI vision node to analyze the map image and detect danger zones.
Prerequisite: This challenge assumes you have an OpenAI API key configured in n8n. If not, read this guide first.
- Start with the workflow from Challenge 1 (already provided)
- Add an OpenAI node after the HTTP Request
- Configure it for image analysis (Resource: Image, Operation: Analyze)
- Set the Image URL to reference the image from the previous node's output
- Write a prompt that asks the AI to identify danger zones
Hint: You can drag and drop values from the previous node's output panel into configuration fields.
Expected output: A text response describing which area (if any) is in a state of emergency.
Get the exercise workflow
Create a free account to copy exercises into your n8n editor.