Batch ID photo converter & enhancer with Google Drive & Nano Banana API
Ready for 3.0What this workflow does
This workflow has 10 nodes and runs when someone submits an n8n form (“Set Google Drive”). Along the way it connects Google Drive. It also calls api.defapi.org over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Set Google Drive”).
- Search files and folders (Google Drive): work with file folder
- Code: runs custom JavaScript code
- Send Image Generation Request to Defapi.org API (HTTP Request): calls api.defapi.org (POST)
- Wait: waits 10 seconds
- Obtain the generated status (HTTP Request): calls api.defapi.org
- Check if Image Generation is Complete (If): checks a condition and branches into true / false
- Format and Display Image Results (Edit Fields (Set)): sets 2 fields: markdown_content, image
- HTTP Request: calls an HTTP API
- Upload file (Google Drive): uses Google Drive
Services it uses
HTTP calls to: api.defapi.org
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 (7)
- HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code
From the author
Overview This n8n workflow automatically converts and enhances multiple photos into professional ID-style portraits using Gemini AI (Nano Banana). It processes images in batch from Google Drive, applies professional ID photo standards (proper framing, neutral…