Templates / Extract structured data from medical documents with Google Gemini AI

Extract structured data from medical documents with Google Gemini AI

Ready for 3.0

by Louis Chan · 2,118 views · created 2025-07-12 · 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 10 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls generativelanguage.googleapis.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Parse Input (Edit Fields (Set)): sets 3 fields: image_url, expected_type, language_hint
  2. Download Image (HTTP Request): calls an HTTP API
  3. Extract to Base (Extract from File): extracts data from a file (binary to propery)
  4. Prepare for AI (Edit Fields (Set)): sets 1 field: mime_type
  5. Gemini Classify Extract (HTTP Request): calls generativelanguage.googleapis.com (POST)
  6. Parse AI Results (Edit Fields (Set)): sets 1 field: classification_output
  7. Gemini Structure Data (HTTP Request): calls generativelanguage.googleapis.com (POST)
  8. Finalize Track (Edit Fields (Set)): sets 3 fields: final_result, token_usage, processing_metadata
  9. API Response (Respond to Webhook): sends the response back to the webhook caller

HTTP calls to: generativelanguage.googleapis.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 (5)

From the author

How it works Transform medical documents into structured data using Google Gemini AI with enterprise-grade accuracy. Classifies document types (receipts, prescriptions, lab reports, clinical notes) - Extracts text with 95%+ accuracy using advanced OCR -…

Excerpt from Louis Chan'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.