Skip to content
NEWMeet Alaaddin, your AI genie with a voice. trig8n launches 1 January 2027. See what is new

Library / AI Agents & Assistants

AI Agents & Assistants

Validate Passport Photos With Gemini Vision and Google Drive

Checks photos against UK passport photo rules using a Gemini vision model and returns structured results. Runs when started manually.

What it does

## 2. Verify Passport Photo Validity Using AI Vision Model [Learn more about Basic LLM Chain]({{ $env.WEBHOOK_URL }} Verifying if a photo is suitable for a passport photo is a great use-case for AI vision and to automate the process is an equally great use-case for using n8n. Here's we've pasted in the UK governments guidelines copied from gov.uk and have asked the AI to validate the incoming photos following those rules. A structured output parser is used to simplify the AI response which can be used to update a database or backend of your choosing.

The steps

  1. When clicking ‘Test workflow’
  2. Structured Output Parser
  3. Photo URLs
  4. Photos To List
  5. Download Photos
  6. Resize For AI
  7. Passport Photo Validator
  8. Google Gemini Chat Model
  9. Error Handler

Similar automations