Extract passport data with OpenAI OCR and generate QR codes
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs when someone submits an n8n form (“Process passport images”). Along the way it connects Gmail. It also calls api.openai.com over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Process passport images”).
- Prepare form (Code): runs custom JavaScript code
- Loop Over images (Loop Over Items (Split in Batches)): loops over the items in batches
- Grab image (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Form (n8n Form): shows the next form page
- Send a message (Gmail): uses Gmail
- Resize Image (Edit Image): resize
- Update imageBase (Code): runs custom JavaScript code
- OCR - openAI (HTTP Request): calls api.openai.com (POST)
- Data standardization (Code): runs custom JavaScript code
…plus 2 more steps. See the full node list below.
Services it uses
HTTP calls to: api.openai.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 (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Edit Image
n8n-nodes-base.editImage - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - n8n Form
n8n-nodes-base.form
From the author
Overview This workflow processes passport images submitted through a form, extracts structured data using OpenAI OCR, and generates QR codes with the extracted information. Results are displayed on the form completion page and sent via email. The workflow…