Templates / Extract passport data with OpenAI OCR and generate QR codes

Extract passport data with OpenAI OCR and generate QR codes

Ready for 3.0

by ICTS Automation · 330 views · created 2026-01-21 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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”).

  1. Prepare form (Code): runs custom JavaScript code
  2. Loop Over images (Loop Over Items (Split in Batches)): loops over the items in batches
  3. Grab image (Code): runs custom JavaScript code
  4. If: checks a condition and branches into true / false
  5. Form (n8n Form): shows the next form page
  6. Send a message (Gmail): uses Gmail
  7. Resize Image (Edit Image): resize
  8. Update imageBase (Code): runs custom JavaScript code
  9. OCR - openAI (HTTP Request): calls api.openai.com (POST)
  10. Data standardization (Code): runs custom JavaScript code

…plus 2 more steps. See the full node list below.

Services it uses

Gmail

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)

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…

Excerpt from ICTS Automation's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.